tcp_syncache.c (150131) | tcp_syncache.c (151967) |
---|---|
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. --- 14 unchanged lines hidden (view full) --- 23 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 24 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 25 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 26 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 27 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 28 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 29 * SUCH DAMAGE. 30 * | 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. --- 14 unchanged lines hidden (view full) --- 23 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 24 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 25 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 26 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 27 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 28 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 29 * SUCH DAMAGE. 30 * |
31 * $FreeBSD: head/sys/netinet/tcp_syncache.c 150131 2005-09-14 15:06:22Z andre $ | 31 * $FreeBSD: head/sys/netinet/tcp_syncache.c 151967 2005-11-02 13:46:32Z andre $ |
32 */ 33 34#include "opt_inet.h" 35#include "opt_inet6.h" 36#include "opt_ipsec.h" 37#include "opt_mac.h" 38#include "opt_tcpdebug.h" 39#include "opt_tcp_sack.h" --- 1027 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 | 32 */ 33 34#include "opt_inet.h" 35#include "opt_inet6.h" 36#include "opt_ipsec.h" 37#include "opt_mac.h" 38#include "opt_tcpdebug.h" 39#include "opt_tcp_sack.h" --- 1027 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 --- |