aboutsummaryrefslogtreecommitdiff
path: root/usr.sbin/rtadvd/rtadvd.c
diff options
context:
space:
mode:
authorYoshinobu Inoue <shin@FreeBSD.org>2000-02-15 18:24:27 +0000
committerYoshinobu Inoue <shin@FreeBSD.org>2000-02-15 18:24:27 +0000
commitb85d5dc85049885be7b554e0a3c7cc7b33afc56f (patch)
tree4c69ab02520bd6a41fb7c92588b4692b6d7ae64c /usr.sbin/rtadvd/rtadvd.c
parent9bf48e31c510c8a28f6ad228ba03705951b88d3c (diff)
downloadsrc-b85d5dc85049885be7b554e0a3c7cc7b33afc56f.tar.gz
src-b85d5dc85049885be7b554e0a3c7cc7b33afc56f.zip
-P option was not enabled, so enable it
(The option specify IPsec policy for rtadvd to receive Router Renumbering messages.) Approved by: jkh
Notes
Notes: svn path=/head/; revision=57238
Diffstat (limited to 'usr.sbin/rtadvd/rtadvd.c')
-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 03ed974f656a..4a9d276b4ee8 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;