rtsold: pass sending router address to other script as well

Partially based on an old pfSense modification that never made it
to FreeBSD upstream.

See: https://github.com/fichtner/pfsense-tools/commit/2a78e6483
This commit is contained in:
Franco Fichtner 2017-07-28 10:28:00 +02:00
parent f98928cd33
commit d6ce6ebf4c
2 changed files with 4 additions and 3 deletions

View File

@ -94,7 +94,7 @@ static int ra_opt_rdnss_dispatch(struct ifinfo *, struct rainfo *,
struct script_msg_head_t *, struct script_msg_head_t *);
static char *make_rsid(const char *, const char *, struct rainfo *);
#define _ARGS_OTHER otherconf_script, ifi->ifname
#define _ARGS_OTHER otherconf_script, ifi->ifname, ntopbuf
#define _ARGS_RESADD resolvconf_script, "-a", rsid
#define _ARGS_RESDEL resolvconf_script, "-d", rsid

View File

@ -29,7 +29,7 @@
.\"
.\" $FreeBSD$
.\"
.Dd June 14, 2011
.Dd July 28, 2017
.Dt RTSOLD 8
.Os
.\"
@ -215,7 +215,8 @@ When the flag changes from FALSE to TRUE,
.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.
.Ar script-name