mirror of
https://github.com/Ponce/slackbuilds
synced 2024-11-18 22:06:04 +01:00
bd2f952d40
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
14 lines
328 B
Diff
14 lines
328 B
Diff
|
|
Fixes Off-by-one error with --dontfrag
|
|
|
|
--- a/sendip_handler.c
|
|
+++ b/sendip_handler.c
|
|
@@ -19,7 +19,7 @@
|
|
{
|
|
ip_optlen = ip_opt_build(ip_opt);
|
|
|
|
- if (!opt_fragment && (size+ip_optlen+20 >= h_if_mtu))
|
|
+ if (!opt_fragment && (size+ip_optlen+20 > h_if_mtu))
|
|
{
|
|
/* auto-activate fragmentation */
|
|
virtual_mtu = h_if_mtu-20;
|