From 9f153fbfec0fb9c9ce38e749a7c6f4a5e115d4e9 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Thu, 19 Sep 2024 06:14:33 +0200 Subject: Merging upstream version 4.4.0. Signed-off-by: Daniel Baumann --- extcap/udpdump.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'extcap/udpdump.c') diff --git a/extcap/udpdump.c b/extcap/udpdump.c index 7f4602ac..e7ff3db4 100644 --- a/extcap/udpdump.c +++ b/extcap/udpdump.c @@ -70,7 +70,7 @@ enum { OPT_PAYLOAD }; -static struct ws_option longopts[] = { +static const struct ws_option longopts[] = { EXTCAP_BASE_OPTIONS, /* Generic application options */ { "help", ws_no_argument, NULL, OPT_HELP}, @@ -253,7 +253,7 @@ static int dump_packet(const char* proto_name, const uint16_t listenport, const add_proto_name(mbuf, &offset, proto_name); add_ip_source_address(mbuf, &offset, clientaddr.sin_addr.s_addr); - add_ip_dest_address(mbuf, &offset, WS_IN4_LOOPBACK); + add_ip_dest_address(mbuf, &offset, g_htonl(INADDR_LOOPBACK)); add_udp_source_port(mbuf, &offset, clientaddr.sin_port); add_udp_dst_port(mbuf, &offset, listenport); add_end_options(mbuf, &offset); -- cgit v1.2.3