source: grub-pc/trunk/fuentes/.pc/arp_icmp_oversize_handling.patch/include/grub/net/netbuff.h @ 22

Last change on this file since 22 was 22, checked in by mabarracus, 4 years ago

updated version and apply net.ifnames=0 into debian/rules

File size: 989 bytes
Line 
1#ifndef GRUB_NETBUFF_HEADER
2#define GRUB_NETBUFF_HEADER
3
4#include <grub/misc.h>
5
6#define NETBUFF_ALIGN 2048
7#define NETBUFFMINLEN 64
8
9struct grub_net_buff
10{
11  /* Pointer to the start of the buffer.  */
12  grub_uint8_t *head;
13  /* Pointer to the data.  */
14  grub_uint8_t *data;
15  /* Pointer to the tail.  */
16  grub_uint8_t *tail;
17  /* Pointer to the end of the buffer.  */
18  grub_uint8_t *end;
19};
20
21grub_err_t grub_netbuff_put (struct grub_net_buff *net_buff, grub_size_t len);
22grub_err_t grub_netbuff_unput (struct grub_net_buff *net_buff, grub_size_t len);
23grub_err_t grub_netbuff_push (struct grub_net_buff *net_buff, grub_size_t len);
24grub_err_t grub_netbuff_pull (struct grub_net_buff *net_buff, grub_size_t len);
25grub_err_t grub_netbuff_reserve (struct grub_net_buff *net_buff, grub_size_t len);
26grub_err_t grub_netbuff_clear (struct grub_net_buff *net_buff);
27struct grub_net_buff * grub_netbuff_alloc (grub_size_t len);
28void grub_netbuff_free (struct grub_net_buff *net_buff);
29
30#endif
Note: See TracBrowser for help on using the repository browser.