diff options
| author | Miguel <m.i@gmx.at> | 2018-09-25 12:43:03 +0200 |
|---|---|---|
| committer | Miguel <m.i@gmx.at> | 2018-09-25 12:43:03 +0200 |
| commit | 112ca29a3bb2ab38693943ed33ee51f4fd7d2d81 (patch) | |
| tree | c843051f9291ebe2de6e603c45d924d843d35ea4 /net/netdev.h | |
| parent | 2ba77c01a33c3454aeed42d5394dd5ccede10851 (diff) | |
arp replies working!
Diffstat (limited to 'net/netdev.h')
| -rw-r--r-- | net/netdev.h | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/net/netdev.h b/net/netdev.h new file mode 100644 index 0000000..c6c02dd --- /dev/null +++ b/net/netdev.h @@ -0,0 +1,15 @@ +#ifndef FOOLOS_NETDEV_H +#define FOOLOS_NETDEV_H + +#include "eth.h" + +struct netdev +{ + unsigned char hwaddr[6]; // device hardware address + uint32_t ip; // device ip + int (*transmit)(const void *data, uint16_t p_len); +}; + +void netdev_transmit(struct netdev *dev, struct eth_hdr *hdr, uint16_t ethertype, int len, unsigned char *dst); + +#endif |
