Home | History | Annotate | Download | only in linux

Lines Matching refs:sk_buff

2  *	Definitions for the 'struct sk_buff' memory handlers.
111 struct sk_buff *next;
112 struct sk_buff *prev;
118 struct sk_buff;
142 struct sk_buff *frag_list;
186 * struct sk_buff - socket buffer
231 struct sk_buff {
233 struct sk_buff *next;
234 struct sk_buff *prev;
288 void (*destructor)(struct sk_buff *skb);
292 struct sk_buff *nfct_reasm;
330 extern void kfree_skb(struct sk_buff *skb);
331 extern void __kfree_skb(struct sk_buff *skb);
332 extern struct sk_buff *__alloc_skb(unsigned int size,
334 static inline struct sk_buff *alloc_skb(unsigned int size,
340 static inline struct sk_buff *alloc_skb_fclone(unsigned int size,
346 extern struct sk_buff *alloc_skb_from_cache(kmem_cache_t *cp,
349 extern void kfree_skbmem(struct sk_buff *skb);
350 extern struct sk_buff *skb_clone(struct sk_buff *skb,
352 extern struct sk_buff *skb_copy(const struct sk_buff *skb,
354 extern struct sk_buff *pskb_copy(struct sk_buff *skb,
356 extern int pskb_expand_head(struct sk_buff *skb,
359 extern struct sk_buff *skb_realloc_headroom(struct sk_buff *skb,
361 extern struct sk_buff *skb_copy_expand(const struct sk_buff *skb,
364 extern int skb_pad(struct sk_buff *skb, int pad);
366 extern void skb_over_panic(struct sk_buff *skb, int len,
368 extern void skb_under_panic(struct sk_buff *skb, int len,
370 extern void skb_truesize_bug(struct sk_buff *skb);
372 static inline void skb_truesize_check(struct sk_buff *skb)
374 if (unlikely((int)skb->truesize < sizeof(struct sk_buff) + skb->len))
378 extern int skb_append_datato_frags(struct sock *sk, struct sk_buff *skb,
380 int len,int odd, struct sk_buff *skb),
389 struct sk_buff *root_skb;
390 struct sk_buff *cur_skb;
394 extern void skb_prepare_seq_read(struct sk_buff *skb,
401 extern unsigned int skb_find_text(struct sk_buff *skb, unsigned int from,
416 return list->next == (struct sk_buff *)list;
426 static inline struct sk_buff *skb_get(struct sk_buff *skb)
445 static inline int skb_cloned(const struct sk_buff *skb)
458 static inline int skb_header_cloned(const struct sk_buff *skb)
478 static inline void skb_header_release(struct sk_buff *skb)
492 static inline int skb_shared(const struct sk_buff *skb)
510 static inline struct sk_buff *skb_share_check(struct sk_buff *skb,
515 struct sk_buff *nskb = skb_clone(skb, pri);
523 * Copy shared buffers into a new sk_buff. We effectively do COW on
542 static inline struct sk_buff *skb_unshare(struct sk_buff *skb,
547 struct sk_buff *nskb = skb_copy(skb, pri);
558 * Peek an &sk_buff. Unlike most other operations you _MUST_
567 static inline struct sk_buff *skb_peek(struct sk_buff_head *list_)
569 struct sk_buff *list = ((struct sk_buff *)list_)->next;
570 if (list == (struct sk_buff *)list_)
579 * Peek an &sk_buff. Unlike most other operations you _MUST_
588 static inline struct sk_buff
590 struct sk_buff *list = ((struct sk_buff *)list_)->prev;
591 if (list == (struct sk_buff *)list_)
600 * Return the length of an &sk_buff queue.
618 list->prev = list->next = (struct sk_buff *)list;
623 * Insert an sk_buff at the start of a list.
641 struct sk_buff *prev,
642 struct sk_buff *newsk)
644 struct sk_buff *next;
663 extern void skb_queue_head(struct sk_buff_head *list, struct sk_buff *newsk);
665 struct sk_buff *newsk)
667 __skb_queue_after(list, (struct sk_buff *)list, newsk);
680 extern void skb_queue_tail(struct sk_buff_head *list, struct sk_buff *newsk);
682 struct sk_buff *newsk)
684 struct sk_buff *prev, *next;
687 next = (struct sk_buff *)list;
703 extern struct sk_buff *skb_dequeue(struct sk_buff_head *list);
704 static inline struct sk_buff *__skb_dequeue(struct sk_buff_head *list)
706 struct sk_buff *next, *prev, *result;
708 prev = (struct sk_buff *) list;
726 extern void skb_insert(struct sk_buff *old, struct sk_buff *newsk, struct sk_buff_head *list);
727 static inline void __skb_insert(struct sk_buff *newsk,
728 struct sk_buff *prev, struct sk_buff *next,
740 extern void skb_append(struct sk_buff *old, struct sk_buff *newsk, struct sk_buff_head *list);
741 static inline void __skb_append(struct sk_buff *old, struct sk_buff *newsk, struct sk_buff_head *list)
747 * remove sk_buff from list. _Must_ be called atomically, and with
750 extern void skb_unlink(struct sk_buff *skb, struct sk_buff_head *list);
751 static inline void __skb_unlink(struct sk_buff *skb, struct sk_buff_head *list)
753 struct sk_buff *next, *prev;
774 extern struct sk_buff *skb_dequeue_tail(struct sk_buff_head *list);
775 static inline struct sk_buff *__skb_dequeue_tail(struct sk_buff_head *list)
777 struct sk_buff *skb = skb_peek_tail(list);
784 static inline int skb_is_nonlinear(const struct sk_buff *skb)
789 static inline unsigned int skb_headlen(const struct sk_buff *skb)
794 static inline int skb_pagelen(const struct sk_buff *skb)
803 static inline void skb_fill_page_desc(struct sk_buff *skb, int i,
819 * Add data to an sk_buff
821 static inline unsigned char *__skb_put(struct sk_buff *skb, unsigned int len)
839 static inline unsigned char *skb_put(struct sk_buff *skb, unsigned int len)
850 static inline unsigned char *__skb_push(struct sk_buff *skb, unsigned int len)
866 static inline unsigned char *skb_push(struct sk_buff *skb, unsigned int len)
875 static inline unsigned char *__skb_pull(struct sk_buff *skb, unsigned int len)
892 static inline unsigned char *skb_pull(struct sk_buff *skb, unsigned int len)
897 extern unsigned char *__pskb_pull_tail(struct sk_buff *skb, int delta);
899 static inline unsigned char *__pskb_pull(struct sk_buff *skb, unsigned int len)
908 static inline unsigned char *pskb_pull(struct sk_buff *skb, unsigned int len)
913 static inline int pskb_may_pull(struct sk_buff *skb, unsigned int len)
926 * Return the number of bytes of free space at the head of an &sk_buff.
928 static inline int skb_headroom(const struct sk_buff *skb)
937 * Return the number of bytes of free space at the tail of an sk_buff
939 static inline int skb_tailroom(const struct sk_buff *skb)
949 * Increase the headroom of an empty &sk_buff by reducing the tail
952 static inline void skb_reserve(struct sk_buff *skb, int len)
1001 extern int ___pskb_trim(struct sk_buff *skb, unsigned int len);
1003 static inline void __skb_trim(struct sk_buff *skb, unsigned int len)
1022 static inline void skb_trim(struct sk_buff *skb, unsigned int len)
1029 static inline int __pskb_trim(struct sk_buff *skb, unsigned int len)
1037 static inline int pskb_trim(struct sk_buff *skb, unsigned int len)
1051 static inline void pskb_trim_unique(struct sk_buff *skb, unsigned int len)
1065 static inline void skb_orphan(struct sk_buff *skb)
1077 * Delete all buffers on an &sk_buff list. Each buffer is removed from
1084 struct sk_buff *skb;
1094 * Allocate a new &sk_buff and assign it a usage count of one. The
1101 static inline struct sk_buff *__dev_alloc_skb(unsigned int length,
1104 struct sk_buff *skb = alloc_skb(length + NET_SKB_PAD, gfp_mask);
1114 * Allocate a new &sk_buff and assign it a usage count of one. The
1122 static inline struct sk_buff *dev_alloc_skb(unsigned int length)
1127 extern struct sk_buff *__netdev_alloc_skb(struct net_device *dev,
1135 * Allocate a new &sk_buff and assign it a usage count of one. The
1143 static inline struct sk_buff *netdev_alloc_skb(struct net_device *dev,
1161 static inline int skb_cow(struct sk_buff *skb, unsigned int headroom)
1186 static inline int skb_padto(struct sk_buff *skb, unsigned int len)
1194 static inline int skb_add_data(struct sk_buff *skb,
1215 static inline int skb_can_coalesce(struct sk_buff *skb, int i,
1227 static inline int __skb_linearize(struct sk_buff *skb)
1239 static inline int skb_linearize(struct sk_buff *skb)
1251 static inline int skb_linearize_cow(struct sk_buff *skb)
1268 static inline void skb_postpull_rcsum(struct sk_buff *skb,
1275 unsigned char *skb_pull_rcsum(struct sk_buff *skb, unsigned int len);
1286 static inline int pskb_trim_rcsum(struct sk_buff *skb, unsigned int len)
1315 prefetch(skb->next), (skb != (struct sk_buff *)(queue)); \
1320 prefetch(skb->prev), (skb != (struct sk_buff *)(queue)); \
1324 extern struct sk_buff *skb_recv_datagram(struct sock *sk, unsigned flags,
1328 extern int skb_copy_datagram_iovec(const struct sk_buff *from,
1331 extern int skb_copy_and_csum_datagram_iovec(struct sk_buff *skb,
1334 extern void skb_free_datagram(struct sock *sk, struct sk_buff *skb);
1335 extern void skb_kill_datagram(struct sock *sk, struct sk_buff *skb,
1337 extern unsigned int skb_checksum(const struct sk_buff *skb, int offset,
1339 extern int skb_copy_bits(const struct sk_buff *skb, int offset,
1341 extern int skb_store_bits(const struct sk_buff *skb, int offset,
1343 extern unsigned int skb_copy_and_csum_bits(const struct sk_buff *skb,
1346 extern void skb_copy_and_csum_dev(const struct sk_buff *skb, u8 *to);
1347 extern void skb_split(struct sk_buff *skb,
1348 struct sk_buff *skb1, const u32 len);
1350 extern struct sk_buff *skb_segment(struct sk_buff *skb, int features);
1352 static inline void *skb_header_pointer(const struct sk_buff *skb, int offset,
1378 static inline void skb_get_timestamp(const struct sk_buff *skb, struct timeval *stamp)
1393 static inline void skb_set_timestamp(struct sk_buff *skb, const struct timeval *stamp)
1399 extern void __net_timestamp(struct sk_buff *skb);
1401 extern unsigned int __skb_checksum_complete(struct sk_buff *skb);
1419 static inline unsigned int skb_checksum_complete(struct sk_buff *skb)
1437 static inline void nf_conntrack_get_reasm(struct sk_buff *skb)
1442 static inline void nf_conntrack_put_reasm(struct sk_buff *skb)
1460 static inline void nf_reset(struct sk_buff *skb)
1475 static inline void nf_reset(struct sk_buff *skb) {}
1479 static inline void skb_copy_secmark(struct sk_buff *to, const struct sk_buff *from)
1484 static inline void skb_init_secmark(struct sk_buff *skb)
1489 static inline void skb_copy_secmark(struct sk_buff *to, const struct sk_buff *from)
1492 static inline void skb_init_secmark(struct sk_buff *skb)
1496 static inline int skb_is_gso(const struct sk_buff *skb)