aboutgitcodebugslistschat
path: root/util.h
diff options
context:
space:
mode:
authorStefano Brivio <sbrivio@redhat.com>2022-03-15 01:03:29 +0100
committerStefano Brivio <sbrivio@redhat.com>2022-03-25 13:21:13 +0100
commitde0961c01c2dc2983cdd90c7c26515cddfcc08d2 (patch)
tree37fd56cd5e12716b9d87eee8c16e7be843a77b6e /util.h
parent6a1150c026c8223e5c984a725d3c91c463bf399e (diff)
downloadpasst-de0961c01c2dc2983cdd90c7c26515cddfcc08d2.tar
passt-de0961c01c2dc2983cdd90c7c26515cddfcc08d2.tar.gz
passt-de0961c01c2dc2983cdd90c7c26515cddfcc08d2.tar.bz2
passt-de0961c01c2dc2983cdd90c7c26515cddfcc08d2.tar.lz
passt-de0961c01c2dc2983cdd90c7c26515cddfcc08d2.tar.xz
passt-de0961c01c2dc2983cdd90c7c26515cddfcc08d2.tar.zst
passt-de0961c01c2dc2983cdd90c7c26515cddfcc08d2.zip
util: Use standard int types
...instead of kernel-like short notations. Signed-off-by: Stefano Brivio <sbrivio@redhat.com>
Diffstat (limited to 'util.h')
-rw-r--r--util.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/util.h b/util.h
index d80157c..e314c71 100644
--- a/util.h
+++ b/util.h
@@ -164,7 +164,7 @@ struct ctx;
struct ipv6hdr {
#pragma GCC diagnostic ignored "-Wpedantic"
#if __BYTE_ORDER == __BIG_ENDIAN
- __u8 version:4,
+ uint8_t version:4,
priority:4;
#else
uint8_t priority:4,
@@ -173,17 +173,17 @@ struct ipv6hdr {
#pragma GCC diagnostic pop
uint8_t flow_lbl[3];
- __be16 payload_len;
- __u8 nexthdr;
- __u8 hop_limit;
+ uint16_t payload_len;
+ uint8_t nexthdr;
+ uint8_t hop_limit;
struct in6_addr saddr;
struct in6_addr daddr;
};
struct ipv6_opt_hdr {
- __u8 nexthdr;
- __u8 hdrlen;
+ uint8_t nexthdr;
+ uint8_t hdrlen;
/*
* TLV encoded option data follows.
*/