1
0
mirror of https://code.semirocket.science/wrapsix synced 2025-12-15 02:05:13 +02:00

Saving and processing unknown incoming fragments

New data structure -- linked list
Reduced few useless debug outputs
This commit is contained in:
Michal Zima
2012-07-14 11:38:13 +02:00
parent b9c6d5c46a
commit 24b09b4d93
9 changed files with 246 additions and 40 deletions

View File

@@ -164,10 +164,8 @@ int process(char *packet)
switch (htons(eth->type)) {
case ETHERTYPE_IP:
log_debug("HW Protocol: IPv4");
return ipv4(eth, payload);
case ETHERTYPE_IPV6:
log_debug("HW Protocol: IPv6");
return ipv6(eth, payload);
case ETHERTYPE_ARP:
log_debug("HW Protocol: ARP");