Skip to content

Commit fbc6059

Browse files
update constants
1 parent 83cf4f5 commit fbc6059

File tree

2 files changed

+21
-7
lines changed

2 files changed

+21
-7
lines changed

iroh-net/src/net/interfaces/bsd/netbsd.rs

Lines changed: 16 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -34,14 +34,23 @@ pub const RTM_MISS: c_int = 0x7;
3434
pub const RTM_LOCK: c_int = 0x8;
3535
pub const RTM_OLDADD: c_int = 0x9;
3636
pub const RTM_OLDDEL: c_int = 0xa;
37-
pub const RTM_RESOLVE: c_int = 0xb;
38-
pub const RTM_NEWADDR: c_int = 0xc;
39-
pub const RTM_DELADDR: c_int = 0xd;
40-
pub const RTM_IFINFO: c_int = 0xe;
37+
// pub const RTM_RESOLVE: c_int = 0xb;
38+
pub const RTM_ONEWADDR: c_int = 0xc;
39+
pub const RTM_ODELADDR: c_int = 0xd;
40+
pub const RTM_OOIFINFO: c_int = 0xe;
41+
pub const RTM_OIFINFO: c_int = 0xf;
4142
pub const RTM_NEWMADDR: c_int = 0xf;
42-
pub const RTM_DELMADDR: c_int = 0x10;
43-
pub const RTM_IFANNOUNCE: c_int = 0x11;
44-
pub const RTM_IEEE80211: c_int = 0x12;
43+
pub const RTM_IFANNOUNCE: c_int = 0x10;
44+
pub const RTM_IEEE80211: c_int = 0x11;
45+
pub const RTM_SETGATE: c_int = 0x12;
46+
47+
pub const RTM_LLINFO_UPD: c_int = 0x13;
48+
49+
pub const RTM_IFINFO: c_int = 0x14;
50+
pub const RTM_OCHGADDR: c_int = 0x15;
51+
pub const RTM_NEWADDR: c_int = 0x16;
52+
pub const RTM_DELADDR: c_int = 0x17;
53+
pub const RTM_CHGADDR: c_int = 0x18;
4554

4655
// Hardcoded based on the generated values here: https://cs.opensource.google/go/x/net/+/master:route/zsys_netbsd.go
4756

iroh-net/src/net/interfaces/bsd/openbsd.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,11 @@ pub const RTM_IFINFO: c_int = 0xe;
3838
pub const RTM_IFANNOUNCE: c_int = 0xf;
3939
pub const RTM_DESYNC: c_int = 0x10;
4040
pub const RTM_INVALIDATE: c_int = 0x11;
41+
pub const RTM_BFD: c_int = 0x12;
42+
pub const RTM_PROPOSAL: c_int = 0x13;
43+
pub const RTM_CHGADDRATTR: c_int = 0x14;
44+
pub const RTM_80211INFO: c_int = 0x15;
45+
pub const RTM_SOURCE: c_int = 0x16;
4146

4247
// socket.h
4348
pub const NET_RT_STATS: c_int = 5;

0 commit comments

Comments
 (0)