Voxia OS v0.0.1
Hobby Project Operating System Targeting x86-64
Loading...
Searching...
No Matches
ethernet.h
Go to the documentation of this file.
1#ifndef __NET__ETHERNET_H__
2#define __NET__ETHERNET_H__
3
4#include "net/netbuff.h"
5#include "net/netdev.h"
6#include <type.h>
7
13
15 uint16_t ethertype, const uint8_t dst_mac[6]);
16
17#define ETHER_TYPE_ARP 0x0806
18#define ETHER_TYPE_IP 0x0800
19
20#endif // __NET__ETHERNET_H__
typedef __attribute__
Definition msi.c:47
void ethernet_send_frame(netdev_t *dev, struct netbuff *netbuff, uint16_t ethertype, const uint8_t dst_mac[6])
Definition ethernet.c:9
uint16_t ethertype
Definition ethernet.h:2
struct netdev netdev_t
Definition netdev.h:19
uint8_t src_mac[6]
Definition ethernet.h:10
uint16_t ethertype
Definition ethernet.h:11
uint8_t dest_mac[6]
Definition ethernet.h:9
unsigned short uint16_t
Definition type.h:13
unsigned char uint8_t
Definition type.h:7