Page MenuHomeFreeBSD

D62020.1795652451.diff
No OneTemporary

Authored By
Unknown
Size
1 KB
Referenced Files
None
Subscribers
None

D62020.1795652451.diff

diff --git a/usr.sbin/rtsold/rtsol.c b/usr.sbin/rtsold/rtsol.c
--- a/usr.sbin/rtsold/rtsol.c
+++ b/usr.sbin/rtsold/rtsol.c
@@ -330,7 +330,7 @@
/*
* "Always" script.
*/
- if (!ifi->alwaysconfig) {
+ if (!ifi->alwaysconfig && nd_ra->nd_ra_router_lifetime != 0) {
const char *rasender = inet_ntop(AF_INET6, &from.sin6_addr,
ntopbuf, sizeof(ntopbuf));
ifi->alwaysconfig = 1;
@@ -525,7 +525,8 @@
TAILQ_INSERT_TAIL(&ifi->ifi_rainfo, rai, rai_next);
ra_opt_handler(ifi);
- ifi->racnt++;
+ if (nd_ra->nd_ra_router_lifetime != 0)
+ ifi->racnt++;
switch (ifi->state) {
case IFS_IDLE: /* should be ignored */
diff --git a/usr.sbin/rtsold/rtsold.8 b/usr.sbin/rtsold/rtsold.8
--- a/usr.sbin/rtsold/rtsold.8
+++ b/usr.sbin/rtsold/rtsold.8
@@ -27,7 +27,7 @@
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
.\" SUCH DAMAGE.
.\"
-.Dd May 2, 2023
+.Dd November 24, 2026
.Dt RTSOLD 8
.Os
.\"
@@ -253,8 +253,8 @@
file, and be created by the same owner who runs
.Nm .
.It Fl A Ar script-name
-Specifies a supplement script file to always be called for the router
-advertisement.
+Specifies a supplement script file to be called for the first router
+advertisement with a non-zero router lifetime received on an interface.
.Nm
will invoke
.Ar script-name

File Metadata

Mime Type
text/plain
Expires
Thu, Nov 26, 12:20 AM (16 h, 53 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
42002274
Default Alt Text
D62020.1795652451.diff (1 KB)

Event Timeline