summaryrefslogtreecommitdiffstats
path: root/sys/compat/linux/linux_socket.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/compat/linux/linux_socket.c')
-rw-r--r--sys/compat/linux/linux_socket.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/compat/linux/linux_socket.c b/sys/compat/linux/linux_socket.c
index 8df363627cf..be4a6dd24ef 100644
--- a/sys/compat/linux/linux_socket.c
+++ b/sys/compat/linux/linux_socket.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: linux_socket.c,v 1.50 2014/03/27 13:27:28 mpi Exp $ */
+/* $OpenBSD: linux_socket.c,v 1.51 2014/03/28 08:33:51 sthen Exp $ */
/* $NetBSD: linux_socket.c,v 1.14 1996/04/05 00:01:50 christos Exp $ */
/*
@@ -215,6 +215,8 @@ linux_to_bsd_msg_flags(int lflags)
flags |= MSG_OOB;
if (lflags & LINUX_MSG_PEEK)
flags |= MSG_PEEK;
+ if (lflags & LINUX_MSG_DONTROUTE)
+ flags |= MSG_DONTROUTE;
if (lflags & LINUX_MSG_DONTWAIT)
flags |= MSG_DONTWAIT;
if (lflags & LINUX_MSG_WAITALL)