diff options
author | 2002-05-16 14:10:51 +0000 | |
---|---|---|
committer | 2002-05-16 14:10:51 +0000 | |
commit | 74e8fb406b32d77df32ffdf4fc26b0e21d810a27 (patch) | |
tree | 507790e83bed4b31ccf6298b0aceeadbfd32dda2 /sys/netinet/tcp_usrreq.c | |
parent | Xref netstart(8) instead of rc(8) now, PR #2657 (diff) | |
download | wireguard-openbsd-74e8fb406b32d77df32ffdf4fc26b0e21d810a27.tar.xz wireguard-openbsd-74e8fb406b32d77df32ffdf4fc26b0e21d810a27.zip |
bring in ECN support from KAME.
it consists of
- ECN support in TCP
- tunnel-egress and fragment reassembly rules in layer-3 not to lose
congestion info at tunnel-egress and fragment reassembly
to enable ECN in TCP, build a kernel with TCP_ECN, and then,
turn it on by "sysctl -w net.inet.tcp.ecn=1".
ok deraadt@
Diffstat (limited to 'sys/netinet/tcp_usrreq.c')
-rw-r--r-- | sys/netinet/tcp_usrreq.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/sys/netinet/tcp_usrreq.c b/sys/netinet/tcp_usrreq.c index a2130df23a1..b7488a6d1df 100644 --- a/sys/netinet/tcp_usrreq.c +++ b/sys/netinet/tcp_usrreq.c @@ -1,4 +1,4 @@ -/* $OpenBSD: tcp_usrreq.c,v 1.59 2002/03/14 01:27:11 millert Exp $ */ +/* $OpenBSD: tcp_usrreq.c,v 1.60 2002/05/16 14:10:51 kjc Exp $ */ /* $NetBSD: tcp_usrreq.c,v 1.20 1996/02/13 23:44:16 christos Exp $ */ /* @@ -924,6 +924,11 @@ tcp_sysctl(name, namelen, oldp, oldlenp, newp, newlen) case TCPCTL_ACK_ON_PUSH: return (sysctl_int(oldp, oldlenp, newp, newlen, &tcp_ack_on_push)); +#ifdef TCP_ECN + case TCPCTL_ECN: + return (sysctl_int(oldp, oldlenp, newp, newlen, + &tcp_do_ecn)); +#endif default: return (ENOPROTOOPT); } |