Skip to content

Commit

Permalink
sys/netinet/icmp6.h: use C99 uintX_t constants for new PREF64 struct
Browse files Browse the repository at this point in the history
Reviewed by: imp, glebius (prior suggetions done)
Pull Request: freebsd/freebsd-src#1206
  • Loading branch information
llfw authored and bsdimp committed May 23, 2024
1 parent 77f06c4 commit 4b75afe
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions sys/netinet/icmp6.h
Original file line number Diff line number Diff line change
Expand Up @@ -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) */

Expand Down Expand Up @@ -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;

Expand Down

0 comments on commit 4b75afe

Please sign in to comment.