1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-11-27 08:00:11 +00:00

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
This commit is contained in:
Lexi Winter 2024-05-15 00:45:47 +01:00 committed by Warner Losh
parent 77f06c476c
commit 4b75afe885

View File

@ -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;