From 9af816e94656f88812336df4be5d2ddac233080f Mon Sep 17 00:00:00 2001 From: archie Date: Mon, 26 Jun 2000 23:34:54 +0000 Subject: Make the ng_ether(4) node type dynamically loadable like the rest. This means 'options NETGRAPH' is no longer necessary in order to get netgraph-enabled Ethernet interfaces. This supports loading/unloading the ng_ether.ko and attaching/detaching the Ethernet interface in any order. Add two new hooks 'upper' and 'lower' to allow access to the protocol demux engine and the raw device, respectively. This enables bridging to be defined as a netgraph node, if so desired. Reviewed by: freebsd-net@freebsd.org --- sys/net/if_var.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'sys/net/if_var.h') diff --git a/sys/net/if_var.h b/sys/net/if_var.h index 2ec532b..5234a58 100644 --- a/sys/net/if_var.h +++ b/sys/net/if_var.h @@ -324,9 +324,12 @@ extern int if_index; extern struct ifaddr **ifnet_addrs; void ether_ifattach __P((struct ifnet *)); +void ether_ifdetach __P((struct ifnet *)); void ether_input __P((struct ifnet *, struct ether_header *, struct mbuf *)); +void ether_demux __P((struct ifnet *, struct ether_header *, struct mbuf *)); int ether_output __P((struct ifnet *, struct mbuf *, struct sockaddr *, struct rtentry *)); +int ether_output_frame __P((struct ifnet *, struct mbuf *)); int ether_ioctl __P((struct ifnet *, int, caddr_t)); int if_addmulti __P((struct ifnet *, struct sockaddr *, -- cgit v1.1