diff options
| author | dsl <dsl@NetBSD.org> | 2009-11-28 22:11:42 +0000 |
|---|---|---|
| committer | dsl <dsl@NetBSD.org> | 2009-11-28 22:11:42 +0000 |
| commit | ea4ea02d98eba2e67dc5d45fd8d866cafc00e497 (patch) | |
| tree | b917c90b2d9b898a3e28c2df3d7ab1a008bf6cf3 /sys/compat/linux/common/linux_socket.c | |
| parent | d671d748d9163e2ce048f348670542badb74435d (diff) | |
Add LINUX_SIOCGIFMTU and LINUX_IP_HDRINCL support.
Fixes part of PR/31358
The other parts are rather too intrusive to be fixed as in the PR.
Diffstat (limited to 'sys/compat/linux/common/linux_socket.c')
| -rw-r--r-- | sys/compat/linux/common/linux_socket.c | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/sys/compat/linux/common/linux_socket.c b/sys/compat/linux/common/linux_socket.c index 4c3b64d7dbe..721a0682e65 100644 --- a/sys/compat/linux/common/linux_socket.c +++ b/sys/compat/linux/common/linux_socket.c @@ -1,4 +1,4 @@ -/* $NetBSD: linux_socket.c,v 1.106 2009/11/13 22:39:35 joerg Exp $ */ +/* $NetBSD: linux_socket.c,v 1.107 2009/11/28 22:11:42 dsl Exp $ */ /*- * Copyright (c) 1995, 1998, 2008 The NetBSD Foundation, Inc. @@ -35,7 +35,7 @@ */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: linux_socket.c,v 1.106 2009/11/13 22:39:35 joerg Exp $"); +__KERNEL_RCSID(0, "$NetBSD: linux_socket.c,v 1.107 2009/11/28 22:11:42 dsl Exp $"); #if defined(_KERNEL_OPT) #include "opt_inet.h" @@ -849,6 +849,8 @@ linux_to_bsd_ip_sockopt(int lopt) return IP_TOS; case LINUX_IP_TTL: return IP_TTL; + case LINUX_IP_HDRINCL: + return IP_HDRINCL; case LINUX_IP_MULTICAST_TTL: return IP_MULTICAST_TTL; case LINUX_IP_MULTICAST_LOOP: @@ -1275,6 +1277,9 @@ linux_ioctl_socket(struct lwp *l, const struct linux_sys_ioctl_args *uap, regist case LINUX_SIOCGIFNETMASK: SCARG(&ia, com) = OOSIOCGIFNETMASK; break; + case LINUX_SIOCGIFMTU: + SCARG(&ia, com) = OSIOCGIFMTU; + break; case LINUX_SIOCADDMULTI: SCARG(&ia, com) = OSIOCADDMULTI; break; |
