Lines Matching defs:ifnet

97 TAILQ_HEAD(ifnethead, ifnet);	/* we use TAILQs so that the order of */
147 struct ifnet {
151 TAILQ_ENTRY(ifnet) if_link; /* all struct ifnets are chained */
183 (struct ifnet *, struct mbuf *, const struct sockaddr *,
186 (struct ifnet *, struct mbuf *);
188 (struct ifnet *);
190 (struct ifnet *, u_long, caddr_t);
194 (struct ifnet *, struct sockaddr **, struct sockaddr *);
196 (struct ifnet *);
198 (struct ifnet *, struct mbuf *);
200 (struct ifnet *, struct vnet *, char *);
201 struct vnet *if_home_vnet; /* where this ifnet originates from */
220 LIST_ENTRY(ifnet) if_clones; /* interfaces of a cloner */
316 void if_addr_rlock(struct ifnet *ifp); /* if_addrhead */
317 void if_addr_runlock(struct ifnet *ifp); /* if_addrhead */
318 void if_maddr_rlock(struct ifnet *ifp); /* if_multiaddrs */
319 void if_maddr_runlock(struct ifnet *ifp); /* if_multiaddrs */
413 typedef void (*iflladdr_event_handler_t)(void *, struct ifnet *);
416 typedef void (*ifaddr_event_handler_t)(void *, struct ifnet *);
419 typedef void (*ifnet_arrival_event_handler_t)(void *, struct ifnet *);
422 typedef void (*ifnet_departure_event_handler_t)(void *, struct ifnet *);
425 typedef void (*ifnet_link_event_handler_t)(void *, struct ifnet *, int);
441 struct ifnet *ifgm_ifp;
476 int if_handoff(struct ifqueue *ifq, struct mbuf *m, struct ifnet *ifp,
483 void if_start(struct ifnet *);
643 if_initbaudrate(struct ifnet *ifp, uintmax_t baud)
655 drbr_enqueue(struct ifnet *ifp, struct buf_ring *br, struct mbuf *m)
673 drbr_putback(struct ifnet *ifp, struct buf_ring *br, struct mbuf *new)
693 drbr_peek(struct ifnet *ifp, struct buf_ring *br)
712 drbr_flush(struct ifnet *ifp, struct buf_ring *br)
733 drbr_dequeue(struct ifnet *ifp, struct buf_ring *br)
747 drbr_advance(struct ifnet *ifp, struct buf_ring *br)
759 drbr_dequeue_cond(struct ifnet *ifp, struct buf_ring *br,
784 drbr_empty(struct ifnet *ifp, struct buf_ring *br)
794 drbr_needs_enqueue(struct ifnet *ifp, struct buf_ring *br)
804 drbr_inuse(struct ifnet *ifp, struct buf_ring *br)
840 struct ifnet *ifa_ifp; /* back-pointer to interface */
875 struct ifnet *ifma_ifp; /* back-pointer to interface */
902 * To assert the ifnet lock, you must know not only whether it's for read or
918 * Look up an ifnet given its index; the _ref variant also acquires a
922 struct ifnet *ifnet_byindex(u_short idx);
923 struct ifnet *ifnet_byindex_locked(u_short idx);
924 struct ifnet *ifnet_byindex_ref(u_short idx);
933 VNET_DECLARE(struct ifnethead, ifnet);
936 VNET_DECLARE(struct ifnet *, loif); /* first loopback interface */
939 #define V_ifnet VNET(ifnet)
947 int if_addgroup(struct ifnet *, const char *);
948 int if_delgroup(struct ifnet *, const char *);
949 int if_addmulti(struct ifnet *, struct sockaddr *, struct ifmultiaddr **);
950 int if_allmulti(struct ifnet *, int);
951 struct ifnet* if_alloc(u_char);
952 void if_attach(struct ifnet *);
953 void if_dead(struct ifnet *);
954 int if_delmulti(struct ifnet *, struct sockaddr *);
956 void if_detach(struct ifnet *);
957 void if_vmove(struct ifnet *, struct vnet *);
958 void if_purgeaddrs(struct ifnet *);
959 void if_delallmulti(struct ifnet *);
960 void if_down(struct ifnet *);
962 if_findmulti(struct ifnet *, struct sockaddr *);
963 void if_free(struct ifnet *);
964 void if_initname(struct ifnet *, const char *, int);
965 void if_link_state_change(struct ifnet *, int);
966 int if_printf(struct ifnet *, const char *, ...) __printflike(2, 3);
967 void if_qflush(struct ifnet *);
968 void if_ref(struct ifnet *);
969 void if_rele(struct ifnet *);
970 int if_setlladdr(struct ifnet *, const u_char *, int);
971 void if_up(struct ifnet *);
973 int ifpromisc(struct ifnet *, int);
974 struct ifnet *ifunit(const char *);
975 struct ifnet *ifunit_ref(const char *);
977 void ifq_init(struct ifaltq *, struct ifnet *ifp);
992 struct ifaddr *ifaof_ifpforaddr(struct sockaddr *, struct ifnet *);
995 int if_simloop(struct ifnet *ifp, struct mbuf *m, int af, int hlen);
997 typedef void *if_com_alloc_t(u_char type, struct ifnet *ifp);
1001 uint64_t if_get_counter_default(struct ifnet *, ift_counter);
1002 void if_inc_counter(struct ifnet *, ift_counter, int64_t);
1010 typedef int poll_handler_t(struct ifnet *ifp, enum poll_cmd cmd, int count);
1011 int ether_poll_register(poll_handler_t *h, struct ifnet *ifp);
1012 int ether_poll_deregister(struct ifnet *ifp);
1016 void if_hw_tsomax_common(struct ifnet *, struct ifnet_hw_tsomax *);
1017 int if_hw_tsomax_update(struct ifnet *, struct ifnet_hw_tsomax *);