From 330aa15e3e4a705eb8d168bc9c76af9b1b768dfc Mon Sep 17 00:00:00 2001 From: Miguel Date: Thu, 27 Sep 2018 01:43:43 +0200 Subject: user space compilation of fool stack --- net/inet.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'net/inet.c') diff --git a/net/inet.c b/net/inet.c index 88698c5..cd4cfde 100644 --- a/net/inet.c +++ b/net/inet.c @@ -1,6 +1,6 @@ #include "inet.h" +#include "net_sys.h" #include "icmp.h" -#include "kmalloc.h" #include "udp.h" #include "ntp.h" @@ -43,7 +43,8 @@ uint16_t checksum(void *addr, int count) bool net_packet(struct netdev *dev) { - uint32_t packet=kballoc(1)+4096; // we start one byte after the end; + uint32_t packet=kballoc(1); + packet+=4096; // we start one byte after the end; // uint32_t addr=(144)+(76<<8)+(106<<16)+(46<<24); uint32_t google_time=216+(239<<8)+(35<<16)+(0<<24); -- cgit v1.2.3