FreeBSD Bugzilla – Attachment 220903 Details for
Bug 252121
rtadvd should not put an upper limit on rdnssltime and dnsslltime
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
Removes upper limit on RDNSS and DNSSL lifetimes.
usr_sbin_rtadvd-unlimited-dns-time.patch (text/plain), 1.20 KB, created by
Kevin Barry
on 2020-12-25 01:57:52 UTC
(
hide
)
Description:
Removes upper limit on RDNSS and DNSSL lifetimes.
Filename:
MIME Type:
Creator:
Kevin Barry
Created:
2020-12-25 01:57:52 UTC
Size:
1.20 KB
patch
obsolete
>--- /usr/src/usr.sbin/rtadvd/config.c.orig 2020-10-23 00:02:31.000000000 +0000 >+++ /usr/src/usr.sbin/rtadvd/config.c 2020-12-25 00:45:27.000718000 +0000 >@@ -833,11 +833,11 @@ > makeentry(entbuf, sizeof(entbuf), i, "rdnssltime"); > MAYHAVE(val, entbuf, (rai->rai_maxinterval * 3 / 2)); > if ((uint16_t)val < rai->rai_maxinterval || >- (uint16_t)val > rai->rai_maxinterval * 2) { >+ (uint16_t)val > USHRT_MAX) { > syslog(LOG_ERR, "%s (%" PRIu16 ") on %s is invalid " > "(must be between %d and %d)", > entbuf, val, ifi->ifi_ifname, rai->rai_maxinterval, >- rai->rai_maxinterval * 2); >+ USHRT_MAX); > goto getconfig_free_rdn; > } > rdn->rd_ltime = val; >@@ -887,11 +887,11 @@ > makeentry(entbuf, sizeof(entbuf), i, "dnsslltime"); > MAYHAVE(val, entbuf, (rai->rai_maxinterval * 3 / 2)); > if ((uint16_t)val < rai->rai_maxinterval || >- (uint16_t)val > rai->rai_maxinterval * 2) { >+ (uint16_t)val > USHRT_MAX) { > syslog(LOG_ERR, "%s (%" PRIu16 ") on %s is invalid " > "(must be between %d and %d)", > entbuf, val, ifi->ifi_ifname, rai->rai_maxinterval, >- rai->rai_maxinterval * 2); >+ USHRT_MAX); > goto getconfig_free_dns; > } > dns->dn_ltime = val;
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 252121
: 220903