deal with policy without selector. sync w/ kame
This commit is contained in:
parent
a3a659ef72
commit
ce87a439ff
@ -1,5 +1,5 @@
|
||||
/* $NetBSD: pfkey_dump.c,v 1.16 2003/08/26 03:49:05 itojun Exp $ */
|
||||
/* $KAME: pfkey_dump.c,v 1.44 2003/07/25 09:35:28 itojun Exp $ */
|
||||
/* $NetBSD: pfkey_dump.c,v 1.17 2003/09/08 10:16:31 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.
|
||||
@ -31,7 +31,7 @@
|
||||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__RCSID("$NetBSD: pfkey_dump.c,v 1.16 2003/08/26 03:49:05 itojun Exp $");
|
||||
__RCSID("$NetBSD: pfkey_dump.c,v 1.17 2003/09/08 10:16:31 itojun Exp $");
|
||||
|
||||
#include <sys/types.h>
|
||||
#include <sys/param.h>
|
||||
@ -402,11 +402,12 @@ pfkey_spdump(m)
|
||||
}
|
||||
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 */
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user