diff options
author | Reyk Floeter <reyk@cvs.openbsd.org> | 2010-07-01 02:11:36 +0000 |
---|---|---|
committer | Reyk Floeter <reyk@cvs.openbsd.org> | 2010-07-01 02:11:36 +0000 |
commit | cd104fc737542ce663549f1f95c66566c48816b8 (patch) | |
tree | 6f9dcfabc1c761b3f1ee16d7b0e57a28b9f0462f /sbin | |
parent | 654205592319e75563e57a6262ca44fece0d13c6 (diff) |
support dumping the new SADB_X_EXT_TAP extension.
Diffstat (limited to 'sbin')
-rw-r--r-- | sbin/ipsecctl/pfkdump.c | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/sbin/ipsecctl/pfkdump.c b/sbin/ipsecctl/pfkdump.c index 76d510313e4..7b6831855f5 100644 --- a/sbin/ipsecctl/pfkdump.c +++ b/sbin/ipsecctl/pfkdump.c @@ -1,4 +1,4 @@ -/* $OpenBSD: pfkdump.c,v 1.26 2009/11/13 20:09:54 jsg Exp $ */ +/* $OpenBSD: pfkdump.c,v 1.27 2010/07/01 02:11:35 reyk Exp $ */ /* * Copyright (c) 2003 Markus Friedl. All rights reserved. @@ -56,6 +56,7 @@ static void print_auth(struct sadb_ext *, struct sadb_msg *); static void print_cred(struct sadb_ext *, struct sadb_msg *); static void print_udpenc(struct sadb_ext *, struct sadb_msg *); static void print_tag(struct sadb_ext *, struct sadb_msg *); +static void print_tap(struct sadb_ext *, struct sadb_msg *); static struct idname *lookup(struct idname *, u_int8_t); static char *lookup_name(struct idname *, u_int8_t); @@ -106,6 +107,7 @@ struct idname ext_types[] = { { SADB_X_EXT_UDPENCAP, "udpencap", print_udpenc }, { SADB_X_EXT_LIFETIME_LASTUSE, "lifetime_lastuse", print_life }, { SADB_X_EXT_TAG, "tag", print_tag }, + { SADB_X_EXT_TAP, "tap", print_tap }, { 0, NULL, NULL } }; @@ -386,6 +388,14 @@ print_tag(struct sadb_ext *ext, struct sadb_msg *msg) printf("%s", p); } +static void +print_tap(struct sadb_ext *ext, struct sadb_msg *msg) +{ + struct sadb_x_tap *stap = (struct sadb_x_tap *)ext; + + printf("enc%u", stap->sadb_x_tap_unit); +} + static char * alg_by_ext(u_int8_t ext_type, u_int8_t id) { |