1
0
mirror of https://passt.top/passt synced 2024-07-01 23:42:41 +00:00

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 <sbrivio@redhat.com>
This commit is contained in:
Stefano Brivio 2021-04-26 14:23:15 +02:00
parent db1fe773a3
commit 50bcddabc9

View File

@ -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;