Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sbin/ping6 be friendly with non-IPsec kernel.



details:   https://anonhg.NetBSD.org/src/rev/f214491581ed
branches:  trunk
changeset: 474339:f214491581ed
user:      itojun <itojun%NetBSD.org@localhost>
date:      Sun Jul 04 01:11:23 1999 +0000

description:
be friendly with non-IPsec kernel.
don't exit even if ipsec policy config fails.

diffstat:

 sbin/ping6/ping6.c |  2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diffs (12 lines):

diff -r 754c90940757 -r f214491581ed sbin/ping6/ping6.c
--- a/sbin/ping6/ping6.c        Sun Jul 04 00:43:43 1999 +0000
+++ b/sbin/ping6/ping6.c        Sun Jul 04 01:11:23 1999 +0000
@@ -469,7 +469,7 @@
                if ((len = ipsec_set_policy(buf, len, policy)) < 0)
                        errx(1, ipsec_strerror());
                if (setsockopt(s, IPPROTO_IPV6, IPV6_IPSEC_POLICY, buf, len) < 0)
-                       err(1, "Unable to set IPSec policy");
+                       warnx("Unable to set IPSec policy");
                free(buf);
        }
 #else



Home | Main Index | Thread Index | Old Index