Deleted Added
sdiff udiff text old ( 83366 ) new ( 83934 )
full compact
1/* $FreeBSD: head/sys/netinet6/in6_pcb.c 83366 2001-09-12 08:38:13Z julian $ */
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
1042#if defined(NFAITH) && NFAITH > 0
1043 faith = faithprefix(laddr);
1044#else
1045 faith = 0;
1046#endif
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 ---