Lines Matching refs:ifnet

97 TAILQ_HEAD(ifnethead, ifnet);	/* we use TAILQs so that the order of */
125 struct ifnet {
129 TAILQ_ENTRY(ifnet) if_link; /* all struct ifnets are chained */
161 (struct ifnet *, struct mbuf *, const struct sockaddr *,
164 (struct ifnet *, struct mbuf *);
166 (struct ifnet *);
168 (struct ifnet *, u_long, caddr_t);
172 (struct ifnet *, struct sockaddr **, struct sockaddr *);
174 (struct ifnet *);
176 (struct ifnet *, struct mbuf *);
178 (struct ifnet *, struct vnet *, char *);
179 struct vnet *if_home_vnet; /* where this ifnet originates from */
198 LIST_ENTRY(ifnet) if_clones; /* interfaces of a cloner */
273 void if_addr_rlock(struct ifnet *ifp); /* if_addrhead */
274 void if_addr_runlock(struct ifnet *ifp); /* if_addrhead */
275 void if_maddr_rlock(struct ifnet *ifp); /* if_multiaddrs */
276 void if_maddr_runlock(struct ifnet *ifp); /* if_multiaddrs */
370 typedef void (*iflladdr_event_handler_t)(void *, struct ifnet *);
373 typedef void (*ifaddr_event_handler_t)(void *, struct ifnet *);
376 typedef void (*ifnet_arrival_event_handler_t)(void *, struct ifnet *);
379 typedef void (*ifnet_departure_event_handler_t)(void *, struct ifnet *);
382 typedef void (*ifnet_link_event_handler_t)(void *, struct ifnet *, int);
398 struct ifnet *ifgm_ifp;
433 int if_handoff(struct ifqueue *ifq, struct mbuf *m, struct ifnet *ifp,
440 void if_start(struct ifnet *);
600 if_initbaudrate(struct ifnet *ifp, uintmax_t baud)
612 drbr_enqueue(struct ifnet *ifp, struct buf_ring *br, struct mbuf *m)
630 drbr_putback(struct ifnet *ifp, struct buf_ring *br, struct mbuf *new)
650 drbr_peek(struct ifnet *ifp, struct buf_ring *br)
669 drbr_flush(struct ifnet *ifp, struct buf_ring *br)
690 drbr_dequeue(struct ifnet *ifp, struct buf_ring *br)
704 drbr_advance(struct ifnet *ifp, struct buf_ring *br)
716 drbr_dequeue_cond(struct ifnet *ifp, struct buf_ring *br,
741 drbr_empty(struct ifnet *ifp, struct buf_ring *br)
751 drbr_needs_enqueue(struct ifnet *ifp, struct buf_ring *br)
761 drbr_inuse(struct ifnet *ifp, struct buf_ring *br)
797 struct ifnet *ifa_ifp; /* back-pointer to interface */
832 struct ifnet *ifma_ifp; /* back-pointer to interface */
859 * To assert the ifnet lock, you must know not only whether it's for read or
875 * Look up an ifnet given its index; the _ref variant also acquires a
879 struct ifnet *ifnet_byindex(u_short idx);
880 struct ifnet *ifnet_byindex_locked(u_short idx);
881 struct ifnet *ifnet_byindex_ref(u_short idx);
890 VNET_DECLARE(struct ifnethead, ifnet);
893 VNET_DECLARE(struct ifnet *, loif); /* first loopback interface */
896 #define V_ifnet VNET(ifnet)
904 int if_addgroup(struct ifnet *, const char *);
905 int if_delgroup(struct ifnet *, const char *);
906 int if_addmulti(struct ifnet *, struct sockaddr *, struct ifmultiaddr **);
907 int if_allmulti(struct ifnet *, int);
908 struct ifnet* if_alloc(u_char);
909 void if_attach(struct ifnet *);
910 void if_dead(struct ifnet *);
911 int if_delmulti(struct ifnet *, struct sockaddr *);
913 void if_detach(struct ifnet *);
914 void if_vmove(struct ifnet *, struct vnet *);
915 void if_purgeaddrs(struct ifnet *);
916 void if_delallmulti(struct ifnet *);
917 void if_down(struct ifnet *);
919 if_findmulti(struct ifnet *, struct sockaddr *);
920 void if_free(struct ifnet *);
921 void if_initname(struct ifnet *, const char *, int);
922 void if_link_state_change(struct ifnet *, int);
923 int if_printf(struct ifnet *, const char *, ...) __printflike(2, 3);
924 void if_qflush(struct ifnet *);
925 void if_ref(struct ifnet *);
926 void if_rele(struct ifnet *);
927 int if_setlladdr(struct ifnet *, const u_char *, int);
928 void if_up(struct ifnet *);
930 int ifpromisc(struct ifnet *, int);
931 struct ifnet *ifunit(const char *);
932 struct ifnet *ifunit_ref(const char *);
934 void ifq_init(struct ifaltq *, struct ifnet *ifp);
947 struct ifaddr *ifaof_ifpforaddr(struct sockaddr *, struct ifnet *);
950 int if_simloop(struct ifnet *ifp, struct mbuf *m, int af, int hlen);
952 typedef void *if_com_alloc_t(u_char type, struct ifnet *ifp);
963 typedef int poll_handler_t(struct ifnet *ifp, enum poll_cmd cmd, int count);
964 int ether_poll_register(poll_handler_t *h, struct ifnet *ifp);
965 int ether_poll_deregister(struct ifnet *ifp);