diff options
| author | 2005-05-27 04:55:27 +0000 | |
|---|---|---|
| committer | 2005-05-27 04:55:27 +0000 | |
| commit | ce12ce87d291522f11dbdffa40853d35e0846adc (patch) | |
| tree | 8fb5cc20fd7e3be798cbcea2a5613c3935641cbf /sys/kern/uipc_socket.c | |
| parent | handle SIOCSIFMTU ioctl (diff) | |
| download | wireguard-openbsd-ce12ce87d291522f11dbdffa40853d35e0846adc.tar.xz wireguard-openbsd-ce12ce87d291522f11dbdffa40853d35e0846adc.zip | |
Experimental support for opportunitic use of jumbograms where only some hosts
on the local network support them.
This adds a new socket option, SO_JUMBO, and a new route flag,
RTF_JUMBO. If _both_ the socket option is set and the route for the host
has RTF_JUMBO set, ip_output will fragment the packet to the largest
possible size for the link, ignoring the card's MTU.
The semantics of this feature will be evolving rapidly; talk to us
if you intend to use it.
ok deraadt@ marius@
Diffstat (limited to 'sys/kern/uipc_socket.c')
| -rw-r--r-- | sys/kern/uipc_socket.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/kern/uipc_socket.c b/sys/kern/uipc_socket.c index cddf0d3452f..14fa544fd84 100644 --- a/sys/kern/uipc_socket.c +++ b/sys/kern/uipc_socket.c @@ -1,4 +1,4 @@ -/* $OpenBSD: uipc_socket.c,v 1.56 2004/11/18 15:09:07 markus Exp $ */ +/* $OpenBSD: uipc_socket.c,v 1.57 2005/05/27 04:55:27 mcbride Exp $ */ /* $NetBSD: uipc_socket.c,v 1.21 1996/02/04 02:17:52 christos Exp $ */ /* @@ -1026,6 +1026,7 @@ sosetopt(so, level, optname, m0) case SO_REUSEADDR: case SO_REUSEPORT: case SO_OOBINLINE: + case SO_JUMBO: if (m == NULL || m->m_len < sizeof (int)) { error = EINVAL; goto bad; @@ -1164,6 +1165,7 @@ sogetopt(so, level, optname, mp) case SO_REUSEPORT: case SO_BROADCAST: case SO_OOBINLINE: + case SO_JUMBO: *mtod(m, int *) = so->so_options & optname; break; |
