mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-18 10:35:55 +00:00
Honor sysctl for TTL.
MFC after: 3 days
This commit is contained in:
parent
962cef4089
commit
2566e071ec
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=236493
@ -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