projects
/
tinc
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Send large packets we cannot handle properly via TCP.
[tinc]
/
src
/
route.c
diff --git
a/src/route.c
b/src/route.c
index
d748db1
..
9b68903
100644
(file)
--- a/
src/route.c
+++ b/
src/route.c
@@
-769,13
+769,12
@@
static void route_mac(node_t *source, vpn_packet_t *packet)
} else {
fragment_ipv4_packet(via, packet);
}
} else {
fragment_ipv4_packet(via, packet);
}
+ return;
} else if(type == ETH_P_IPV6) {
packet->len = via->mtu;
route_ipv6_unreachable(source, packet, ICMP6_PACKET_TOO_BIG, 0);
} else if(type == ETH_P_IPV6) {
packet->len = via->mtu;
route_ipv6_unreachable(source, packet, ICMP6_PACKET_TOO_BIG, 0);
- } else
- ifdebug(TRAFFIC) logger(LOG_INFO, _("Large packet of unhandled type %hx dropped"), type);
-
- return;
+ return;
+ }
}
send_packet(subnet->owner, packet);
}
send_packet(subnet->owner, packet);