diff options
| author | 2014-03-28 08:33:51 +0000 | |
|---|---|---|
| committer | 2014-03-28 08:33:51 +0000 | |
| commit | e4bb3a601452b7363beed241f1e8c2def1aea51f (patch) | |
| tree | 2acb3640ad120b8d93fdfc11b804f8f22bfeed62 /sys/compat/linux/linux_socket.c | |
| parent | sync available and default algorithms, improve algorithm list formatting (diff) | |
| download | wireguard-openbsd-e4bb3a601452b7363beed241f1e8c2def1aea51f.tar.xz wireguard-openbsd-e4bb3a601452b7363beed241f1e8c2def1aea51f.zip | |
revert "Retire kernel support for SO_DONTROUTE" diff, which does bad things
for localhost connections. discussed with deraadt@
Diffstat (limited to 'sys/compat/linux/linux_socket.c')
| -rw-r--r-- | sys/compat/linux/linux_socket.c | 4 |
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) |
