Skip to content

Commit 9fbadda

Browse files
committed
Add constants for FreeBSD
1 parent 8383d42 commit 9fbadda

1 file changed

Lines changed: 11 additions & 0 deletions

File tree

src/netmap.rs

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -152,6 +152,17 @@ pub const NIOCRXSYNC: c_uint = 27029;
152152
#[cfg(target_os = "linux")]
153153
pub const NIOCCONFIG: c_ulong = 3239078294;
154154

155+
#[cfg(target_os = "freebsd")]
156+
pub const NIOCGINFO: c_ulong = 3225184657;
157+
#[cfg(target_os = "freebsd")]
158+
pub const NIOCREGIF: c_ulong = 3225184658;
159+
#[cfg(target_os = "freebsd")]
160+
pub const NIOCTXSYNC: c_uint = 536897940;
161+
#[cfg(target_os = "freebsd")]
162+
pub const NIOCRXSYNC: c_uint = 536897941;
163+
#[cfg(target_os = "freebsd")]
164+
pub const NIOCCONFIG: c_ulong = 3239078294;
165+
155166
#[inline(always)]
156167
pub unsafe fn nm_ring_empty(ring: *mut netmap_ring) -> bool {
157168
(*ring).cur == (*ring).tail

0 commit comments

Comments
 (0)