skbuff.h (d1a76187a5be4f89c6cb19d800cb5fb7aac735c5) | skbuff.h (def8b4faff5ca349beafbbfeb2c51f3602a6ef3a) |
---|---|
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 --- 255 unchanged lines hidden (view full) --- 264 struct sock *sk; 265 ktime_t tstamp; 266 struct net_device *dev; 267 268 union { 269 struct dst_entry *dst; 270 struct rtable *rtable; 271 }; | 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 --- 255 unchanged lines hidden (view full) --- 264 struct sock *sk; 265 ktime_t tstamp; 266 struct net_device *dev; 267 268 union { 269 struct dst_entry *dst; 270 struct rtable *rtable; 271 }; |
272#ifdef CONFIG_XFRM |
|
272 struct sec_path *sp; | 273 struct sec_path *sp; |
273 | 274#endif |
274 /* 275 * This is the control buffer. It is free to use for every 276 * layer. Please put your private variables there. If you 277 * want to keep them across layers you have to do a skb_clone() 278 * first. This is owned by whoever has the skb queued ATM. 279 */ 280 char cb[48]; 281 --- 1577 unchanged lines hidden (view full) --- 1859 return skb->queue_mapping; 1860} 1861 1862static inline void skb_copy_queue_mapping(struct sk_buff *to, const struct sk_buff *from) 1863{ 1864 to->queue_mapping = from->queue_mapping; 1865} 1866 | 275 /* 276 * This is the control buffer. It is free to use for every 277 * layer. Please put your private variables there. If you 278 * want to keep them across layers you have to do a skb_clone() 279 * first. This is owned by whoever has the skb queued ATM. 280 */ 281 char cb[48]; 282 --- 1577 unchanged lines hidden (view full) --- 1860 return skb->queue_mapping; 1861} 1862 1863static inline void skb_copy_queue_mapping(struct sk_buff *to, const struct sk_buff *from) 1864{ 1865 to->queue_mapping = from->queue_mapping; 1866} 1867 |
1868#ifdef CONFIG_XFRM 1869static inline struct sec_path *skb_sec_path(struct sk_buff *skb) 1870{ 1871 return skb->sp; 1872} 1873#else 1874static inline struct sec_path *skb_sec_path(struct sk_buff *skb) 1875{ 1876 return NULL; 1877} 1878#endif 1879 |
|
1867static inline int skb_is_gso(const struct sk_buff *skb) 1868{ 1869 return skb_shinfo(skb)->gso_size; 1870} 1871 1872static inline int skb_is_gso_v6(const struct sk_buff *skb) 1873{ 1874 return skb_shinfo(skb)->gso_type & SKB_GSO_TCPV6; --- 26 unchanged lines hidden --- | 1880static inline int skb_is_gso(const struct sk_buff *skb) 1881{ 1882 return skb_shinfo(skb)->gso_size; 1883} 1884 1885static inline int skb_is_gso_v6(const struct sk_buff *skb) 1886{ 1887 return skb_shinfo(skb)->gso_type & SKB_GSO_TCPV6; --- 26 unchanged lines hidden --- |