Source-Changes-HG archive

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

[src/trunk]: src/crypto/dist/kame/libipsec support policy w/o selector.



details:   https://anonhg.NetBSD.org/src/rev/e49c7fc666f4
branches:  trunk
changeset: 552777:e49c7fc666f4
user:      itojun <itojun%NetBSD.org@localhost>
date:      Thu Oct 02 19:53:01 2003 +0000

description:
support policy w/o selector.

diffstat:

 crypto/dist/kame/libipsec/pfkey_dump.c |  7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)

diffs (24 lines):

diff -r f2c1c3d43a1e -r e49c7fc666f4 crypto/dist/kame/libipsec/pfkey_dump.c
--- a/crypto/dist/kame/libipsec/pfkey_dump.c    Thu Oct 02 19:52:43 2003 +0000
+++ b/crypto/dist/kame/libipsec/pfkey_dump.c    Thu Oct 02 19:53:01 2003 +0000
@@ -1,4 +1,4 @@
-/*     $KAME: pfkey_dump.c,v 1.44 2003/07/25 09:35:28 itojun Exp $     */
+/*     $KAME: pfkey_dump.c,v 1.45 2003/09/08 10:14:56 itojun Exp $     */
 
 /*
  * Copyright (C) 1995, 1996, 1997, 1998, and 1999 WIDE Project.
@@ -438,11 +438,12 @@
                }
                str_upperspec(m_saddr->sadb_address_proto, sport, dport);
        }
-
 #ifdef SADB_X_EXT_TAG
-       if (m_tag)
+       else if (m_tag)
                printf("tagged \"%s\" ", m_tag->sadb_x_tag_name);
 #endif
+       else
+               printf("(no selector, probably per-socket policy) ");
 
        /* policy */
     {



Home | Main Index | Thread Index | Old Index