summaryrefslogtreecommitdiff
path: root/sys/netinet/tcp_output.c
diff options
context:
space:
mode:
authorBjoern A. Zeeb <bz@FreeBSD.org>2008-09-13 17:26:46 +0000
committerBjoern A. Zeeb <bz@FreeBSD.org>2008-09-13 17:26:46 +0000
commit3418daf2f15ee593c3b14c51663f1a2d0c799c4c (patch)
tree8d4abe59380e08d78c928d0f500940c9c54f301c /sys/netinet/tcp_output.c
parent04b96d88cd58a40aa2c758ae4c1c20d54ad5e394 (diff)
Notes
Diffstat (limited to 'sys/netinet/tcp_output.c')
-rw-r--r--sys/netinet/tcp_output.c9
1 files changed, 1 insertions, 8 deletions
diff --git a/sys/netinet/tcp_output.c b/sys/netinet/tcp_output.c
index 75f3038d6c85..f8cf22fa2829 100644
--- a/sys/netinet/tcp_output.c
+++ b/sys/netinet/tcp_output.c
@@ -682,11 +682,7 @@ send:
}
#ifdef TCP_SIGNATURE
/* TCP-MD5 (RFC2385). */
-#ifdef INET6
- if (!isipv6 && (tp->t_flags & TF_SIGNATURE))
-#else
if (tp->t_flags & TF_SIGNATURE)
-#endif /* INET6 */
to.to_flags |= TOF_SIGNATURE;
#endif /* TCP_SIGNATURE */
@@ -1004,12 +1000,9 @@ send:
tp->snd_up = tp->snd_una; /* drag it along */
#ifdef TCP_SIGNATURE
-#ifdef INET6
- if (!isipv6)
-#endif
if (tp->t_flags & TF_SIGNATURE) {
int sigoff = to.to_signature - opt;
- tcp_signature_compute(m, sizeof(struct ip), len, optlen,
+ tcp_signature_compute(m, 0, len, optlen,
(u_char *)(th + 1) + sigoff, IPSEC_DIR_OUTBOUND);
}
#endif