/* -*- linux-c -*- */ #ifndef _LINUX_IF_REDIRDEV_H #define _LINUX_IF_REDIRDEV_H /* the ioctl commands */ #define REDIRDEV_ADD 2090 #define REDIRDEV_DEL 2091 /* If this IOCTL succeedes, we are a MAC-VLAN interface, otherwise, we are not. */ #define REDIRDEV_IS_REDIRDEV 2092 #define REDIRDEV_GET_BY_IDX 2093 #define REDIRDEV_GET_BY_NAME 2094 #ifdef __KERNEL__ #include #include extern int (*redirdev_ioctl_hook)(void*); #endif /* Request and response */ struct redirdev_ioctl { u32 cmd; u32 ifidx; /* when getting info by idx */ #define RDD_ASSOCIATED (1<<0) u32 flags; /* 1<<0: Is the interface associated with tx-dev or not */ char ifname[IFNAMSIZ]; char txifname[IFNAMSIZ]; }; #endif