diff options
Diffstat (limited to 'src/user/app/netstack/arp.c')
-rw-r--r-- | src/user/app/netstack/arp.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/user/app/netstack/arp.c b/src/user/app/netstack/arp.c index cfb1e04..9eab8e3 100644 --- a/src/user/app/netstack/arp.c +++ b/src/user/app/netstack/arp.c @@ -31,7 +31,7 @@ void arp_parse(const uint8_t *buf, size_t len) { uint32_t daddr = nget32(buf + DstIP); if (daddr == state.ip) { uint8_t *pkt = ether_start(30, (struct ethernet){ - .dst = buf + SrcMAC, + .dst = (void*)(buf + SrcMAC), .type = ET_ARP, }); nput16(pkt + HdrType, 1); |