Deleted Added
full compact
ng_ether.c (132780) ng_ether.c (136312)
1
2/*
3 * ng_ether.c
4 *
5 * Copyright (c) 1996-2000 Whistle Communications, Inc.
6 * All rights reserved.
7 *
8 * Subject to the following obligations and disclaimer of warranty, use and

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

32 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
33 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
34 * THIS SOFTWARE, EVEN IF WHISTLE COMMUNICATIONS IS ADVISED OF THE POSSIBILITY
35 * OF SUCH DAMAGE.
36 *
37 * Authors: Archie Cobbs <archie@freebsd.org>
38 * Julian Elischer <julian@freebsd.org>
39 *
1
2/*
3 * ng_ether.c
4 *
5 * Copyright (c) 1996-2000 Whistle Communications, Inc.
6 * All rights reserved.
7 *
8 * Subject to the following obligations and disclaimer of warranty, use and

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

32 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
33 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
34 * THIS SOFTWARE, EVEN IF WHISTLE COMMUNICATIONS IS ADVISED OF THE POSSIBILITY
35 * OF SUCH DAMAGE.
36 *
37 * Authors: Archie Cobbs <archie@freebsd.org>
38 * Julian Elischer <julian@freebsd.org>
39 *
40 * $FreeBSD: head/sys/netgraph/ng_ether.c 132780 2004-07-28 06:59:55Z kan $
40 * $FreeBSD: head/sys/netgraph/ng_ether.c 136312 2004-10-09 14:20:18Z des $
41 */
42
43/*
44 * ng_ether(4) netgraph node type
45 */
46
47#include <sys/param.h>
48#include <sys/systm.h>

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

491 NG_FREE_ITEM(item);
492
493 if (hook == priv->lower || hook == priv->orphan)
494 return ng_ether_rcv_lower(node, m);
495 if (hook == priv->upper)
496 return ng_ether_rcv_upper(node, m);
497 panic("%s: weird hook", __func__);
498#ifdef RESTARTABLE_PANICS /* so we don't get an error msg in LINT */
41 */
42
43/*
44 * ng_ether(4) netgraph node type
45 */
46
47#include <sys/param.h>
48#include <sys/systm.h>

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

491 NG_FREE_ITEM(item);
492
493 if (hook == priv->lower || hook == priv->orphan)
494 return ng_ether_rcv_lower(node, m);
495 if (hook == priv->upper)
496 return ng_ether_rcv_upper(node, m);
497 panic("%s: weird hook", __func__);
498#ifdef RESTARTABLE_PANICS /* so we don't get an error msg in LINT */
499 return NULL;
499 return (0);
500#endif
501}
502
503/*
504 * Handle an mbuf received on the "lower" or "orphan" hook.
505 */
506static int
507ng_ether_rcv_lower(node_p node, struct mbuf *m)

--- 172 unchanged lines hidden ---
500#endif
501}
502
503/*
504 * Handle an mbuf received on the "lower" or "orphan" hook.
505 */
506static int
507ng_ether_rcv_lower(node_p node, struct mbuf *m)

--- 172 unchanged lines hidden ---