summaryrefslogtreecommitdiffstats
path: root/sys/net/if_var.h
diff options
context:
space:
mode:
authorarchie <archie@FreeBSD.org>2000-06-26 23:34:54 +0000
committerarchie <archie@FreeBSD.org>2000-06-26 23:34:54 +0000
commit9af816e94656f88812336df4be5d2ddac233080f (patch)
tree3c138021e860caf3702977959a7cf77c2d4eb2e3 /sys/net/if_var.h
parent9b2c6ebcad4b7500a4fb6f89dcd04a814bc3e7ac (diff)
downloadFreeBSD-src-9af816e94656f88812336df4be5d2ddac233080f.zip
FreeBSD-src-9af816e94656f88812336df4be5d2ddac233080f.tar.gz
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
Diffstat (limited to 'sys/net/if_var.h')
-rw-r--r--sys/net/if_var.h3
1 files changed, 3 insertions, 0 deletions
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 *,
OpenPOWER on IntegriCloud