From d6ce6ebf4cb6d28b3aaafb156a04979b5c5e3a1f Mon Sep 17 00:00:00 2001 From: Franco Fichtner Date: Fri, 28 Jul 2017 10:28:00 +0200 Subject: [PATCH] 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 --- usr.sbin/rtsold/rtsol.c | 2 +- usr.sbin/rtsold/rtsold.8 | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/usr.sbin/rtsold/rtsol.c b/usr.sbin/rtsold/rtsol.c index a10cd4c510d..88803118030 100644 --- a/usr.sbin/rtsold/rtsol.c +++ b/usr.sbin/rtsold/rtsol.c @@ -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 diff --git a/usr.sbin/rtsold/rtsold.8 b/usr.sbin/rtsold/rtsold.8 index 05133d8720b..b0c9fc454a8 100644 --- a/usr.sbin/rtsold/rtsold.8 +++ b/usr.sbin/rtsold/rtsold.8 @@ -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