diff options
author | fenner <fenner@FreeBSD.org> | 1996-12-03 02:52:29 +0000 |
---|---|---|
committer | fenner <fenner@FreeBSD.org> | 1996-12-03 02:52:29 +0000 |
commit | 0c67934fafa58a5271cfa2c381752fdeb4696353 (patch) | |
tree | a16244a2a08b3e0e8bb20d28197ba1fac690a5f0 /sys/compat | |
parent | 47ee9196beeaa7a40be71cf2e8642202eef9a54c (diff) | |
download | FreeBSD-src-0c67934fafa58a5271cfa2c381752fdeb4696353.zip FreeBSD-src-0c67934fafa58a5271cfa2c381752fdeb4696353.tar.gz |
Add IP_OPTIONS and the multicast-related setsockopts to the
list of IP setsockopts the Linux emulator recognizes.
Explicitly disallow IP_HDRINCL since Linux's handling of
raw output is different than BSD's.
Closes PR#kern/2111.
Submitted by: y-nakaga@ccs.mt.nec.co.jp (Yoshihisa NAKAGAWA)
Diffstat (limited to 'sys/compat')
-rw-r--r-- | sys/compat/linux/linux_socket.c | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/sys/compat/linux/linux_socket.c b/sys/compat/linux/linux_socket.c index 63b33d5..083dd71 100644 --- a/sys/compat/linux/linux_socket.c +++ b/sys/compat/linux/linux_socket.c @@ -25,7 +25,7 @@ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. * - * $Id: linux_socket.c,v 1.3 1995/12/15 03:06:57 peter Exp $ + * $Id: linux_socket.c,v 1.4 1996/03/02 19:37:59 peter Exp $ */ /* XXX we use functions that might not exist. */ @@ -82,6 +82,19 @@ static int linux_to_bsd_ip_sockopt(int opt) return IP_TOS; case LINUX_IP_TTL: return IP_TTL; + case LINUX_IP_OPTIONS: + return IP_OPTIONS; + case LINUX_IP_MULTICAST_IF: + return IP_MULTICAST_IF; + case LINUX_IP_MULTICAST_TTL: + return IP_MULTICAST_TTL; + case LINUX_IP_MULTICAST_LOOP: + return IP_MULTICAST_LOOP; + case LINUX_IP_ADD_MEMBERSHIP: + return IP_ADD_MEMBERSHIP; + case LINUX_IP_DROP_MEMBERSHIP: + return IP_DROP_MEMBERSHIP; + case LINUX_IP_HDRINCL: default: return -1; } |