Source-Changes-HG archive

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

[src/trunk]: src/crypto/dist/ipsec-tools/src/libipsec Recognize direction for...



details:   https://anonhg.NetBSD.org/src/rev/41366cc2d370
branches:  trunk
changeset: 759246:41366cc2d370
user:      tteras <tteras%NetBSD.org@localhost>
date:      Fri Dec 03 15:01:11 2010 +0000

description:
Recognize direction for Linux per-socket policies.

diffstat:

 crypto/dist/ipsec-tools/src/libipsec/ipsec_dump_policy.c |  9 +++++++--
 1 files changed, 7 insertions(+), 2 deletions(-)

diffs (30 lines):

diff -r 6f14cc3e4f31 -r 41366cc2d370 crypto/dist/ipsec-tools/src/libipsec/ipsec_dump_policy.c
--- a/crypto/dist/ipsec-tools/src/libipsec/ipsec_dump_policy.c  Fri Dec 03 14:32:52 2010 +0000
+++ b/crypto/dist/ipsec-tools/src/libipsec/ipsec_dump_policy.c  Fri Dec 03 15:01:11 2010 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: ipsec_dump_policy.c,v 1.8 2007/07/18 12:07:50 vanhu Exp $      */
+/*     $NetBSD: ipsec_dump_policy.c,v 1.9 2010/12/03 15:01:11 tteras Exp $     */
 
 /* Id: ipsec_dump_policy.c,v 1.10 2005/06/29 09:12:37 manubsd Exp */
 
@@ -53,7 +53,10 @@
 #include "libpfkey.h"
 
 static const char *ipsp_dir_strs[] = {
-       "any", "in", "out", "fwd"
+       "any", "in", "out", "fwd",
+#ifdef __linux__
+       "in(socket)", "out(socket)"
+#endif
 };
 
 static const char *ipsp_policy_strs[] = {
@@ -165,6 +168,8 @@
        case IPSEC_DIR_OUTBOUND:
 #ifdef HAVE_POLICY_FWD
        case IPSEC_DIR_FWD:
+       case IPSEC_DIR_FWD + 1:
+       case IPSEC_DIR_FWD + 2:
 #endif
                break;
        default:



Home | Main Index | Thread Index | Old Index