Skip to content
This repository has been archived by the owner on Jun 20, 2024. It is now read-only.

Commit

Permalink
prevent dropping of large multicast packets
Browse files Browse the repository at this point in the history
Fixes #1507.
  • Loading branch information
rade committed Oct 6, 2015
1 parent 7743f0e commit 0ef548b
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion weave
Original file line number Diff line number Diff line change
Expand Up @@ -543,8 +543,14 @@ attach() {

# Route multicast packets across the weave network.
# This must come last in 'attach'. If you change this, change weavewait to match.
#
# The MTU lock prevents PMTU discovery for multicast
# destinations. Without that, the kernel sets the DF flag on
# multicast packets. Since RFC1122 prohibits sending of ICMP
# errors for packets with multicast destinations, that causes
# packets larger than the PMTU to be dropped silently.
if ! netnsenter ip route show | grep '^224\.0\.0\.0/4' >/dev/null ; then
netnsenter ip route add 224.0.0.0/4 dev $CONTAINER_IFNAME
netnsenter ip route add 224.0.0.0/4 dev $CONTAINER_IFNAME mtu lock $MTU
fi
}

Expand Down

0 comments on commit 0ef548b

Please sign in to comment.