From 03febfc8193290c6b3e4fd21663243288ab7fd40 Mon Sep 17 00:00:00 2001 From: Gerald Combs Date: Tue, 25 Jun 2013 13:31:19 +0000 Subject: [PATCH] From Dirk Jagdmann: Use a guint32 for IPv4 addresses. Fixes compilation on OS X + Cmake. svn path=/trunk/; revision=50139 --- text2pcap.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/text2pcap.c b/text2pcap.c index 1aab81a84e..85044ec431 100644 --- a/text2pcap.c +++ b/text2pcap.c @@ -181,8 +181,8 @@ static int hdr_ipv6 = FALSE; static long hdr_ip_proto = 0; /* Destination and source addresses for IP header */ -static unsigned long hdr_ip_dest_addr = 0; -static unsigned long hdr_ip_src_addr = 0; +static guint32 hdr_ip_dest_addr = 0; +static guint32 hdr_ip_src_addr = 0; static guint8 hdr_ipv6_dest_addr[16] = {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}; static guint8 hdr_ipv6_src_addr[16] = {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}; static guint8 NO_IPv6_ADDRESS[16] = {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0};