xform_ipip.c (193744) | xform_ipip.c (193947) |
---|---|
1/* $FreeBSD: head/sys/netipsec/xform_ipip.c 193744 2009-06-08 19:57:35Z bz $ */ | 1/* $FreeBSD: head/sys/netipsec/xform_ipip.c 193947 2009-06-10 19:25:46Z bz $ */ |
2/* $OpenBSD: ip_ipip.c,v 1.25 2002/06/10 18:04:55 itojun Exp $ */ 3/*- 4 * The authors of this code are John Ioannidis (ji@tla.org), 5 * Angelos D. Keromytis (kermit@csd.uch.gr) and 6 * Niels Provos (provos@physnet.uni-hamburg.de). 7 * 8 * The original version of this code was written by John Ioannidis 9 * for BSD/OS in Athens, Greece, in November 1995. --- 156 unchanged lines hidden (view full) --- 166 * contain the address of the encX interface associated with the tunnel. 167 */ 168 169static void 170_ipip_input(struct mbuf *m, int iphlen, struct ifnet *gifp) 171{ 172 INIT_VNET_NET(curvnet); 173 INIT_VNET_IPSEC(curvnet); | 2/* $OpenBSD: ip_ipip.c,v 1.25 2002/06/10 18:04:55 itojun Exp $ */ 3/*- 4 * The authors of this code are John Ioannidis (ji@tla.org), 5 * Angelos D. Keromytis (kermit@csd.uch.gr) and 6 * Niels Provos (provos@physnet.uni-hamburg.de). 7 * 8 * The original version of this code was written by John Ioannidis 9 * for BSD/OS in Athens, Greece, in November 1995. --- 156 unchanged lines hidden (view full) --- 166 * contain the address of the encX interface associated with the tunnel. 167 */ 168 169static void 170_ipip_input(struct mbuf *m, int iphlen, struct ifnet *gifp) 171{ 172 INIT_VNET_NET(curvnet); 173 INIT_VNET_IPSEC(curvnet); |
174#ifdef INET |
|
174 register struct sockaddr_in *sin; | 175 register struct sockaddr_in *sin; |
176#endif |
|
175 register struct ifnet *ifp; 176 register struct ifaddr *ifa; 177 struct ip *ipo; 178#ifdef INET6 179 register struct sockaddr_in6 *sin6; 180 struct ip6_hdr *ip6 = NULL; 181 u_int8_t itos; 182#endif --- 556 unchanged lines hidden --- | 177 register struct ifnet *ifp; 178 register struct ifaddr *ifa; 179 struct ip *ipo; 180#ifdef INET6 181 register struct sockaddr_in6 *sin6; 182 struct ip6_hdr *ip6 = NULL; 183 u_int8_t itos; 184#endif --- 556 unchanged lines hidden --- |