diff options
author | Henning Brauer <henning@cvs.openbsd.org> | 2004-01-30 11:33:33 +0000 |
---|---|---|
committer | Henning Brauer <henning@cvs.openbsd.org> | 2004-01-30 11:33:33 +0000 |
commit | 0e3f40a1191a16cadc1c62cae8d885362c7eee6c (patch) | |
tree | 4860f812b9cad2e7c717364246c80c5d2fbf8e40 /sys/netinet | |
parent | 6b8cd81185d109e8cb3c1c4ee5aad053e8cf8838 (diff) |
add support for getsockopt(..., TCP_SIGNATURE_ENABLE
so you can check wether a just accept()ed connection is md5sig'd
ok deraadt@ markus@
Diffstat (limited to 'sys/netinet')
-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 1b415e25294..0b41f64f345 100644 --- a/sys/netinet/tcp_usrreq.c +++ b/sys/netinet/tcp_usrreq.c @@ -1,4 +1,4 @@ -/* $OpenBSD: tcp_usrreq.c,v 1.76 2004/01/29 11:55:28 markus Exp $ */ +/* $OpenBSD: tcp_usrreq.c,v 1.77 2004/01/30 11:33:32 henning Exp $ */ /* $NetBSD: tcp_usrreq.c,v 1.20 1996/02/13 23:44:16 christos Exp $ */ /* @@ -630,6 +630,11 @@ tcp_ctloutput(op, so, level, optname, mp) *mtod(m, int *) = tp->sack_disable; break; #endif +#ifdef TCP_SIGNATURE + case TCP_SIGNATURE_ENABLE: + *mtod(m, int *) = tp->t_flags & TF_SIGNATURE; + break; +#endif default: error = ENOPROTOOPT; break; |