Skip to content

Commit

Permalink
rtsold: pass sending router address to other script as well
Browse files Browse the repository at this point in the history
Partially based on an old pfSense modification that never made it
to FreeBSD upstream.

See: fichtner/pfsense-tools@2a78e6483
(cherry picked from commit 3c56de5)
  • Loading branch information
fichtner committed Aug 6, 2017
1 parent 3c5efa9 commit 37a8229
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion usr.sbin/rtsold/rtsol.c
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,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

Expand Down
5 changes: 3 additions & 2 deletions usr.sbin/rtsold/rtsold.8
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
.\"
.\" $FreeBSD$
.\"
.Dd June 14, 2011
.Dd July 28, 2017
.Dt RTSOLD 8
.Os
.\"
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 37a8229

Please sign in to comment.