Deleted Added
full compact
in6_pcb.c (83366) in6_pcb.c (83934)
1/* $FreeBSD: head/sys/netinet6/in6_pcb.c 83366 2001-09-12 08:38:13Z julian $ */
1/* $FreeBSD: head/sys/netinet6/in6_pcb.c 83934 2001-09-25 18:40:52Z brooks $ */
2/* $KAME: in6_pcb.c,v 1.31 2001/05/21 05:45:10 jinmei Exp $ */
3
4/*
5 * Copyright (C) 1995, 1996, 1997, and 1998 WIDE Project.
6 * All rights reserved.
7 *
8 * Redistribution and use in source and binary forms, with or without
9 * modification, are permitted provided that the following conditions

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

95#include <netinet/in_systm.h>
96#include <netinet/ip6.h>
97#include <netinet/ip_var.h>
98#include <netinet6/ip6_var.h>
99#include <netinet6/nd6.h>
100#include <netinet/in_pcb.h>
101#include <netinet6/in6_pcb.h>
102
2/* $KAME: in6_pcb.c,v 1.31 2001/05/21 05:45:10 jinmei Exp $ */
3
4/*
5 * Copyright (C) 1995, 1996, 1997, and 1998 WIDE Project.
6 * All rights reserved.
7 *
8 * Redistribution and use in source and binary forms, with or without
9 * modification, are permitted provided that the following conditions

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

95#include <netinet/in_systm.h>
96#include <netinet/ip6.h>
97#include <netinet/ip_var.h>
98#include <netinet6/ip6_var.h>
99#include <netinet6/nd6.h>
100#include <netinet/in_pcb.h>
101#include <netinet6/in6_pcb.h>
102
103#include "faith.h"
104#if defined(NFAITH) && NFAITH > 0
105#include <net/if_faith.h>
106#endif
107
108#ifdef IPSEC
109#include <netinet6/ipsec.h>
110#ifdef INET6
111#include <netinet6/ipsec6.h>
112#endif
113#include <netinet6/ah.h>
114#ifdef INET6
115#include <netinet6/ah6.h>

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

1034 int wildcard;
1035 struct ifnet *ifp;
1036{
1037 struct inpcbhead *head;
1038 register struct inpcb *inp;
1039 u_short fport = fport_arg, lport = lport_arg;
1040 int faith;
1041
103#ifdef IPSEC
104#include <netinet6/ipsec.h>
105#ifdef INET6
106#include <netinet6/ipsec6.h>
107#endif
108#include <netinet6/ah.h>
109#ifdef INET6
110#include <netinet6/ah6.h>

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

1029 int wildcard;
1030 struct ifnet *ifp;
1031{
1032 struct inpcbhead *head;
1033 register struct inpcb *inp;
1034 u_short fport = fport_arg, lport = lport_arg;
1035 int faith;
1036
1042#if defined(NFAITH) && NFAITH > 0
1043 faith = faithprefix(laddr);
1044#else
1045 faith = 0;
1046#endif
1037 if (faithprefix_p != NULL)
1038 faith = (*faithprefix_p)(laddr);
1039 else
1040 faith = 0;
1047
1048 /*
1049 * First look for an exact match.
1050 */
1051 head = &pcbinfo->hashbase[INP_PCBHASH(faddr->s6_addr32[3] /* XXX */,
1052 lport, fport,
1053 pcbinfo->hashmask)];
1054 LIST_FOREACH(inp, head, inp_hash) {

--- 58 unchanged lines hidden ---
1041
1042 /*
1043 * First look for an exact match.
1044 */
1045 head = &pcbinfo->hashbase[INP_PCBHASH(faddr->s6_addr32[3] /* XXX */,
1046 lport, fport,
1047 pcbinfo->hashmask)];
1048 LIST_FOREACH(inp, head, inp_hash) {

--- 58 unchanged lines hidden ---