aboutsummaryrefslogtreecommitdiff
path: root/kernel/inc
diff options
context:
space:
mode:
authorMarvin Borner2020-11-04 22:11:57 +0100
committerMarvin Borner2020-11-04 22:11:57 +0100
commit916fca2161e76de67a5106b90baf00a57f2a0512 (patch)
tree5aa47b4d37718d44fd54565ea345cd6248d8a8d6 /kernel/inc
parent5951024ab35e6cdd1ed6b97d76e28f1a253f6593 (diff)
Further TCP work
Can now send ACKs with correct checksum
Diffstat (limited to 'kernel/inc')
-rw-r--r--kernel/inc/net.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/kernel/inc/net.h b/kernel/inc/net.h
index f2fbb20..81754d8 100644
--- a/kernel/inc/net.h
+++ b/kernel/inc/net.h
@@ -35,7 +35,7 @@
#define DHCP_REQUEST 1
#define DHCP_REPLY 2
-#define DHCP_TRANSACTION_IDENTIFIER 0x55555555
+#define DHCP_TRANSACTION_IDENTIFIER 0x18122002
#define HARDWARE_TYPE_ETHERNET 0x01
@@ -114,12 +114,12 @@ struct tcp_packet {
} __attribute__((packed));
struct tcp_pseudo_header {
- u32 source;
- u32 destination;
+ u32 src;
+ u32 dst;
u8 zeros;
u8 protocol;
u16 tcp_len;
- u8 tcp_header[];
+ u8 tcp_packet[];
};
struct icmp_packet {