|
@@ -1492,6 +1492,11 @@ static inline void skb_set_inner_network_header(struct sk_buff *skb,
|
|
|
skb->inner_network_header += offset;
|
|
|
}
|
|
|
|
|
|
+static inline bool skb_transport_header_was_set(const struct sk_buff *skb)
|
|
|
+{
|
|
|
+ return skb->transport_header != ~0U;
|
|
|
+}
|
|
|
+
|
|
|
static inline unsigned char *skb_transport_header(const struct sk_buff *skb)
|
|
|
{
|
|
|
return skb->head + skb->transport_header;
|
|
@@ -1580,6 +1585,11 @@ static inline void skb_set_inner_network_header(struct sk_buff *skb,
|
|
|
skb->inner_network_header = skb->data + offset;
|
|
|
}
|
|
|
|
|
|
+static inline bool skb_transport_header_was_set(const struct sk_buff *skb)
|
|
|
+{
|
|
|
+ return skb->transport_header != NULL;
|
|
|
+}
|
|
|
+
|
|
|
static inline unsigned char *skb_transport_header(const struct sk_buff *skb)
|
|
|
{
|
|
|
return skb->transport_header;
|