1/* $FreeBSD: head/sys/netinet/in_gif.c 82884 2001-09-03 20:03:55Z julian $ */ |
2/* $KAME: in_gif.c,v 1.54 2001/05/14 14:02:16 itojun 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 --- 187 unchanged lines hidden (view full) --- 197#endif 198 } 199 200 error = ip_output(m, NULL, &sc->gif_ro, 0, NULL); 201 return(error); 202} 203 204void |
205in_gif_input(m, off) |
206 struct mbuf *m; 207 int off; |
208{ 209 struct ifnet *gifp = NULL; 210 struct ip *ip; 211 int af; 212 u_int8_t otos; |
213 int proto; |
214 215 ip = mtod(m, struct ip *); |
216 proto = ip->ip_p; |
217 218 gifp = (struct ifnet *)encap_getarg(m); 219 220 if (gifp == NULL || (gifp->if_flags & IFF_UP) == 0) { 221 m_freem(m); 222 ipstat.ips_nogif++; 223 return; 224 } --- 130 unchanged lines hidden --- |