Skip to content

Commit d8af6bf

Browse files
committed
Revert "style: remove _MAX* place holder constants"
This reverts commit 0f93088. `RTAX_MAX` is used to loop over alternate internal encoding.
1 parent 9d8b39c commit d8af6bf

File tree

4 files changed

+5
-0
lines changed

4 files changed

+5
-0
lines changed

src/unix/bsd/freebsdlike/dragonfly/mod.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1533,6 +1533,7 @@ pub const RTM_VERSION: ::c_int = 7;
15331533
pub const RTAX_MPLS1: ::c_int = 8;
15341534
pub const RTAX_MPLS2: ::c_int = 9;
15351535
pub const RTAX_MPLS3: ::c_int = 10;
1536+
pub const RTAX_MAX: ::c_int = 11;
15361537

15371538
const_fn! {
15381539
{const} fn _CMSG_ALIGN(n: usize) -> usize {

src/unix/bsd/freebsdlike/freebsd/mod.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4561,6 +4561,8 @@ pub const RTF_FIXEDMTU: ::c_int = 0x80000;
45614561

45624562
pub const RTM_VERSION: ::c_int = 5;
45634563

4564+
pub const RTAX_MAX: ::c_int = 8;
4565+
45644566
// sys/signal.h
45654567
pub const SIGTHR: ::c_int = 32;
45664568
pub const SIGLWP: ::c_int = SIGTHR;

src/unix/bsd/netbsdlike/netbsd/mod.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2439,6 +2439,7 @@ pub const RTM_CHGADDR: ::c_int = 0x18;
24392439
pub const RTA_TAG: ::c_int = 0x100;
24402440

24412441
pub const RTAX_TAG: ::c_int = 8;
2442+
pub const RTAX_MAX: ::c_int = 9;
24422443

24432444
cfg_if! {
24442445

src/unix/bsd/netbsdlike/openbsd/mod.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1962,6 +1962,7 @@ pub const RTAX_BFD: ::c_int = 11;
19621962
pub const RTAX_DNS: ::c_int = 12;
19631963
pub const RTAX_STATIC: ::c_int = 13;
19641964
pub const RTAX_SEARCH: ::c_int = 14;
1965+
pub const RTAX_MAX: ::c_int = 15;
19651966

19661967
const_fn! {
19671968
{const} fn _ALIGN(p: usize) -> usize {

0 commit comments

Comments
 (0)