Honor sysctl for TTL.
MFC after: 3 days
This commit is contained in:
parent
962cef4089
commit
2566e071ec
@ -10923,7 +10923,7 @@ sctp_send_shutdown_complete2(struct mbuf *m, struct sctphdr *sh,
|
||||
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 iphlen, struct sctphdr *sh, uint32_t vtag,
|
||||
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 iphlen, struct mbuf *scm, uint32_t vtag,
|
||||
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 {
|
||||
|
Loading…
Reference in New Issue
Block a user