|
Voxia OS v0.0.1
Hobby Project Operating System Targeting x86-64
|
#include <type.h>Go to the source code of this file.
Data Structures | |
| struct | netbuff |
Macros | |
| #define | NETBUFF_DATA_SIZE 2048 |
| #define | NETBUFF_MAX_HEADROOM 64 |
Functions | |
| struct netbuff * | create_netbuff () |
| void | destroy_netbuff (struct netbuff *netbuff) |
| void * | netbuff_put (struct netbuff *nb, size_t len) |
| void * | netbuff_push (struct netbuff *nb, size_t len) |
| void | free_netbuff (struct netbuff *netbuff) |
| #define NETBUFF_DATA_SIZE 2048 |
Definition at line 6 of file netbuff.h.
Referenced by create_netbuff(), and free_netbuff().
| #define NETBUFF_MAX_HEADROOM 64 |
Definition at line 7 of file netbuff.h.
Referenced by create_netbuff().
| struct netbuff * create_netbuff | ( | ) |
Definition at line 19 of file netbuff.c.
References netbuff::data, netbuff::end, netbuff::head, ioforge_dma_alloc(), netbuff::length, memset(), netbuff_cache, NETBUFF_DATA_SIZE, NETBUFF_MAX_HEADROOM, netbuff_temp, netbuff_temp_count, netbuff::paddr, netbuff::tail, and vxSlabAlloc().
Referenced by arp_reply(), handle_icmp(), ipv4_send(), send_command(), and send_tcp_data().
| void free_netbuff | ( | struct netbuff * | netbuff | ) |
Definition at line 56 of file netbuff.c.
References netbuff::head, ioforge_dma_free(), netbuff_cache, NETBUFF_DATA_SIZE, NETBUFF_MAX_TEMP, netbuff_temp, netbuff_temp_count, netbuff::paddr, and slab_free().
Referenced by arp_reply(), handle_icmp(), ipv4_send(), send_command(), and send_tcp_data().
Definition at line 50 of file netbuff.c.
References netbuff::data, len, and netbuff::length.
Referenced by ethernet_send_frame(), ipv4_send(), send_command(), and send_tcp_data().
Definition at line 42 of file netbuff.c.
References len, netbuff::length, and netbuff::tail.
Referenced by arp_reply(), ethernet_send_frame(), handle_icmp(), ipv4_send(), and send_tcp_data().