From mboxrd@z Thu Jan 1 00:00:00 1970 From: Stefano Brivio To: passt-dev@passt.top Subject: [PATCH 04/24] util: Use standard int types Date: Fri, 25 Mar 2022 23:52:40 +0100 Message-ID: <20220325225300.2803584-5-sbrivio@redhat.com> In-Reply-To: <20220325225300.2803584-1-sbrivio@redhat.com> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0845891505324093942==" --===============0845891505324093942== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit ...instead of kernel-like short notations. Signed-off-by: Stefano Brivio --- util.h | 12 ++++++------ 1 file 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. */ -- 2.35.1 --===============0845891505324093942==--