tcp_syncache.c (db1240661fdf7d9a81020b1b84b3d5044858e47f) tcp_syncache.c (34333b16cdbff9a44599686b809052878716f44e)
1/*-
2 * Copyright (c) 2001 McAfee, Inc.
3 * All rights reserved.
4 *
5 * This software was developed for the FreeBSD Project by Jonathan Lemon
6 * and McAfee Research, the Security Research Division of McAfee, Inc. under
7 * DARPA/SPAWAR contract N66001-01-C-8035 ("CBOSS"), as part of the
8 * DARPA CHATS research program.

--- 1058 unchanged lines hidden (view full) ---

1067
1068 /*
1069 * XXX shouldn't this reuse the mbuf if possible ?
1070 * Create the IP+TCP header from scratch.
1071 */
1072 if (m)
1073 m_freem(m);
1074
1/*-
2 * Copyright (c) 2001 McAfee, Inc.
3 * All rights reserved.
4 *
5 * This software was developed for the FreeBSD Project by Jonathan Lemon
6 * and McAfee Research, the Security Research Division of McAfee, Inc. under
7 * DARPA/SPAWAR contract N66001-01-C-8035 ("CBOSS"), as part of the
8 * DARPA CHATS research program.

--- 1058 unchanged lines hidden (view full) ---

1067
1068 /*
1069 * XXX shouldn't this reuse the mbuf if possible ?
1070 * Create the IP+TCP header from scratch.
1071 */
1072 if (m)
1073 m_freem(m);
1074
1075 m = m_gethdr(M_DONTWAIT, MT_HEADER);
1075 m = m_gethdr(M_DONTWAIT, MT_DATA);
1076 if (m == NULL)
1077 return (ENOBUFS);
1078 m->m_data += max_linkhdr;
1079 m->m_len = tlen;
1080 m->m_pkthdr.len = tlen;
1081 m->m_pkthdr.rcvif = NULL;
1082 inp = sc->sc_tp->t_inpcb;
1083 INP_LOCK(inp);

--- 323 unchanged lines hidden ---
1076 if (m == NULL)
1077 return (ENOBUFS);
1078 m->m_data += max_linkhdr;
1079 m->m_len = tlen;
1080 m->m_pkthdr.len = tlen;
1081 m->m_pkthdr.rcvif = NULL;
1082 inp = sc->sc_tp->t_inpcb;
1083 INP_LOCK(inp);

--- 323 unchanged lines hidden ---