From b85d5dc85049885be7b554e0a3c7cc7b33afc56f Mon Sep 17 00:00:00 2001 From: Yoshinobu Inoue Date: Tue, 15 Feb 2000 18:24:27 +0000 Subject: [PATCH] -P option was not enabled, so enable it (The option specify IPsec policy for rtadvd to receive Router Renumbering messages.) Approved by: jkh --- usr.sbin/rtadvd/rtadvd.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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;