1
0
This repository has been archived on 2024-07-22. You can view files and clone it, but cannot push or open issues or pull requests.
TP-Link_Archer-XR500v/EN7526G_3.18Kernel_SDK/bootrom/bootram/net/skbuff.h
2024-07-22 01:58:46 -03:00

24 lines
709 B
C
Executable File

#ifndef __SKBUFF_H
#define __SKBUFF_H
typedef struct sk_buff_s {
unsigned char buf[2000];
unsigned int truesize; /* Buffer size */
unsigned char *data; /* Data head pointer */
unsigned char *ip_hdr; /* IP header pointer */
unsigned char *udp_hdr; /* UDP header pointer */
unsigned int used;
unsigned int len; /* Length of actual data */
} sk_buff;
int skb_init(void);
sk_buff *alloc_skb(unsigned int size);
void free_skb(sk_buff *skb);
unsigned char *skb_put(sk_buff *skb, unsigned int len);
unsigned char *skb_push(sk_buff *skb, unsigned int len);
unsigned char *skb_pull(sk_buff *skb, unsigned int len);
void skb_reserve(sk_buff *skb, unsigned int len);
#endif /* __SKBUFF_H */