summaryrefslogtreecommitdiffstats
path: root/sys/netinet/tcp_output.c
diff options
context:
space:
mode:
authoritojun <itojun@openbsd.org>1999-12-10 17:51:10 +0000
committeritojun <itojun@openbsd.org>1999-12-10 17:51:10 +0000
commit746062d675b38e7a7c92fc65ddbe149f66ee5c6b (patch)
tree4b8534a75bdf8565984d95bf766be73415dbc421 /sys/netinet/tcp_output.c
parentindent (diff)
downloadwireguard-openbsd-746062d675b38e7a7c92fc65ddbe149f66ee5c6b.tar.xz
wireguard-openbsd-746062d675b38e7a7c92fc65ddbe149f66ee5c6b.zip
sync DIAGNOSTIC code with reality. we always get cluster mbuf so
max_linkhdr + hdrlen <= MCLBYTES is safe.
Diffstat (limited to 'sys/netinet/tcp_output.c')
-rw-r--r--sys/netinet/tcp_output.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/netinet/tcp_output.c b/sys/netinet/tcp_output.c
index 8e73f4978f0..5b236f45cd2 100644
--- a/sys/netinet/tcp_output.c
+++ b/sys/netinet/tcp_output.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: tcp_output.c,v 1.25 1999/12/08 06:50:20 itojun Exp $ */
+/* $OpenBSD: tcp_output.c,v 1.26 1999/12/10 17:51:10 itojun Exp $ */
/* $NetBSD: tcp_output.c,v 1.16 1997/06/03 16:17:09 kml Exp $ */
/*
@@ -590,7 +590,7 @@ send:
}
#ifdef DIAGNOSTIC
- if (max_linkhdr + hdrlen > MHLEN)
+ if (max_linkhdr + hdrlen > MCLBYTES)
panic("tcphdr too big");
#endif