inet_frag.h 527 B

123456789101112131415161718192021
  1. #ifndef __NET_FRAG_H__
  2. #define __NET_FRAG_H__
  3. struct inet_frag_queue {
  4. struct hlist_node list;
  5. struct list_head lru_list; /* lru list member */
  6. spinlock_t lock;
  7. atomic_t refcnt;
  8. struct timer_list timer; /* when will this queue expire? */
  9. struct sk_buff *fragments; /* list of received fragments */
  10. ktime_t stamp;
  11. int len; /* total length of orig datagram */
  12. int meat;
  13. __u8 last_in; /* first/last segment arrived? */
  14. #define COMPLETE 4
  15. #define FIRST_IN 2
  16. #define LAST_IN 1
  17. };
  18. #endif