|
Voxia OS v0.0.1
Hobby Project Operating System Targeting x86-64
|
Go to the source code of this file.
Data Structures | |
| struct | ethernet_header |
Macros | |
| #define | ETHER_TYPE_ARP 0x0806 |
| #define | ETHER_TYPE_IP 0x0800 |
Functions | |
| struct ethernet_header | __attribute__ ((packed)) |
| void | ethernet_send_frame (netdev_t *dev, struct netbuff *netbuff, uint16_t ethertype, const uint8_t dst_mac[6]) |
Variables | |
| uint8_t | dest_mac [6] |
| uint8_t | src_mac [6] |
| uint16_t | ethertype |
| #define ETHER_TYPE_ARP 0x0806 |
Definition at line 17 of file ethernet.h.
Referenced by socket_receive().
| #define ETHER_TYPE_IP 0x0800 |
Definition at line 18 of file ethernet.h.
Referenced by ipv4_send(), and socket_receive().
| struct ethernet_header __attribute__ | ( | (packed) | ) |
| void ethernet_send_frame | ( | netdev_t * | dev, |
| struct netbuff * | netbuff, | ||
| uint16_t | ethertype, | ||
| const uint8_t | dst_mac[6] ) |
Definition at line 9 of file ethernet.c.
References data, netbuff::data, ethernet_header::dest_mac, ethernet_header::ethertype, ethertype, netbuff::head, len, netbuff::length, netdev::mac, memcopy(), memset(), netbuff_push(), netbuff_put(), netdev::nic, ioforge_nic_service::ops, netbuff::paddr, ioforge_nic_operation::send, and ethernet_header::src_mac.
Referenced by arp_reply(), and ipv4_send().
| uint8_t dest_mac[6] |
Definition at line 0 of file ethernet.h.
| uint16_t ethertype |
Definition at line 2 of file ethernet.h.
Referenced by ethernet_send_frame(), and socket_receive().
| uint8_t src_mac[6] |
Definition at line 1 of file ethernet.h.