diff options
author | Alexander Bluhm <bluhm@cvs.openbsd.org> | 2021-04-14 19:34:57 +0000 |
---|---|---|
committer | Alexander Bluhm <bluhm@cvs.openbsd.org> | 2021-04-14 19:34:57 +0000 |
commit | 65c86f5047c863f6af7151b4cac7f8a66d3dd632 (patch) | |
tree | 4c4221b325e5e86358ba66300bc5b3cba415ff57 /usr.sbin/tcpdump | |
parent | f52aa2dcbd3ed177bfdf841c14a30d74d9271d4f (diff) |
On powerpc64 tcpdump(8) could not parse wireguard packets.
EXTRACT_LE_32BITS() converts the type from little endian to host
endian. So we need the constants in host endianess. This fixes
regress/sys/net/wg.
OK deraadt@ sthen@
Diffstat (limited to 'usr.sbin/tcpdump')
-rw-r--r-- | usr.sbin/tcpdump/print-wg.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/usr.sbin/tcpdump/print-wg.c b/usr.sbin/tcpdump/print-wg.c index 70a61bd6ad4..4140b5ed8e9 100644 --- a/usr.sbin/tcpdump/print-wg.c +++ b/usr.sbin/tcpdump/print-wg.c @@ -1,4 +1,4 @@ -/* $OpenBSD: print-wg.c,v 1.5 2020/07/20 02:24:24 kn Exp $ */ +/* $OpenBSD: print-wg.c,v 1.6 2021/04/14 19:34:56 bluhm Exp $ */ /* * Copyright (C) 2015-2020 Jason A. Donenfeld <Jason@zx2c4.com>. All Rights Reserved. @@ -25,10 +25,10 @@ #include "interface.h" #include "extract.h" -#define INITIATION htole32(1) -#define RESPONSE htole32(2) -#define COOKIE htole32(3) -#define DATA htole32(4) +#define INITIATION 1 +#define RESPONSE 2 +#define COOKIE 3 +#define DATA 4 struct wg_initiation { uint32_t type; |