You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

16 lines
477 B

  1. Subject: Off-by-one error with --dontfrag
  2. Author: Christian Mock <cm@coretec.at>
  3. Bugs-Debian: http://bugs.debian.org/537704
  4. Last-Update: 2009-09-04
  5. --- a/sendip_handler.c
  6. +++ b/sendip_handler.c
  7. @@ -19,7 +19,7 @@ void send_ip_handler(char *packet, unsig
  8. {
  9. ip_optlen = ip_opt_build(ip_opt);
  10. - if (!opt_fragment && (size+ip_optlen+20 >= h_if_mtu))
  11. + if (!opt_fragment && (size+ip_optlen+20 > h_if_mtu))
  12. {
  13. /* auto-activate fragmentation */
  14. virtual_mtu = h_if_mtu-20;