skbuff.h (5605c76240aadc823e3d46ac9afde2f26fbcf019) skbuff.h (06635a35d13d42b95422bba6633f175245cc644e)
1/*
2 * Definitions for the 'struct sk_buff' memory handlers.
3 *
4 * Authors:
5 * Alan Cox, <gw4pts@gw4pts.ampr.org>
6 * Florian La Roche, <rzsfl@rz.uni-sb.de>
7 *
8 * This program is free software; you can redistribute it and/or

--- 1921 unchanged lines hidden (view full) ---

1930
1931static inline void skb_probe_transport_header(struct sk_buff *skb,
1932 const int offset_hint)
1933{
1934 struct flow_keys keys;
1935
1936 if (skb_transport_header_was_set(skb))
1937 return;
1/*
2 * Definitions for the 'struct sk_buff' memory handlers.
3 *
4 * Authors:
5 * Alan Cox, <gw4pts@gw4pts.ampr.org>
6 * Florian La Roche, <rzsfl@rz.uni-sb.de>
7 *
8 * This program is free software; you can redistribute it and/or

--- 1921 unchanged lines hidden (view full) ---

1930
1931static inline void skb_probe_transport_header(struct sk_buff *skb,
1932 const int offset_hint)
1933{
1934 struct flow_keys keys;
1935
1936 if (skb_transport_header_was_set(skb))
1937 return;
1938 else if (skb_flow_dissect(skb, &keys))
1939 skb_set_transport_header(skb, keys.thoff);
1938 else if (skb_flow_dissect_flow_keys(skb, &keys))
1939 skb_set_transport_header(skb, keys.basic.thoff);
1940 else
1941 skb_set_transport_header(skb, offset_hint);
1942}
1943
1944static inline void skb_mac_header_rebuild(struct sk_buff *skb)
1945{
1946 if (skb_mac_header_was_set(skb)) {
1947 const unsigned char *old_mac = skb_mac_header(skb);

--- 1507 unchanged lines hidden ---
1940 else
1941 skb_set_transport_header(skb, offset_hint);
1942}
1943
1944static inline void skb_mac_header_rebuild(struct sk_buff *skb)
1945{
1946 if (skb_mac_header_was_set(skb)) {
1947 const unsigned char *old_mac = skb_mac_header(skb);

--- 1507 unchanged lines hidden ---