diff options
author | 2004-09-22 21:33:53 +0000 | |
---|---|---|
committer | 2004-09-22 21:33:53 +0000 | |
commit | f13b03384d1635b082933a6c6a2ef81b1b5c65ce (patch) | |
tree | 050d2755c9e5161d849f24f8bcfb53871bc32da8 /sys/netinet/tcp_input.c | |
parent | skeleton man page for "central" (diff) | |
download | wireguard-openbsd-f13b03384d1635b082933a6c6a2ef81b1b5c65ce.tar.xz wireguard-openbsd-f13b03384d1635b082933a6c6a2ef81b1b5c65ce.zip |
account for linkhdr size when choosing mbufs vs mbuf clusters
ok dhartmei markus claudio henning mcbride ...
Diffstat (limited to 'sys/netinet/tcp_input.c')
-rw-r--r-- | sys/netinet/tcp_input.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/netinet/tcp_input.c b/sys/netinet/tcp_input.c index f0470d8c8af..68b04e37a04 100644 --- a/sys/netinet/tcp_input.c +++ b/sys/netinet/tcp_input.c @@ -1,4 +1,4 @@ -/* $OpenBSD: tcp_input.c,v 1.175 2004/07/16 09:26:07 markus Exp $ */ +/* $OpenBSD: tcp_input.c,v 1.176 2004/09/22 21:33:53 deraadt Exp $ */ /* $NetBSD: tcp_input.c,v 1.23 1996/02/13 23:43:44 christos Exp $ */ /* @@ -4033,7 +4033,7 @@ syn_cache_respond(sc, m) return (ENOBUFS); #endif MGETHDR(m, M_DONTWAIT, MT_DATA); - if (m && tlen > MHLEN) { + if (m && max_linkhdr + tlen > MHLEN) { MCLGET(m, M_DONTWAIT); if ((m->m_flags & M_EXT) == 0) { m_freem(m); |