Lines Matching defs:ifnet
103 * the size of struct ifnet does not changed based on the option. The
145 struct ifnet;
159 int (*ifc_destroy)(struct ifnet *);
261 TAILQ_HEAD(ifnet_head, ifnet); /* the actual queue head */
290 typedef struct ifnet {
293 TAILQ_ENTRY(ifnet)
324 (struct ifnet *, struct mbuf *, const struct sockaddr *,
327 (struct ifnet *, struct mbuf *);
329 (struct ifnet *);
331 (struct ifnet *, struct mbuf *);
333 (struct ifnet *, u_long, void *);
335 (struct ifnet *);
337 (struct ifnet *, int);
339 (struct ifnet *);
342 (struct ifnet *);
369 struct ifnet *carp_d;/* ptr to carpdev (used by carp ifs) */
395 * During an ifnet's lifetime, it has only one if_index, but
396 * an if_index is not sufficient to identify an ifnet
399 * if_index apart by their if_index_gen, a unique number that each ifnet
401 * pair (if_index, if_index_gen) as a weak reference to an ifnet.
403 uint64_t if_index_gen; /* :: generation number for the ifnet
406 * same, they are the same ifnet.
411 (struct ifnet *, struct ifaddr *, bool);
413 (struct ifnet *, const u_short);
497 * ifnet:
522 if_is_mpsafe(struct ifnet *ifp)
529 if_output_lock(struct ifnet *cifp, struct ifnet *ifp, struct mbuf *m,
546 if_start_lock(struct ifnet *ifp)
760 struct ifnet *ifa_ifp; /* back-pointer to interface */
1113 struct ifnet *if_alloc(u_char);
1114 void if_free(struct ifnet *);
1115 void if_initname(struct ifnet *, const char *, int);
1116 struct ifaddr *if_dl_create(const struct ifnet *, const struct sockaddr_dl **);
1117 void if_activate_sadl(struct ifnet *, struct ifaddr *,
1119 void if_set_sadl(struct ifnet *, const void *, u_char, bool);
1120 void if_alloc_sadl(struct ifnet *);
1121 void if_free_sadl(struct ifnet *, int);
1122 void if_initialize(struct ifnet *);
1123 void if_register(struct ifnet *);
1124 void if_attach(struct ifnet *); /* Deprecated. Use if_initialize and if_register */
1126 void if_deactivate(struct ifnet *);
1127 bool if_is_deactivated(const struct ifnet *);
1128 void if_export_if_data(struct ifnet *, struct if_data *, bool);
1129 void if_purgeaddrs(struct ifnet *, int, void (*)(struct ifaddr *));
1130 void if_detach(struct ifnet *);
1131 void if_down(struct ifnet *);
1132 void if_down_locked(struct ifnet *);
1133 void if_link_state_change(struct ifnet *, int);
1134 void if_domain_link_state_change(struct ifnet *, int);
1135 void if_up(struct ifnet *);
1139 int ifaddrpref_ioctl(struct socket *, u_long, void *, struct ifnet *);
1141 int ifioctl_common(struct ifnet *, u_long, void *);
1142 int ifpromisc(struct ifnet *, int);
1143 int ifpromisc_locked(struct ifnet *, int);
1145 int if_do_dad(struct ifnet *);
1147 int if_flags_set(struct ifnet *, const u_short);
1150 int if_ioctl(struct ifnet *, u_long, void *);
1151 int if_init(struct ifnet *);
1152 void if_stop(struct ifnet *, int);
1154 struct ifnet *ifunit(const char *);
1155 struct ifnet *if_get(const char *, struct psref *);
1160 void if_put(const struct ifnet *, struct psref *);
1161 void if_acquire(struct ifnet *, struct psref *);
1164 int if_tunnel_check_nesting(struct ifnet *, struct mbuf *, int);
1194 if_get_index(const struct ifnet *ifp)
1200 bool if_held(struct ifnet *);
1202 void if_input(struct ifnet *, struct mbuf *);
1205 if_percpuq_create(struct ifnet *);
1210 void if_deferred_start_init(struct ifnet *, void (*)(struct ifnet *));
1211 void if_schedule_deferred_start(struct ifnet *);
1213 void ifa_insert(struct ifnet *, struct ifaddr *);
1214 void ifa_remove(struct ifnet *, struct ifaddr *);
1234 struct ifaddr *ifaof_ifpforaddr(const struct sockaddr *, struct ifnet *);
1235 struct ifaddr *ifaof_ifpforaddr_psref(const struct sockaddr *, struct ifnet *,
1240 struct ifaddr *if_first_addr(const struct ifnet *ifp, const int af);
1241 struct ifaddr *if_first_addr_psref(const struct ifnet *ifp, const int af, struct psref *psref);
1246 int if_transmit_lock(struct ifnet *, struct mbuf *);
1248 int ifq_enqueue(struct ifnet *, struct mbuf *);
1249 int ifq_enqueue2(struct ifnet *, struct ifqueue *, struct mbuf *);
1251 int loioctl(struct ifnet *, u_long, void *);
1254 int looutput(struct ifnet *,
1257 void * if_linkstate_change_establish(struct ifnet *,
1259 void if_linkstate_change_disestablish(struct ifnet *,
1266 int if_nulloutput(struct ifnet *, struct mbuf *,
1268 void if_nullinput(struct ifnet *, struct mbuf *);
1269 void if_nullstart(struct ifnet *);
1270 int if_nulltransmit(struct ifnet *, struct mbuf *);
1271 int if_nullioctl(struct ifnet *, u_long, void *);
1272 int if_nullinit(struct ifnet *);
1273 void if_nullstop(struct ifnet *, int);
1274 void if_nullslowtimo(struct ifnet *);
1276 void if_nulldrain(struct ifnet *);
1354 (PSLIST_READER_FIRST(&ifnet_pslist, struct ifnet, if_pslist_entry) == NULL)
1356 PSLIST_READER_FIRST(&ifnet_pslist, struct ifnet, if_pslist_entry)
1358 PSLIST_READER_NEXT((__ifp), struct ifnet, if_pslist_entry)
1360 PSLIST_READER_FOREACH((__ifp), &ifnet_pslist, struct ifnet, \
1367 PSLIST_WRITER_FOREACH((__ifp), &ifnet_pslist, struct ifnet, \
1370 PSLIST_WRITER_NEXT((__ifp), struct ifnet, if_pslist_entry)
1374 (PSLIST_WRITER_FIRST(&ifnet_pslist, struct ifnet, if_pslist_entry) == NULL)
1380 struct ifnet *__ifp; \
1401 extern struct ifnet *lo0ifp;
1419 struct mbuf *, (struct ifnet *, struct mbuf *));