You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The original NIOCGREGIF is defined in netmap_legacy.h as the following:
/*
* FreeBSD uses the size value embedded in the _IOWR to determine
* how much to copy in/out. So we need it to match the actual
* data structure we pass. We put some spares in the structure
* to ease compatibility with other versions
*/
#define NIOCGINFO _IOWR('i', 145, struct nmreq) /* return IF info */
#define NIOCREGIF _IOWR('i', 146, struct nmreq) /* interface register */
#define NIOCCONFIG _IOWR('i',150, struct nm_ifreq) /* for ext. modules */
They are different on Linux and libc::ioctl(fd, NIOCREGIF, &mut nmr as *mut nmreq) results in Operation bot supported. Valid NIOCREGIF for Linux is 3225446802, isn't it?
The text was updated successfully, but these errors were encountered:
The original
NIOCGREGIF
is defined innetmap_legacy.h
as the following:The Rust's
NIOCREGIF
is defined here:They are different on Linux and
libc::ioctl(fd, NIOCREGIF, &mut nmr as *mut nmreq)
results inOperation bot supported
. ValidNIOCREGIF
for Linux is 3225446802, isn't it?The text was updated successfully, but these errors were encountered: