Lines Matching refs:ifnet

92 CK_STAILQ_HEAD(ifnethead, ifnet);	/* we use TAILQs so that the order of */
127 typedef struct ifnet * if_t;
276 typedef int (if_snd_tag_alloc_t)(struct ifnet *, union if_snd_tag_alloc_params *,
282 typedef void (if_ratelimit_query_t)(struct ifnet *,
284 typedef int (if_ratelimit_setup_t)(struct ifnet *, uint64_t, uint32_t);
289 struct ifnet {
291 CK_STAILQ_ENTRY(ifnet) if_link; /* all struct ifnets are chained (CK_) */
292 LIST_ENTRY(ifnet) if_clones; /* interfaces of a cloner */
358 struct vnet *if_home_vnet; /* where this ifnet originates from */
371 (struct ifnet *, struct mbuf *, const struct sockaddr *,
374 (struct ifnet *, struct mbuf *);
375 struct mbuf *(*if_bridge_input)(struct ifnet *, struct mbuf *);
376 int (*if_bridge_output)(struct ifnet *, struct mbuf *, struct sockaddr *,
378 void (*if_bridge_linkstate)(struct ifnet *ifp);
383 (struct ifnet *, struct sockaddr **, struct sockaddr *);
388 (struct ifnet *, struct vnet *, char *);
391 (struct ifnet *, struct if_encap_req *);
464 typedef void (*iflladdr_event_handler_t)(void *, struct ifnet *);
467 typedef void (*ifaddr_event_handler_t)(void *, struct ifnet *);
469 typedef void (*ifaddr_event_ext_handler_t)(void *, struct ifnet *,
475 typedef void (*ifnet_arrival_event_handler_t)(void *, struct ifnet *);
478 typedef void (*ifnet_departure_event_handler_t)(void *, struct ifnet *);
481 typedef void (*ifnet_link_event_handler_t)(void *, struct ifnet *, int);
488 typedef void (*ifnet_event_fn)(void *, struct ifnet *ifp, int event);
504 struct ifnet *ifgm_ifp;
562 struct ifnet *ifa_ifp; /* back-pointer to interface */
591 struct ifnet *ifma_ifp; /* back-pointer to interface */
609 * Look up an ifnet given its index; the _ref variant also acquires a
613 struct ifnet *ifnet_byindex(u_short idx);
614 struct ifnet *ifnet_byindex_ref(u_short idx);
623 VNET_DECLARE(struct ifnethead, ifnet);
626 VNET_DECLARE(struct ifnet *, loif); /* first loopback interface */
628 #define V_ifnet VNET(ifnet)
639 int if_addgroup(struct ifnet *, const char *);
640 int if_delgroup(struct ifnet *, const char *);
641 int if_addmulti(struct ifnet *, struct sockaddr *, struct ifmultiaddr **);
642 int if_allmulti(struct ifnet *, int);
643 struct ifnet* if_alloc(u_char);
644 struct ifnet* if_alloc_dev(u_char, device_t dev);
645 struct ifnet* if_alloc_domain(u_char, int numa_domain);
646 void if_attach(struct ifnet *);
647 void if_dead(struct ifnet *);
648 int if_delmulti(struct ifnet *, struct sockaddr *);
651 void if_detach(struct ifnet *);
652 void if_purgeaddrs(struct ifnet *);
653 void if_delallmulti(struct ifnet *);
654 void if_down(struct ifnet *);
656 if_findmulti(struct ifnet *, const struct sockaddr *);
658 void if_free(struct ifnet *);
659 void if_initname(struct ifnet *, const char *, int);
660 void if_link_state_change(struct ifnet *, int);
661 int if_printf(struct ifnet *, const char *, ...) __printflike(2, 3);
662 void if_ref(struct ifnet *);
663 void if_rele(struct ifnet *);
664 int if_setlladdr(struct ifnet *, const u_char *, int);
665 int if_tunnel_check_nesting(struct ifnet *, struct mbuf *, uint32_t, int);
666 void if_up(struct ifnet *);
668 int ifpromisc(struct ifnet *, int);
669 struct ifnet *ifunit(const char *);
670 struct ifnet *ifunit_ref(const char *);
683 struct ifaddr *ifaof_ifpforaddr(const struct sockaddr *, struct ifnet *);
686 int if_simloop(struct ifnet *ifp, struct mbuf *m, int af, int hlen);
688 typedef void *if_com_alloc_t(u_char type, struct ifnet *ifp);
692 void if_data_copy(struct ifnet *, struct if_data *);
693 uint64_t if_get_counter_default(struct ifnet *, ift_counter);
694 void if_inc_counter(struct ifnet *, ift_counter, int64_t);
785 int ifhwioctl(u_long, struct ifnet *, caddr_t, struct thread *);