Lines Matching defs:ifnet

92 TAILQ_HEAD(ifnethead, ifnet);	/* we use TAILQs so that the order of */
117 struct ifnet {
120 TAILQ_ENTRY(ifnet) if_link; /* all struct ifnets are chained */
152 (struct ifnet *, struct mbuf *, struct sockaddr *,
155 (struct ifnet *, struct mbuf *);
157 (struct ifnet *);
159 (struct ifnet *, u_long, caddr_t);
161 (struct ifnet *);
165 (struct ifnet *, struct sockaddr **, struct sockaddr *);
167 (struct ifnet *, struct mbuf *);
250 void if_addr_rlock(struct ifnet *ifp); /* if_addrhead */
251 void if_addr_runlock(struct ifnet *ifp); /* if_addrhead */
252 void if_maddr_rlock(struct ifnet *ifp); /* if_multiaddrs */
253 void if_maddr_runlock(struct ifnet *ifp); /* if_multiaddrs */
335 typedef void (*ifaddr_event_handler_t)(void *, struct ifnet *);
338 typedef void (*ifnet_arrival_event_handler_t)(void *, struct ifnet *);
341 typedef void (*ifnet_departure_event_handler_t)(void *, struct ifnet *);
361 int if_handoff(struct ifqueue *ifq, struct mbuf *m, struct ifnet *ifp,
368 void if_start(struct ifnet *);
551 struct ifnet *ifa_ifp; /* back-pointer to interface */
581 struct ifnet *ifpr_ifp; /* back-pointer to interface */
597 struct ifnet *ifma_ifp; /* back-pointer to interface */
614 #define IFNET_LOCK_INIT() rw_lock_init(&ifnet_rwlock, "ifnet rwlock")
622 struct ifnet *ifnet_byindex(u_short idx);
623 struct ifnet *ifnet_byindex_locked(u_short idx);
625 extern struct ifnethead ifnet;
627 extern struct ifnet *loif; /* first loopback interface */
630 int if_addmulti(struct ifnet *, struct sockaddr *, struct ifmultiaddr **);
631 int if_allmulti(struct ifnet *, int);
632 struct ifnet* if_alloc(u_char);
633 void if_attach(struct ifnet *);
634 int if_delmulti(struct ifnet *, struct sockaddr *);
635 void if_detach(struct ifnet *);
636 void if_purgeaddrs(struct ifnet *);
637 void if_delallmulti(struct ifnet *);
638 void if_purgemaddrs(struct ifnet *);
639 void if_down(struct ifnet *);
640 void if_free(struct ifnet *);
641 void if_free_type(struct ifnet *, u_char);
642 void if_initname(struct ifnet *, const char *, int);
643 void if_link_state_change(struct ifnet *, int);
644 int if_printf(struct ifnet *, const char *, ...) __printflike(2, 3);
645 int if_setlladdr(struct ifnet *, const u_char *, int);
646 void if_up(struct ifnet *);
649 int ifpromisc(struct ifnet *, int);
650 struct ifnet *ifunit(const char *);
657 struct ifaddr *ifaof_ifpforaddr(struct sockaddr *, struct ifnet *);
659 int if_simloop(struct ifnet *ifp, struct mbuf *m, int af, int hlen);
661 typedef void *if_com_alloc_t(u_char type, struct ifnet *ifp);
671 typedef void poll_handler_t(struct ifnet *ifp, enum poll_cmd cmd, int count);
672 int ether_poll_register(poll_handler_t *h, struct ifnet *ifp);
673 int ether_poll_deregister(struct ifnet *ifp);