Deleted Added
full compact
tcp_syncache.c (253395) tcp_syncache.c (254889)
1/*-
2 * Copyright (c) 2001 McAfee, Inc.
3 * Copyright (c) 2006,2013 Andre Oppermann, Internet Business Solutions AG
4 * All rights reserved.
5 *
6 * This software was developed for the FreeBSD Project by Jonathan Lemon
7 * and McAfee Research, the Security Research Division of McAfee, Inc. under
8 * DARPA/SPAWAR contract N66001-01-C-8035 ("CBOSS"), as part of the

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

26 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
27 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
28 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
29 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
30 * SUCH DAMAGE.
31 */
32
33#include <sys/cdefs.h>
1/*-
2 * Copyright (c) 2001 McAfee, Inc.
3 * Copyright (c) 2006,2013 Andre Oppermann, Internet Business Solutions AG
4 * All rights reserved.
5 *
6 * This software was developed for the FreeBSD Project by Jonathan Lemon
7 * and McAfee Research, the Security Research Division of McAfee, Inc. under
8 * DARPA/SPAWAR contract N66001-01-C-8035 ("CBOSS"), as part of the

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

26 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
27 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
28 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
29 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
30 * SUCH DAMAGE.
31 */
32
33#include <sys/cdefs.h>
34__FBSDID("$FreeBSD: head/sys/netinet/tcp_syncache.c 253395 2013-07-16 16:37:08Z andre $");
34__FBSDID("$FreeBSD: head/sys/netinet/tcp_syncache.c 254889 2013-08-25 21:54:41Z markj $");
35
36#include "opt_inet.h"
37#include "opt_inet6.h"
38#include "opt_ipsec.h"
39#include "opt_pcbgroup.h"
40
41#include <sys/param.h>
42#include <sys/systm.h>

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

830 }
831 INP_HASH_WUNLOCK(&V_tcbinfo);
832 goto abort;
833 }
834 }
835#endif /* INET */
836 INP_HASH_WUNLOCK(&V_tcbinfo);
837 tp = intotcpcb(inp);
35
36#include "opt_inet.h"
37#include "opt_inet6.h"
38#include "opt_ipsec.h"
39#include "opt_pcbgroup.h"
40
41#include <sys/param.h>
42#include <sys/systm.h>

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

830 }
831 INP_HASH_WUNLOCK(&V_tcbinfo);
832 goto abort;
833 }
834 }
835#endif /* INET */
836 INP_HASH_WUNLOCK(&V_tcbinfo);
837 tp = intotcpcb(inp);
838 tp->t_state = TCPS_SYN_RECEIVED;
838 tcp_state_change(tp, TCPS_SYN_RECEIVED);
839 tp->iss = sc->sc_iss;
840 tp->irs = sc->sc_irs;
841 tcp_rcvseqinit(tp);
842 tcp_sendseqinit(tp);
843 tp->snd_wl1 = sc->sc_irs;
844 tp->snd_max = tp->iss + 1;
845 tp->snd_nxt = tp->iss + 1;
846 tp->rcv_up = sc->sc_irs + 1;

--- 1179 unchanged lines hidden ---
839 tp->iss = sc->sc_iss;
840 tp->irs = sc->sc_irs;
841 tcp_rcvseqinit(tp);
842 tcp_sendseqinit(tp);
843 tp->snd_wl1 = sc->sc_irs;
844 tp->snd_max = tp->iss + 1;
845 tp->snd_nxt = tp->iss + 1;
846 tp->rcv_up = sc->sc_irs + 1;

--- 1179 unchanged lines hidden ---