Lines Matching defs:ifnet

88 TAILQ_HEAD(ifnethead, ifnet);	/* we use TAILQs so that the order of */
122 typedef struct ifnet * if_t;
185 struct ifnet {
187 TAILQ_ENTRY(ifnet) if_link; /* all struct ifnets are chained */
188 LIST_ENTRY(ifnet) if_clones; /* interfaces of a cloner */
252 struct vnet *if_home_vnet; /* where this ifnet originates from */
265 (struct ifnet *, struct mbuf *, const struct sockaddr *,
268 (struct ifnet *, struct mbuf *);
273 (struct ifnet *, struct sockaddr **, struct sockaddr *);
278 (struct ifnet *, struct vnet *, char *);
281 (struct ifnet *, struct if_encap_req *);
346 void if_addr_rlock(struct ifnet *ifp); /* if_addrhead */
347 void if_addr_runlock(struct ifnet *ifp); /* if_addrhead */
354 typedef void (*iflladdr_event_handler_t)(void *, struct ifnet *);
357 typedef void (*ifaddr_event_handler_t)(void *, struct ifnet *);
360 typedef void (*ifnet_arrival_event_handler_t)(void *, struct ifnet *);
363 typedef void (*ifnet_departure_event_handler_t)(void *, struct ifnet *);
366 typedef void (*ifnet_link_event_handler_t)(void *, struct ifnet *, int);
373 typedef void (*ifnet_event_fn)(void *, struct ifnet *ifp, int event);
390 struct ifnet *ifgm_ifp;
451 struct ifnet *ifa_ifp; /* back-pointer to interface */
482 struct ifnet *ifma_ifp; /* back-pointer to interface */
502 * To assert the ifnet lock, you must know not only whether it's for read or
518 * Look up an ifnet given its index; the _ref variant also acquires a
522 struct ifnet *ifnet_byindex(u_short idx);
523 struct ifnet *ifnet_byindex_locked(u_short idx);
524 struct ifnet *ifnet_byindex_ref(u_short idx);
533 VNET_DECLARE(struct ifnethead, ifnet);
536 VNET_DECLARE(struct ifnet *, loif); /* first loopback interface */
538 #define V_ifnet VNET(ifnet)
543 int if_addgroup(struct ifnet *, const char *);
544 int if_delgroup(struct ifnet *, const char *);
545 int if_addmulti(struct ifnet *, struct sockaddr *, struct ifmultiaddr **);
546 int if_allmulti(struct ifnet *, int);
547 struct ifnet* if_alloc(u_char);
548 void if_attach(struct ifnet *);
549 void if_dead(struct ifnet *);
550 int if_delmulti(struct ifnet *, struct sockaddr *);
552 void if_detach(struct ifnet *);
553 void if_purgeaddrs(struct ifnet *);
554 void if_delallmulti(struct ifnet *);
555 void if_down(struct ifnet *);
557 if_findmulti(struct ifnet *, const struct sockaddr *);
558 void if_free(struct ifnet *);
559 void if_initname(struct ifnet *, const char *, int);
560 void if_link_state_change(struct ifnet *, int);
561 int if_printf(struct ifnet *, const char *, ...) __printflike(2, 3);
562 void if_ref(struct ifnet *);
563 void if_rele(struct ifnet *);
564 int if_setlladdr(struct ifnet *, const u_char *, int);
565 void if_up(struct ifnet *);
567 int ifpromisc(struct ifnet *, int);
568 struct ifnet *ifunit(const char *);
569 struct ifnet *ifunit_ref(const char *);
582 struct ifaddr *ifaof_ifpforaddr(const struct sockaddr *, struct ifnet *);
585 int if_simloop(struct ifnet *ifp, struct mbuf *m, int af, int hlen);
587 typedef void *if_com_alloc_t(u_char type, struct ifnet *ifp);
591 void if_data_copy(struct ifnet *, struct if_data *);
592 uint64_t if_get_counter_default(struct ifnet *, ift_counter);
593 void if_inc_counter(struct ifnet *, ift_counter, int64_t);
646 int if_multi_apply(struct ifnet *ifp, int (*filter)(void *, struct ifmultiaddr *, int), void *arg);
673 int ifhwioctl(u_long, struct ifnet *, caddr_t, struct thread *);