|
Voxia OS v0.0.1
Hobby Project Operating System Targeting x86-64
|
#include "ethernet.h"#include "ioforge/ioforge_nic.h"#include "libk/serial.h"#include <str.h>#include "net/netdev.h"#include <memory/memory_utils.h>Go to the source code of this file.
Functions | |
| void | ethernet_send_frame (netdev_t *dev, struct netbuff *netbuff, uint16_t ethertype, const uint8_t dst_mac[6]) |
| 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().