1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-21 11:13:30 +00:00

iConvert Linux SOL_IPV6 level.

MFC after:	1 week
This commit is contained in:
Dmitry Chagin 2016-03-27 08:12:01 +00:00
parent e667ee63f6
commit c826fcfe22
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=297310
4 changed files with 5 additions and 0 deletions

View File

@ -404,6 +404,7 @@ struct l_ipc_perm {
#define LINUX_SOL_SOCKET 1
#define LINUX_SOL_IP 0
#define LINUX_SOL_IPV6 41
#define LINUX_SOL_IPX 256
#define LINUX_SOL_AX25 257
#define LINUX_SOL_TCP 6

View File

@ -494,6 +494,7 @@ struct l_ipc_perm {
*/
#define LINUX_SOL_SOCKET 1
#define LINUX_SOL_IP 0
#define LINUX_SOL_IPV6 41
#define LINUX_SOL_IPX 256
#define LINUX_SOL_AX25 257
#define LINUX_SOL_TCP 6

View File

@ -246,6 +246,8 @@ linux_to_bsd_sockopt_level(int level)
switch (level) {
case LINUX_SOL_SOCKET:
return (SOL_SOCKET);
case LINUX_SOL_IPV6:
return (IPPROTO_IPV6);
}
return (level);
}

View File

@ -473,6 +473,7 @@ struct l_ipc_perm {
*/
#define LINUX_SOL_SOCKET 1
#define LINUX_SOL_IP 0
#define LINUX_SOL_IPV6 41
#define LINUX_SOL_IPX 256
#define LINUX_SOL_AX25 257
#define LINUX_SOL_TCP 6