mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
To avoid excessive code duplication move MI definitions to the MI
header file. As it is defined in Linux. Approved by: kib (mentor) MFC after: 1 month
This commit is contained in:
parent
d9b063cc9d
commit
13f20d7e86
4 changed files with 11 additions and 16 deletions
|
|
@ -669,14 +669,6 @@ union l_semun {
|
|||
#define LINUX_SENDMSG 16
|
||||
#define LINUX_RECVMSG 17
|
||||
|
||||
#define LINUX_AF_UNSPEC 0
|
||||
#define LINUX_AF_UNIX 1
|
||||
#define LINUX_AF_INET 2
|
||||
#define LINUX_AF_AX25 3
|
||||
#define LINUX_AF_IPX 4
|
||||
#define LINUX_AF_APPLETALK 5
|
||||
#define LINUX_AF_INET6 10
|
||||
|
||||
#define LINUX_SOL_SOCKET 1
|
||||
#define LINUX_SOL_IP 0
|
||||
#define LINUX_SOL_IPX 256
|
||||
|
|
|
|||
|
|
@ -77,6 +77,7 @@ __FBSDID("$FreeBSD$");
|
|||
|
||||
#include <compat/linux/linux_ioctl.h>
|
||||
#include <compat/linux/linux_mib.h>
|
||||
#include <compat/linux/linux_socket.h>
|
||||
#include <compat/linux/linux_util.h>
|
||||
|
||||
CTASSERT(LINUX_IFNAMSIZ == IFNAMSIZ);
|
||||
|
|
|
|||
|
|
@ -80,4 +80,14 @@
|
|||
#define CMSG_HDRSZ CMSG_LEN(0)
|
||||
#define L_CMSG_HDRSZ LINUX_CMSG_LEN(0)
|
||||
|
||||
/* Supported address families */
|
||||
|
||||
#define LINUX_AF_UNSPEC 0
|
||||
#define LINUX_AF_UNIX 1
|
||||
#define LINUX_AF_INET 2
|
||||
#define LINUX_AF_AX25 3
|
||||
#define LINUX_AF_IPX 4
|
||||
#define LINUX_AF_APPLETALK 5
|
||||
#define LINUX_AF_INET6 10
|
||||
|
||||
#endif /* _LINUX_SOCKET_H_ */
|
||||
|
|
|
|||
|
|
@ -645,14 +645,6 @@ union l_semun {
|
|||
#define LINUX_SENDMSG 16
|
||||
#define LINUX_RECVMSG 17
|
||||
|
||||
#define LINUX_AF_UNSPEC 0
|
||||
#define LINUX_AF_UNIX 1
|
||||
#define LINUX_AF_INET 2
|
||||
#define LINUX_AF_AX25 3
|
||||
#define LINUX_AF_IPX 4
|
||||
#define LINUX_AF_APPLETALK 5
|
||||
#define LINUX_AF_INET6 10
|
||||
|
||||
#define LINUX_SOL_SOCKET 1
|
||||
#define LINUX_SOL_IP 0
|
||||
#define LINUX_SOL_IPX 256
|
||||
|
|
|
|||
Loading…
Reference in a new issue