Lines Matching defs:ifnet

109 TAILQ_HEAD(ifnethead, ifnet);	/* we use TAILQs so that the order of */
114 typedef struct ifnet * if_t;
189 struct ifnet {
192 TAILQ_ENTRY(ifnet) if_link; /* all struct ifnets are chained */
225 (struct ifnet *, struct mbuf *, struct sockaddr *,
228 (struct ifnet *, struct mbuf *);
230 (struct ifnet *);
232 (struct ifnet *, u_long, caddr_t);
234 (struct ifnet *);
238 (struct ifnet *, struct sockaddr **, struct sockaddr *);
240 (struct ifnet *, struct mbuf *);
266 (struct ifnet *, struct if_encap_req *);
349 void if_addr_rlock(struct ifnet *ifp); /* if_addrhead */
350 void if_addr_runlock(struct ifnet *ifp); /* if_addrhead */
351 void if_maddr_rlock(struct ifnet *ifp); /* if_multiaddrs */
352 void if_maddr_runlock(struct ifnet *ifp); /* if_multiaddrs */
434 typedef void (*ifaddr_event_handler_t)(void *, struct ifnet *);
437 typedef void (*ifnet_arrival_event_handler_t)(void *, struct ifnet *);
440 typedef void (*ifnet_departure_event_handler_t)(void *, struct ifnet *);
460 int if_handoff(struct ifqueue *ifq, struct mbuf *m, struct ifnet *ifp,
467 void if_start(struct ifnet *);
650 struct ifnet *ifa_ifp; /* back-pointer to interface */
686 struct ifnet *ifpr_ifp; /* back-pointer to interface */
702 struct ifnet *ifma_ifp; /* back-pointer to interface */
715 #define IFNET_LOCK_INIT() rw_lock_init(&ifnet_rwlock, "ifnet rwlock")
723 struct ifnet *ifnet_byindex(u_short idx);
724 struct ifnet *ifnet_byindex_locked(u_short idx);
726 extern struct ifnethead ifnet;
728 extern struct ifnet *loif; /* first loopback interface */
731 int if_addmulti(struct ifnet *, struct sockaddr *, struct ifmultiaddr **);
732 int if_allmulti(struct ifnet *, int);
733 struct ifnet* if_alloc(u_char);
734 void if_attach(struct ifnet *);
735 int if_delmulti(struct ifnet *, struct sockaddr *);
736 void if_detach(struct ifnet *);
737 void if_purgeaddrs(struct ifnet *);
738 void if_delallmulti(struct ifnet *);
739 void if_purgemaddrs(struct ifnet *);
740 void if_down(struct ifnet *);
741 void if_free(struct ifnet *);
742 void if_free_type(struct ifnet *, u_char);
743 void if_initname(struct ifnet *, const char *, int);
744 void if_link_state_change(struct ifnet *, int);
745 int if_printf(struct ifnet *, const char *, ...) __printflike(2, 3);
746 int if_setlladdr(struct ifnet *, const u_char *, int);
747 void if_up(struct ifnet *);
750 int ifpromisc(struct ifnet *, int);
751 struct ifnet *ifunit(const char *);
754 int if_alloc_inplace(struct ifnet *ifp, u_char type);
755 void if_free_inplace(struct ifnet *ifp);
762 struct ifaddr *ifaof_ifpforaddr(struct sockaddr *, struct ifnet *);
764 int if_simloop(struct ifnet *ifp, struct mbuf *m, int af, int hlen);
766 typedef void *if_com_alloc_t(u_char type, struct ifnet *ifp);
770 void if_data_copy(struct ifnet *, struct if_data *);
771 uint64_t if_get_counter_default(struct ifnet *, ift_counter);
772 void if_inc_counter(struct ifnet *, ift_counter, int64_t);
855 typedef void poll_handler_t(struct ifnet *ifp, enum poll_cmd cmd, int count);
856 int ether_poll_register(poll_handler_t *h, struct ifnet *ifp);
857 int ether_poll_deregister(struct ifnet *ifp);