From 6dfddc3d7de0ec10eab5ac1a4c894e1ab48b116e Mon Sep 17 00:00:00 2001 From: Marvin Borner Date: Thu, 24 Sep 2020 19:15:58 +0200 Subject: IPv6 networking... --- kernel/inc/net.h | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'kernel/inc/net.h') diff --git a/kernel/inc/net.h b/kernel/inc/net.h index f3876e9..b5193ed 100644 --- a/kernel/inc/net.h +++ b/kernel/inc/net.h @@ -5,9 +5,14 @@ #include +#define RX_BUF_SIZE 0x3000 + #define RTL8139_VENDOR_ID 0x10ec #define RTL8139_DEVICE_ID 0x8139 +#define RTL_ROK (1 << 0) +#define RTL_TOK (1 << 2) + #define RTL_PORT_MAC 0x00 #define RTL_PORT_MAR 0x08 #define RTL_PORT_TXSTAT 0x10 @@ -23,7 +28,8 @@ #define RTL_PORT_RXMISS 0x4C #define RTL_PORT_CONFIG 0x52 -#define ETHERNET_TYPE_IP 0x0800 +#define ETHERNET_TYPE_IP4 0x0800 +#define ETHERNET_TYPE_IP6 0x86dd #define ETHERNET_TYPE_ARP 0x0806 struct ethernet_packet { -- cgit v1.2.3