Page MenuHomeFreeBSD

D31518.id93631.diff
No OneTemporary

D31518.id93631.diff

Index: usr.sbin/rtsold/rtsol.c
===================================================================
--- usr.sbin/rtsold/rtsol.c
+++ usr.sbin/rtsold/rtsol.c
@@ -79,8 +79,8 @@
struct script_msg_head_t *, struct script_msg_head_t *);
static char *make_rsid(const char *, const char *, struct rainfo *);
-#define _ARGS_MANAGED managedconf_script, ifi->ifname
-#define _ARGS_OTHER otherconf_script, ifi->ifname
+#define _ARGS_MANAGED managedconf_script, ifi->ifname, rasender
+#define _ARGS_OTHER otherconf_script, ifi->ifname, rasender
#define _ARGS_RESADD resolvconf_script, "-a", rsid
#define _ARGS_RESDEL resolvconf_script, "-d", rsid
@@ -301,6 +301,8 @@
*/
if (((nd_ra->nd_ra_flags_reserved) & ND_RA_FLAG_MANAGED) &&
!ifi->managedconfig) {
+ const char *rasender = inet_ntop(AF_INET6, &from.sin6_addr,
+ ntopbuf, sizeof(ntopbuf));
warnmsg(LOG_DEBUG, __func__,
"ManagedConfigFlag on %s is turned on", ifi->ifname);
ifi->managedconfig = 1;
@@ -317,6 +319,8 @@
*/
if (((nd_ra->nd_ra_flags_reserved) & ND_RA_FLAG_OTHER) &&
!ifi->otherconfig) {
+ const char *rasender = inet_ntop(AF_INET6, &from.sin6_addr,
+ ntopbuf, sizeof(ntopbuf));
warnmsg(LOG_DEBUG, __func__,
"OtherConfigFlag on %s is turned on", ifi->ifname);
ifi->otherconfig = 1;
Index: usr.sbin/rtsold/rtsold.8
===================================================================
--- usr.sbin/rtsold/rtsold.8
+++ usr.sbin/rtsold/rtsold.8
@@ -29,7 +29,7 @@
.\"
.\" $FreeBSD$
.\"
-.Dd August 19, 2020
+.Dd August 12, 2021
.Dt RTSOLD 8
.Os
.\"
@@ -219,7 +219,8 @@
.Nm
will invoke
.Ar script-name
-with a single argument of the receiving interface name,
+with a first argument of the receiving interface name
+and a second argument of the sending router address,
expecting the script will then start a protocol for the managed
configuration.
.Ar script-name
@@ -233,7 +234,8 @@
.Nm
will invoke
.Ar script-name
-with a single argument of the receiving interface name,
+with a first argument of the receiving interface name
+and a second argument of the sending router address,
expecting the script will then start a protocol for the other
configuration.
The script will not be run if the Managed Configuration flag in the

File Metadata

Mime Type
text/plain
Expires
Sat, Mar 28, 9:56 AM (13 h, 22 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
30467515
Default Alt Text
D31518.id93631.diff (2 KB)

Event Timeline