if_faith.c (97289) | if_faith.c (106939) |
---|---|
1/* $KAME: if_faith.c,v 1.23 2001/12/17 13:55:29 sumikawa Exp $ */ 2 3/* 4 * Copyright (c) 1982, 1986, 1993 5 * The Regents of the University of California. All rights reserved. 6 * 7 * Redistribution and use in source and binary forms, with or without 8 * modification, are permitted provided that the following conditions --- 18 unchanged lines hidden (view full) --- 27 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 28 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 29 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 30 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 31 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 32 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 33 * SUCH DAMAGE. 34 * | 1/* $KAME: if_faith.c,v 1.23 2001/12/17 13:55:29 sumikawa Exp $ */ 2 3/* 4 * Copyright (c) 1982, 1986, 1993 5 * The Regents of the University of California. All rights reserved. 6 * 7 * Redistribution and use in source and binary forms, with or without 8 * modification, are permitted provided that the following conditions --- 18 unchanged lines hidden (view full) --- 27 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 28 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 29 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 30 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 31 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 32 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 33 * SUCH DAMAGE. 34 * |
35 * $FreeBSD: head/sys/net/if_faith.c 97289 2002-05-25 20:17:04Z brooks $ | 35 * $FreeBSD: head/sys/net/if_faith.c 106939 2002-11-15 00:00:15Z sam $ |
36 */ 37/* 38 * derived from 39 * @(#)if_loop.c 8.1 (Berkeley) 6/10/93 40 * Id: if_loop.c,v 1.22 1996/06/19 16:24:10 wollman Exp 41 */ 42 43/* --- 181 unchanged lines hidden (view full) --- 225 */ 226 struct mbuf m0; 227 u_int32_t af = dst->sa_family; 228 229 m0.m_next = m; 230 m0.m_len = 4; 231 m0.m_data = (char *)⁡ 232 | 36 */ 37/* 38 * derived from 39 * @(#)if_loop.c 8.1 (Berkeley) 6/10/93 40 * Id: if_loop.c,v 1.22 1996/06/19 16:24:10 wollman Exp 41 */ 42 43/* --- 181 unchanged lines hidden (view full) --- 225 */ 226 struct mbuf m0; 227 u_int32_t af = dst->sa_family; 228 229 m0.m_next = m; 230 m0.m_len = 4; 231 m0.m_data = (char *)⁡ 232 |
233 bpf_mtap(ifp, &m0); | 233 BPF_MTAP(ifp, &m0); |
234 } 235 236 if (rt && rt->rt_flags & (RTF_REJECT|RTF_BLACKHOLE)) { 237 m_freem(m); 238 return (rt->rt_flags & RTF_BLACKHOLE ? 0 : 239 rt->rt_flags & RTF_HOST ? EHOSTUNREACH : ENETUNREACH); 240 } 241 ifp->if_opackets++; --- 141 unchanged lines hidden --- | 234 } 235 236 if (rt && rt->rt_flags & (RTF_REJECT|RTF_BLACKHOLE)) { 237 m_freem(m); 238 return (rt->rt_flags & RTF_BLACKHOLE ? 0 : 239 rt->rt_flags & RTF_HOST ? EHOSTUNREACH : ENETUNREACH); 240 } 241 ifp->if_opackets++; --- 141 unchanged lines hidden --- |