summaryrefslogtreecommitdiff
path: root/net/inet.c
diff options
context:
space:
mode:
authorMiguel <m.i@gmx.at>2018-09-27 01:43:43 +0200
committerMiguel <m.i@gmx.at>2018-09-27 01:43:43 +0200
commit330aa15e3e4a705eb8d168bc9c76af9b1b768dfc (patch)
treebe3412953a872dc3ad43217d45009f28d4607966 /net/inet.c
parentc7bf9cc575dea15ecc8780afd34ffb3503f3249b (diff)
user space compilation of fool stack
Diffstat (limited to 'net/inet.c')
-rw-r--r--net/inet.c5
1 files changed, 3 insertions, 2 deletions
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);