diff options
author | 2001-06-23 07:14:32 +0000 | |
---|---|---|
committer | 2001-06-23 07:14:32 +0000 | |
commit | 5894cd475be4ff1e0e55ba2d7b52d82ab5e80e33 (patch) | |
tree | 9bb9415cda15e4720ee47234443e38a6df7232f7 /sys/netinet/tcp_output.c | |
parent | Only use IP checksumming if the output interface is not in bridge (diff) | |
download | wireguard-openbsd-5894cd475be4ff1e0e55ba2d7b52d82ab5e80e33.tar.xz wireguard-openbsd-5894cd475be4ff1e0e55ba2d7b52d82ab5e80e33.zip |
Likewise, only use outgoing TCP/UDP hardware checksumming if the
interface is not in bridge mode.
Diffstat (limited to 'sys/netinet/tcp_output.c')
-rw-r--r-- | sys/netinet/tcp_output.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/netinet/tcp_output.c b/sys/netinet/tcp_output.c index 5a0a32c4f23..866828bdc88 100644 --- a/sys/netinet/tcp_output.c +++ b/sys/netinet/tcp_output.c @@ -1,4 +1,4 @@ -/* $OpenBSD: tcp_output.c,v 1.40 2001/06/23 06:03:12 angelos Exp $ */ +/* $OpenBSD: tcp_output.c,v 1.41 2001/06/23 07:14:32 angelos Exp $ */ /* $NetBSD: tcp_output.c,v 1.16 1997/06/03 16:17:09 kml Exp $ */ /* @@ -958,7 +958,8 @@ send: ro = &tp->t_inpcb->inp_route; if (ro->ro_rt && (ro->ro_rt->rt_flags & RTF_UP)) { ifp = ro->ro_rt->rt_ifp; - if (ifp->if_capabilities & IFCAP_CSUM_TCPv4) { + if ((ifp->if_capabilities & IFCAP_CSUM_TCPv4) && + ifp->if_bridge == NULL) { m->m_pkthdr.csum |= M_TCPV4_CSUM_OUT; tcpstat.tcps_outhwcsum++; th->th_sum = in_cksum(m, (int)hdrlen); |