diff options
author | 2011-04-13 11:31:27 +0000 | |
---|---|---|
committer | 2011-04-13 11:31:27 +0000 | |
commit | 6507611d2185aee37df062687f72dc3abe1a02ee (patch) | |
tree | e5848f27eb5eedc10da546fb96decd9f96cc6765 | |
parent | export udpencap state of SA to userland; unbreaks sasyncd(8) with NAT/T. (diff) | |
download | wireguard-openbsd-6507611d2185aee37df062687f72dc3abe1a02ee.tar.xz wireguard-openbsd-6507611d2185aee37df062687f72dc3abe1a02ee.zip |
print flags in hex; from hshoexer@; ok mikeb@ mpf@
-rw-r--r-- | sbin/ipsecctl/pfkdump.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sbin/ipsecctl/pfkdump.c b/sbin/ipsecctl/pfkdump.c index 6c9cfff01de..cf8a72785d1 100644 --- a/sbin/ipsecctl/pfkdump.c +++ b/sbin/ipsecctl/pfkdump.c @@ -1,4 +1,4 @@ -/* $OpenBSD: pfkdump.c,v 1.29 2010/10/06 22:19:20 mikeb Exp $ */ +/* $OpenBSD: pfkdump.c,v 1.30 2011/04/13 11:31:27 markus Exp $ */ /* * Copyright (c) 2003 Markus Friedl. All rights reserved. @@ -282,7 +282,7 @@ print_sa(struct sadb_ext *ext, struct sadb_msg *msg) ntohl(sa->sadb_sa_spi), lookup_name(auth_types, sa->sadb_sa_auth), lookup_name(enc_types, sa->sadb_sa_encrypt)); - printf("\t\tstate %s replay %u flags %u", + printf("\t\tstate %s replay %u flags %x", lookup_name(states, sa->sadb_sa_state), sa->sadb_sa_replay, sa->sadb_sa_flags); } @@ -355,11 +355,11 @@ print_proto(struct sadb_ext *ext, struct sadb_msg *msg) /* overloaded */ if (msg->sadb_msg_type == SADB_X_GRPSPIS) - printf("satype %s flags %u", + printf("satype %s flags %x", lookup_name(sa_types, proto->sadb_protocol_proto), proto->sadb_protocol_flags); else - printf("proto %u flags %u", + printf("proto %u flags %x", proto->sadb_protocol_proto, proto->sadb_protocol_flags); } |