diff options
author | Stefano Brivio <sbrivio@redhat.com> | 2021-04-26 14:23:15 +0200 |
---|---|---|
committer | Stefano Brivio <sbrivio@redhat.com> | 2021-04-29 17:15:26 +0200 |
commit | 50bcddabc9e2c0dbd313a61cda1606045a67a8de (patch) | |
tree | 70c2a32ed3182680a559279bb3b05f18c589fb64 /passt.h | |
parent | db1fe773a3eacbf2b3ce0b3333f1684291fa5c2d (diff) | |
download | passt-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>
Diffstat (limited to 'passt.h')
-rw-r--r-- | passt.h | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -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; |