Skip to content

Commit e06e316

Browse files
Add missing net/if.h and net/if_mib.h items
1 parent 72cf180 commit e06e316

File tree

2 files changed

+934
-24
lines changed

2 files changed

+934
-24
lines changed

libc-test/build.rs

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1810,6 +1810,7 @@ fn test_freebsd(target: &str) {
18101810
"net/if.h",
18111811
"net/if_arp.h",
18121812
"net/if_dl.h",
1813+
"net/if_mib.h",
18131814
"net/route.h",
18141815
"netdb.h",
18151816
"netinet/ip.h",
@@ -2093,6 +2094,18 @@ fn test_freebsd(target: &str) {
20932094
true
20942095
}
20952096

2097+
// Added in freebsd 14.
2098+
"IFCAP_MEXTPG" if Some(14) > freebsd_ver => true,
2099+
// Added in freebsd 13.
2100+
"IFF_KNOWSEPOCH" | "IFCAP_TXTLS4" | "IFCAP_TXTLS6" | "IFCAP_VXLAN_HWCSUM"
2101+
| "IFCAP_VXLAN_HWTSO" | "IFCAP_TXTLS_RTLMT" | "IFCAP_TXTLS"
2102+
if Some(13) > freebsd_ver =>
2103+
{
2104+
true
2105+
}
2106+
// Added in freebsd 12.
2107+
"IFF_NOGROUP" | "IFCAP_TXRTLMT" | "IFCAP_HWRXTSTMP" if Some(12) > freebsd_ver => true,
2108+
20962109
_ => false,
20972110
}
20982111
});
@@ -2207,6 +2220,11 @@ fn test_freebsd(target: &str) {
22072220
("Elf32_Auxinfo", "a_un") => true,
22082221
("Elf64_Auxinfo", "a_un") => true,
22092222

2223+
// union fields
2224+
("if_data", "__ifi_epoch") => true,
2225+
("if_data", "__ifi_lastchange") => true,
2226+
("ifreq", "ifr_ifru") => true,
2227+
22102228
// FIXME: structs too complicated to bind for now...
22112229
("kinfo_proc", "ki_paddr") => true,
22122230
("kinfo_proc", "ki_addr") => true,

0 commit comments

Comments
 (0)