mirror of
https://code.semirocket.science/wrapsix
synced 2025-12-08 09:55:13 +02:00
Full processing of ICMP packets (v4 and v6); NDP
IPv4 header and pseudoheader Basic preprocessing of IPv4 packets
This commit is contained in:
@@ -161,7 +161,7 @@ int process(char *packet)
|
||||
switch (htons(eth->type)) {
|
||||
case ETHERTYPE_IP:
|
||||
printf("[Debug] HW Protocol: IPv4\n");
|
||||
return -1;
|
||||
return ipv4(eth, payload);
|
||||
case ETHERTYPE_IPV6:
|
||||
printf("[Debug] HW Protocol: IPv6\n");
|
||||
return ipv6(eth, payload);
|
||||
|
||||
Reference in New Issue
Block a user