From 50bcddabc9e2c0dbd313a61cda1606045a67a8de Mon Sep 17 00:00:00 2001 From: Stefano Brivio Date: Mon, 26 Apr 2021 14:23:15 +0200 Subject: [PATCH] passt: Use uint32_t for IPv4 context addresses ...so that we can compare them directly with a struct in_addr. Signed-off-by: Stefano Brivio --- passt.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/passt.h b/passt.h index d8b2dce..714e7e5 100644 --- a/passt.h +++ b/passt.h @@ -42,10 +42,10 @@ struct ctx { unsigned char mac_guest[ETH_ALEN]; int v4; - unsigned long addr4; - unsigned long mask4; - unsigned long gw4; - unsigned long dns4; + uint32_t addr4; + uint32_t mask4; + uint32_t gw4; + uint32_t dns4; int v6; struct in6_addr addr6;