summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStuart Henderson <sthen@cvs.openbsd.org>2021-11-18 11:04:11 +0000
committerStuart Henderson <sthen@cvs.openbsd.org>2021-11-18 11:04:11 +0000
commit30717a6d20cda9758b5601970714117300726138 (patch)
tree66068f7fd8f9005b724078aac069bb27214c514a
parent3e11bb0667cc85a10cdc0e6ea6c719d8cf3f3906 (diff)
printing udpencap_port in ddb requires ntohs not ntohl. use better format
string. help claudio@ ok bluhm@
-rw-r--r--sys/netinet/ip_ipsp.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/netinet/ip_ipsp.c b/sys/netinet/ip_ipsp.c
index c516964f429..f1941ac645f 100644
--- a/sys/netinet/ip_ipsp.c
+++ b/sys/netinet/ip_ipsp.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ip_ipsp.c,v 1.250 2021/11/16 13:53:14 bluhm Exp $ */
+/* $OpenBSD: ip_ipsp.c,v 1.251 2021/11/18 11:04:10 sthen Exp $ */
/*
* The authors of this code are John Ioannidis (ji@tla.org),
* Angelos D. Keromytis (kermit@csd.uch.gr),
@@ -591,8 +591,8 @@ tdb_printit(void *addr, int full, int (*pr)(const char *, ...))
DUMP(ids_swapped, "%d");
DUMP(mtu, "%d");
DUMP(mtutimeout, "%lld");
- pr("%18s: %08x\n", "udpencap_port",
- ntohl(tdb->tdb_udpencap_port));
+ pr("%18s: %d\n", "udpencap_port",
+ ntohs(tdb->tdb_udpencap_port));
DUMP(tag, "%d");
DUMP(tap, "%d");
DUMP(rdomain, "%d");