diff options
author | Bruce M Simpson <bms@FreeBSD.org> | 2004-02-16 22:21:16 +0000 |
---|---|---|
committer | Bruce M Simpson <bms@FreeBSD.org> | 2004-02-16 22:21:16 +0000 |
commit | 88f6b0435e263cd5094738bb2fa7b69cdec8dc8b (patch) | |
tree | 139dd4288fd6a322be946ecf34e9dcc5d8a52ffb /sys/netinet | |
parent | 497ddd58078f005dab1bae77f8803914ae6fb91a (diff) | |
download | src-88f6b0435e263cd5094738bb2fa7b69cdec8dc8b.tar.gz src-88f6b0435e263cd5094738bb2fa7b69cdec8dc8b.zip |
Shorten the name of the socket option used to enable TCP-MD5 packet
treatment.
Submitted by: Vincent Jardin
Notes
Notes:
svn path=/head/; revision=125890
Diffstat (limited to 'sys/netinet')
-rw-r--r-- | sys/netinet/tcp.h | 2 | ||||
-rw-r--r-- | sys/netinet/tcp_usrreq.c | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/sys/netinet/tcp.h b/sys/netinet/tcp.h index 1df59b6448ce..ca412fbf1787 100644 --- a/sys/netinet/tcp.h +++ b/sys/netinet/tcp.h @@ -158,7 +158,7 @@ struct tcphdr { #define TCP_MAXSEG 0x02 /* set maximum segment size */ #define TCP_NOPUSH 0x04 /* don't push last block of write */ #define TCP_NOOPT 0x08 /* don't use TCP options */ -#define TCP_SIGNATURE_ENABLE 0x10 /* use MD5 digests (RFC2385) */ +#define TCP_MD5SIG 0x10 /* use MD5 digests (RFC2385) */ #endif #endif /* !_NETINET_TCP_H_ */ diff --git a/sys/netinet/tcp_usrreq.c b/sys/netinet/tcp_usrreq.c index 4ff49991dd27..7d14ec1311f4 100644 --- a/sys/netinet/tcp_usrreq.c +++ b/sys/netinet/tcp_usrreq.c @@ -1067,7 +1067,7 @@ tcp_ctloutput(so, sopt) case SOPT_SET: switch (sopt->sopt_name) { #ifdef TCP_SIGNATURE - case TCP_SIGNATURE_ENABLE: + case TCP_MD5SIG: error = sooptcopyin(sopt, &optval, sizeof optval, sizeof optval); if (error) @@ -1140,7 +1140,7 @@ tcp_ctloutput(so, sopt) case SOPT_GET: switch (sopt->sopt_name) { #ifdef TCP_SIGNATURE - case TCP_SIGNATURE_ENABLE: + case TCP_MD5SIG: optval = (tp->t_flags & TF_SIGNATURE) ? 1 : 0; break; #endif |