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
1 changed files with 4 additions and 4 deletions
8
passt.h
8
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;
|
||||
|
|
Loading…
Reference in a new issue