Skip to content

Commit

Permalink
net-misc/srlog2: Force the MAX_PACKET size down to 1400 bytes
Browse files Browse the repository at this point in the history
When dealing with mixed-MTU networks (ie some hosts have jumbo frames
enabled), srlog2 may try to send out packets larger than the recipient
is willing to receive. To avoid this, force the maximum packet size down
below the 1500 byte standard.
  • Loading branch information
bruceg committed Jun 16, 2016
1 parent e6e2310 commit a72b857
Showing 1 changed file with 2 additions and 0 deletions.
Expand Up @@ -32,6 +32,8 @@ src_prepare() {
[[ -x /sbin/paxctl ]] && \
sed -i -e '/^&& .\/curve25519/i&& paxctl -m curve25519.impl.check \\' $CURVE25519/curve25519.impl.do
sed -i -e 's/) >/) -fPIC >/g' $CURVE25519/Makefile
# Large packets break delivery on mixed-MTU networks
sed -i -e 's/MAX_PACKET 8192/MAX_PACKET 1400/' srlog2.h
}

src_compile() {
Expand Down

0 comments on commit a72b857

Please sign in to comment.