git: 4b75afe885d4 - main - sys/netinet/icmp6.h: use C99 uintX_t constants for new PREF64 struct
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Thu, 23 May 2024 20:41:47 UTC
The branch main has been updated by imp: URL: https://cgit.FreeBSD.org/src/commit/?id=4b75afe885d4510ee2bd83be21ac78ca9a2f02cd commit 4b75afe885d4510ee2bd83be21ac78ca9a2f02cd Author: Lexi Winter <lexi@le-Fay.ORG> AuthorDate: 2024-05-14 23:45:47 +0000 Commit: Warner Losh <imp@FreeBSD.org> CommitDate: 2024-05-23 20:40:48 +0000 sys/netinet/icmp6.h: use C99 uintX_t constants for new PREF64 struct Reviewed by: imp, glebius (prior suggetions done) Pull Request: https://github.com/freebsd/freebsd-src/pull/1206 --- sys/netinet/icmp6.h | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/sys/netinet/icmp6.h b/sys/netinet/icmp6.h index 05f4737e8fd9..0bccba3754b0 100644 --- a/sys/netinet/icmp6.h +++ b/sys/netinet/icmp6.h @@ -63,6 +63,8 @@ #ifndef _NETINET_ICMP6_H_ #define _NETINET_ICMP6_H_ +#include <stdint.h> + #define ICMPV6_PLD_MAXLEN 1232 /* IPV6_MMTU - sizeof(struct ip6_hdr) - sizeof(struct icmp6_hdr) */ @@ -375,10 +377,10 @@ struct nd_opt_dnssl { /* DNSSL option (RFC 6106) */ } __packed; struct nd_opt_pref64 { /* PREF64 option (RFC 8781) */ - u_int8_t nd_opt_pref64_type; - u_int8_t nd_opt_pref64_len; + uint8_t nd_opt_pref64_type; + uint8_t nd_opt_pref64_len; /* bits 0-12 are the SL, bits 13-15 are the PLC */ - u_int16_t nd_opt_pref64_sl_plc; + uint16_t nd_opt_pref64_sl_plc; char nd_opt_prefix[12]; } __packed;