diff options
| author | Miguel <m.i@gmx.at> | 2018-09-27 01:43:43 +0200 |
|---|---|---|
| committer | Miguel <m.i@gmx.at> | 2018-09-27 01:43:43 +0200 |
| commit | 330aa15e3e4a705eb8d168bc9c76af9b1b768dfc (patch) | |
| tree | be3412953a872dc3ad43217d45009f28d4607966 /net/inet.c | |
| parent | c7bf9cc575dea15ecc8780afd34ffb3503f3249b (diff) | |
user space compilation of fool stack
Diffstat (limited to 'net/inet.c')
| -rw-r--r-- | net/inet.c | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -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); |
