-/* $OpenBSD: pfkdump.c,v 1.52 2020/11/05 19:28:27 phessler Exp $ */
+/* $OpenBSD: pfkdump.c,v 1.53 2021/07/05 12:03:42 tobhe Exp $ */
/*
* Copyright (c) 2003 Markus Friedl. All rights reserved.
static void print_udpenc(struct sadb_ext *, struct sadb_msg *, int);
static void print_tag(struct sadb_ext *, struct sadb_msg *, int);
static void print_rdomain(struct sadb_ext *, struct sadb_msg *, int);
+static void print_mtu(struct sadb_ext *, struct sadb_msg *, int);
static void print_tap(struct sadb_ext *, struct sadb_msg *, int);
static void print_satype(struct sadb_ext *, struct sadb_msg *, int);
static void print_counter(struct sadb_ext *, struct sadb_msg *, int);
{ SADB_X_EXT_LIFETIME_LASTUSE, "lifetime_lastuse", print_life },
{ SADB_X_EXT_TAG, "tag", print_tag },
{ SADB_X_EXT_RDOMAIN, "rdomain", print_rdomain },
+ { SADB_X_EXT_MTU, "mtu", print_mtu },
{ SADB_X_EXT_TAP, "tap", print_tap },
{ SADB_X_EXT_SATYPE2, "satype2", print_satype },
{ SADB_X_EXT_COUNTER, "counter", print_counter },
printf("%s", p);
}
+static void
+print_mtu(struct sadb_ext *ext, struct sadb_msg *msg, int opts)
+{
+ struct sadb_x_mtu *smtu = (struct sadb_x_mtu *)ext;
+
+ printf("mtu %u", smtu->sadb_x_mtu_mtu);
+}
+
static void
print_tap(struct sadb_ext *ext, struct sadb_msg *msg, int opts)
{