Deleted Added
full compact
if_loop.c (1.1) if_loop.c (1.2)
1/* $NetBSD: if_loop.c,v 1.14 1995/07/23 16:33:08 mycroft 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

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

117{
118 int s, isr;
119 register struct ifqueue *ifq = 0;
120
121 if ((m->m_flags & M_PKTHDR) == 0)
122 panic("looutput: no header mbuf");
123 ifp->if_lastchange = time;
124#if NBPFILTER > 0
1/* $NetBSD: if_loop.c,v 1.14 1995/07/23 16:33:08 mycroft 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

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

117{
118 int s, isr;
119 register struct ifqueue *ifq = 0;
120
121 if ((m->m_flags & M_PKTHDR) == 0)
122 panic("looutput: no header mbuf");
123 ifp->if_lastchange = time;
124#if NBPFILTER > 0
125 if (ifp->if_bpf) {
125 /*
126 * only send packets to bpf if they are real loopback packets;
127 * looutput() is also called for SIMPLEX interfaces to duplicate
128 * packets for local use. But don't dup them to bpf.
129 */
130 if (ifp->if_bpf && (ifp->if_flags&IFF_LOOPBACK)) {
126 /*
127 * We need to prepend the address family as
128 * a four byte field. Cons up a dummy header
129 * to pacify bpf. This is safe because bpf
130 * will only read from the mbuf (i.e., it won't
131 * try to free it or keep a pointer to it).
132 */
133 struct mbuf m0;

--- 122 unchanged lines hidden ---
131 /*
132 * We need to prepend the address family as
133 * a four byte field. Cons up a dummy header
134 * to pacify bpf. This is safe because bpf
135 * will only read from the mbuf (i.e., it won't
136 * try to free it or keep a pointer to it).
137 */
138 struct mbuf m0;

--- 122 unchanged lines hidden ---