summaryrefslogtreecommitdiffstats
path: root/sys/net/if.h
diff options
context:
space:
mode:
authorphk <phk@FreeBSD.org>1996-08-04 10:54:13 +0000
committerphk <phk@FreeBSD.org>1996-08-04 10:54:13 +0000
commitb66887b753becbfa885b773ad8eee174d7b7c3a9 (patch)
treecd6c6bb677800206647caee7792d7d992bc75967 /sys/net/if.h
parentc6621914ec6c3d2cd7c4b6ed5a8978eca30f3aa7 (diff)
downloadFreeBSD-src-b66887b753becbfa885b773ad8eee174d7b7c3a9.zip
FreeBSD-src-b66887b753becbfa885b773ad8eee174d7b7c3a9.tar.gz
Add a callback pointer to the interfaces "init" routine.
Add ether_ioctl() which can take care of the SIOC[SG]IFADDR cases for most (ethernet) drivers.
Diffstat (limited to 'sys/net/if.h')
-rw-r--r--sys/net/if.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/sys/net/if.h b/sys/net/if.h
index 4171ca9..c5b303a 100644
--- a/sys/net/if.h
+++ b/sys/net/if.h
@@ -31,7 +31,7 @@
* SUCH DAMAGE.
*
* @(#)if.h 8.1 (Berkeley) 6/10/93
- * $Id: if.h,v 1.31 1996/07/23 14:44:46 wollman Exp $
+ * $Id: if.h,v 1.32 1996/07/30 19:17:00 wollman Exp $
*/
#ifndef _NET_IF_H_
@@ -160,9 +160,13 @@ struct ifnet {
__P((struct ifnet *));
void (*if_poll_slowinput) /* input routine for slow devices */
__P((struct ifnet *, struct mbuf *));
+ void (*if_init) /* Init routine */
+ __P((void *));
struct ifqueue if_snd; /* output queue */
struct ifqueue *if_poll_slowq; /* input queue for slow devices */
};
+typedef void if_init_f_t __P((void *));
+
#define if_mtu if_data.ifi_mtu
#define if_type if_data.ifi_type
#define if_physical if_data.ifi_physical
@@ -414,6 +418,7 @@ void ether_ifattach __P((struct ifnet *));
void ether_input __P((struct ifnet *, struct ether_header *, struct mbuf *));
int ether_output __P((struct ifnet *,
struct mbuf *, struct sockaddr *, struct rtentry *));
+void ether_ioctl __P((struct ifnet *, int , caddr_t ));
void if_attach __P((struct ifnet *));
void if_down __P((struct ifnet *));
OpenPOWER on IntegriCloud