From ae33cc6557790a502a01b380b0926944ca2f3cfa Mon Sep 17 00:00:00 2001 From: Miguel Date: Wed, 26 Sep 2018 10:22:37 +0200 Subject: ntp and udp --- net/inet.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'net/inet.h') diff --git a/net/inet.h b/net/inet.h index 75ab6db..1d75e03 100644 --- a/net/inet.h +++ b/net/inet.h @@ -3,6 +3,8 @@ * https://en.wikipedia.org/wiki/OSI_model */ #include +#include +#include #define ARP_ETHERNET 1 #define ARP_IPV4 0x800 @@ -13,6 +15,8 @@ #define ETH_P_IPV4 0x0800 #define IPV4_P_ICMP 0x1 +#define IPV4_P_TCP 0x6 +#define IPV4_P_UDP 0x11 #define ICMP_ECHO_REPLY 0 #define ICMP_UNREACHABLE 3 @@ -21,3 +25,4 @@ uint16_t checksum(void *addr, int count); uint16_t ntohs(uint16_t val); uint16_t htons(uint16_t val); +bool net_packet(struct netdev *dev); -- cgit v1.2.3