Author: tuexen
Date: Thu Mar  7 20:34:30 2013
New Revision: 247936
URL: http://svnweb.freebsd.org/changeset/base/247936

Log:
  MFC r236493:
  
  Honor sysctl for TTL.

Modified:
  stable/8/sys/netinet/sctp_output.c
Directory Properties:
  stable/8/sys/   (props changed)
  stable/8/sys/netinet/   (props changed)

Modified: stable/8/sys/netinet/sctp_output.c
==============================================================================
--- stable/8/sys/netinet/sctp_output.c  Thu Mar  7 20:32:30 2013        
(r247935)
+++ stable/8/sys/netinet/sctp_output.c  Thu Mar  7 20:34:30 2013        
(r247936)
@@ -10923,7 +10923,7 @@ sctp_send_shutdown_complete2(struct mbuf
                iph_out->ip_tos = (u_char)0;
                iph_out->ip_id = 0;
                iph_out->ip_off = 0;
-               iph_out->ip_ttl = MAXTTL;
+               iph_out->ip_ttl = MODULE_GLOBAL(ip_defttl);
                if (port) {
                        iph_out->ip_p = IPPROTO_UDP;
                } else {
@@ -11992,7 +11992,7 @@ sctp_send_abort(struct mbuf *m, int iphl
                iph_out->ip_tos = (u_char)0;
                iph_out->ip_id = 0;
                iph_out->ip_off = 0;
-               iph_out->ip_ttl = MAXTTL;
+               iph_out->ip_ttl = MODULE_GLOBAL(ip_defttl);
                if (port) {
                        iph_out->ip_p = IPPROTO_UDP;
                } else {
@@ -12255,7 +12255,7 @@ sctp_send_operr_to(struct mbuf *m, int i
                iph_out->ip_tos = (u_char)0;
                iph_out->ip_id = 0;
                iph_out->ip_off = 0;
-               iph_out->ip_ttl = MAXTTL;
+               iph_out->ip_ttl = MODULE_GLOBAL(ip_defttl);
                if (port) {
                        iph_out->ip_p = IPPROTO_UDP;
                } else {
_______________________________________________
svn-src-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"

Reply via email to