aboutgitcodebugslistschat
diff options
context:
space:
mode:
authorStefano Brivio <sbrivio@redhat.com>2021-04-26 14:23:15 +0200
committerStefano Brivio <sbrivio@redhat.com>2021-04-29 17:15:26 +0200
commit50bcddabc9e2c0dbd313a61cda1606045a67a8de (patch)
tree70c2a32ed3182680a559279bb3b05f18c589fb64
parentdb1fe773a3eacbf2b3ce0b3333f1684291fa5c2d (diff)
downloadpasst-50bcddabc9e2c0dbd313a61cda1606045a67a8de.tar
passt-50bcddabc9e2c0dbd313a61cda1606045a67a8de.tar.gz
passt-50bcddabc9e2c0dbd313a61cda1606045a67a8de.tar.bz2
passt-50bcddabc9e2c0dbd313a61cda1606045a67a8de.tar.lz
passt-50bcddabc9e2c0dbd313a61cda1606045a67a8de.tar.xz
passt-50bcddabc9e2c0dbd313a61cda1606045a67a8de.tar.zst
passt-50bcddabc9e2c0dbd313a61cda1606045a67a8de.zip
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>
-rw-r--r--passt.h8
1 files 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;