Deleted Added
full compact
ng_ether.c (82586) ng_ether.c (83366)
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 82586 2001-08-30 19:09:10Z archie $
40 * $FreeBSD: head/sys/netgraph/ng_ether.c 83366 2001-09-12 08:38:13Z julian $
41 */
42
43/*
44 * ng_ether(4) netgraph node type
45 */
46
47#include <sys/param.h>
48#include <sys/systm.h>

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

604 NGI_GET_M(item, m);
605 NGI_GET_META(item, meta);
606 NG_FREE_ITEM(item);
607 if (hook == priv->lower)
608 return ng_ether_rcv_lower(node, m, meta);
609 if (hook == priv->upper)
610 return ng_ether_rcv_upper(node, m, meta);
611 panic("%s: weird hook", __FUNCTION__);
41 */
42
43/*
44 * ng_ether(4) netgraph node type
45 */
46
47#include <sys/param.h>
48#include <sys/systm.h>

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

604 NGI_GET_M(item, m);
605 NGI_GET_META(item, meta);
606 NG_FREE_ITEM(item);
607 if (hook == priv->lower)
608 return ng_ether_rcv_lower(node, m, meta);
609 if (hook == priv->upper)
610 return ng_ether_rcv_upper(node, m, meta);
611 panic("%s: weird hook", __FUNCTION__);
612#ifdef RESTARTABLE_PANICS /* so we don;t get an error msg in LINT */
613 return NULL;
614#endif
612}
613
614/*
615 * Handle an mbuf received on the "lower" hook.
616 */
617static int
618ng_ether_rcv_lower(node_p node, struct mbuf *m, meta_p meta)
619{

--- 213 unchanged lines hidden ---
615}
616
617/*
618 * Handle an mbuf received on the "lower" hook.
619 */
620static int
621ng_ether_rcv_lower(node_p node, struct mbuf *m, meta_p meta)
622{

--- 213 unchanged lines hidden ---