Author: tuexen
Date: Fri Apr 28 15:38:34 2017
New Revision: 317558
URL: https://svnweb.freebsd.org/changeset/base/317558

Log:
  Set the DF bit for responses to out-of-the-blue packets.
  
  MFC after:    1 week

Modified:
  head/sys/netinet/sctp_output.c

Modified: head/sys/netinet/sctp_output.c
==============================================================================
--- head/sys/netinet/sctp_output.c      Fri Apr 28 15:15:26 2017        
(r317557)
+++ head/sys/netinet/sctp_output.c      Fri Apr 28 15:38:34 2017        
(r317558)
@@ -11147,7 +11147,7 @@ sctp_send_resp_msg(struct sockaddr *src,
                ip->ip_v = IPVERSION;
                ip->ip_hl = (sizeof(struct ip) >> 2);
                ip->ip_tos = 0;
-               ip->ip_off = 0;
+               ip->ip_off = htons(IP_DF);
                ip_fillid(ip);
                ip->ip_ttl = MODULE_GLOBAL(ip_defttl);
                if (port) {
_______________________________________________
[email protected] mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "[email protected]"

Reply via email to