summaryrefslogtreecommitdiffstats
path: root/usr.sbin/rtadvd
diff options
context:
space:
mode:
authorshin <shin@FreeBSD.org>2000-02-15 18:24:27 +0000
committershin <shin@FreeBSD.org>2000-02-15 18:24:27 +0000
commit0802f60e0b28548477966d4b4472499f717bdf6b (patch)
treeada9f79ca6c0ec9ac2059da860ea2611f0f38d69 /usr.sbin/rtadvd
parentf57ea716fd6cca3681435b0dc8a47ce882d8eab6 (diff)
downloadFreeBSD-src-0802f60e0b28548477966d4b4472499f717bdf6b.zip
FreeBSD-src-0802f60e0b28548477966d4b4472499f717bdf6b.tar.gz
-P option was not enabled, so enable it
(The option specify IPsec policy for rtadvd to receive Router Renumbering messages.) Approved by: jkh
Diffstat (limited to 'usr.sbin/rtadvd')
-rw-r--r--usr.sbin/rtadvd/rtadvd.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/usr.sbin/rtadvd/rtadvd.c b/usr.sbin/rtadvd/rtadvd.c
index 03ed974..4a9d276 100644
--- a/usr.sbin/rtadvd/rtadvd.c
+++ b/usr.sbin/rtadvd/rtadvd.c
@@ -151,7 +151,12 @@ main(argc, argv)
openlog(*argv, LOG_NDELAY|LOG_PID, LOG_DAEMON);
/* get command line options and arguments */
- while ((ch = getopt(argc, argv, "c:dDfR:s")) != -1) {
+#if defined(IPSEC) && defined(IPSEC_POLICY_IPSEC)
+ while ((ch = getopt(argc, argv, "c:dDfP:R:s")) != -1)
+#else
+ while ((ch = getopt(argc, argv, "c:dDfR:s")) != -1)
+#endif
+ {
switch(ch) {
case 'c':
conffile = optarg;
OpenPOWER on IntegriCloud