mirror of
https://passt.top/passt
synced 2025-01-03 11:25:24 +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:
parent
db1fe773a3
commit
50bcddabc9
8
passt.h
8
passt.h
@ -42,10 +42,10 @@ struct ctx {
|
|||||||
unsigned char mac_guest[ETH_ALEN];
|
unsigned char mac_guest[ETH_ALEN];
|
||||||
|
|
||||||
int v4;
|
int v4;
|
||||||
unsigned long addr4;
|
uint32_t addr4;
|
||||||
unsigned long mask4;
|
uint32_t mask4;
|
||||||
unsigned long gw4;
|
uint32_t gw4;
|
||||||
unsigned long dns4;
|
uint32_t dns4;
|
||||||
|
|
||||||
int v6;
|
int v6;
|
||||||
struct in6_addr addr6;
|
struct in6_addr addr6;
|
||||||
|
Loading…
Reference in New Issue
Block a user