tcp_ipv4.c (2a1d4bd46047efff513600d7ff422bc344f540a6) tcp_ipv4.c (af9b4738574b46025de7ccbe75c7b24fd8914379)
1/*
2 * INET An implementation of the TCP/IP protocol suite for the LINUX
3 * operating system. INET is implemented using the BSD Socket
4 * interface as the means of communication with the user level.
5 *
6 * Implementation of the Transmission Control Protocol(TCP).
7 *
8 * IPv4 specific functions

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

1501 bh_lock_sock(nsk);
1502 return nsk;
1503 }
1504 inet_twsk_put(inet_twsk(nsk));
1505 return NULL;
1506 }
1507
1508#ifdef CONFIG_SYN_COOKIES
1/*
2 * INET An implementation of the TCP/IP protocol suite for the LINUX
3 * operating system. INET is implemented using the BSD Socket
4 * interface as the means of communication with the user level.
5 *
6 * Implementation of the Transmission Control Protocol(TCP).
7 *
8 * IPv4 specific functions

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

1501 bh_lock_sock(nsk);
1502 return nsk;
1503 }
1504 inet_twsk_put(inet_twsk(nsk));
1505 return NULL;
1506 }
1507
1508#ifdef CONFIG_SYN_COOKIES
1509 if (!th->rst && !th->syn && th->ack)
1509 if (!th->syn)
1510 sk = cookie_v4_check(sk, skb, &(IPCB(skb)->opt));
1511#endif
1512 return sk;
1513}
1514
1515static __sum16 tcp_v4_checksum_init(struct sk_buff *skb)
1516{
1517 const struct iphdr *iph = ip_hdr(skb);

--- 1072 unchanged lines hidden ---
1510 sk = cookie_v4_check(sk, skb, &(IPCB(skb)->opt));
1511#endif
1512 return sk;
1513}
1514
1515static __sum16 tcp_v4_checksum_init(struct sk_buff *skb)
1516{
1517 const struct iphdr *iph = ip_hdr(skb);

--- 1072 unchanged lines hidden ---