|
Voxia OS v0.0.1
Hobby Project Operating System Targeting x86-64
|
Go to the source code of this file.
Data Structures | |
| struct | ipv4_header |
Functions | |
| struct ipv4_header | __attribute__ ((packed)) |
| void | ipv4_send (netdev_t *dev, struct netbuff *nb, uint32_t dst_ip, uint8_t protocol, uint8_t mac_dest[6]) |
Variables | |
| uint8_t | version_ihl |
| uint8_t | tos |
| uint16_t | total_length |
| uint16_t | id |
| uint16_t | flags_fragment |
| uint8_t | ttl |
| uint8_t | protocol |
| uint16_t | checksum |
| uint32_t | src_ip |
| uint32_t | dst_ip |
| struct ipv4_header __attribute__ | ( | (packed) | ) |
| void ipv4_send | ( | netdev_t * | dev, |
| struct netbuff * | nb, | ||
| uint32_t | dst_ip, | ||
| uint8_t | protocol, | ||
| uint8_t | mac_dest[6] ) |
Definition at line 32 of file ipv4.c.
References create_netbuff(), netbuff::data, dst_ip, ETHER_TYPE_IP, ethernet_send_frame(), fill_ip_header(), free_netbuff(), get_next_ip_id(), netbuff::length, memcopy(), netdev::mtu, netbuff_push(), netbuff_put(), offset, protocol, vxHtons(), and vxInetAddr().
Referenced by handle_icmp(), send_command(), and send_tcp_data().
| uint32_t dst_ip |
Definition at line 9 of file ipv4.h.
Referenced by fill_ip_header(), ipv4_send(), send_command(), and send_tcp_data().
| uint16_t flags_fragment |
Definition at line 4 of file ipv4.h.
Referenced by fill_ip_header().
| uint8_t protocol |
Definition at line 6 of file ipv4.h.
Referenced by fill_ip_header(), ipv4_send(), send_command(), send_tcp_data(), UsbHid::set_protocol(), and vxSocket().
| uint32_t src_ip |
Definition at line 8 of file ipv4.h.
Referenced by fill_ip_header(), send_command(), and send_tcp_data().
| uint16_t total_length |
Definition at line 2 of file ipv4.h.
Referenced by fill_ip_header().