Home
last modified time | relevance | path

Searched refs:ifnet (Results 1 – 25 of 312) sorted by relevance

12345678910>>...13

/freebsd-14-stable/sys/net/
HDif_clone.h55 struct ifc_data *ifd, struct ifnet **ifpp);
56 typedef int ifc_destroy_f(struct if_clone *ifc, struct ifnet *ifp, uint32_t flags);
70 struct ifnet *ifp; /* (out) Returned ifp */
75 typedef int ifc_modify_nl_f(struct ifnet *ifp, struct ifc_data_nl *ifd);
76 typedef void ifc_dump_nl_f(struct ifnet *ifp, struct nl_writer *nw);
114 int ifc_create_ifp(const char *name, struct ifc_data *ifd, struct ifnet **ifpp);
117 bool ifc_modify_ifp_nl(struct ifnet *ifp, struct ifc_data_nl *ifd);
118 bool ifc_dump_ifp_nl(struct ifnet *ifp, struct nl_writer *nw);
120 void ifc_link_ifp(struct if_clone *ifc, struct ifnet *ifp);
121 bool ifc_unlink_ifp(struct if_clone *ifc, struct ifnet *ifp);
[all …]
HDif_dead.c46 ifdead_output(struct ifnet *ifp, struct mbuf *m, const struct sockaddr *sa, in ifdead_output()
55 ifdead_input(struct ifnet *ifp, struct mbuf *m) in ifdead_input()
62 ifdead_start(struct ifnet *ifp) in ifdead_start()
68 ifdead_ioctl(struct ifnet *ifp, u_long cmd, caddr_t data) in ifdead_ioctl()
75 ifdead_resolvemulti(struct ifnet *ifp, struct sockaddr **llsa, in ifdead_resolvemulti()
84 ifdead_qflush(struct ifnet *ifp) in ifdead_qflush()
90 ifdead_transmit(struct ifnet *ifp, struct mbuf *m) in ifdead_transmit()
98 ifdead_get_counter(struct ifnet *ifp, ift_counter cnt) in ifdead_get_counter()
105 ifdead_snd_tag_alloc(struct ifnet *ifp, union if_snd_tag_alloc_params *params, in ifdead_snd_tag_alloc()
112 ifdead_ratelimit_query(struct ifnet *ifp __unused, in ifdead_ratelimit_query()
[all …]
HDifq.h154 int if_handoff(struct ifqueue *ifq, struct mbuf *m, struct ifnet *ifp,
161 void if_start(struct ifnet *);
318 int drbr_enqueue(struct ifnet *ifp, struct buf_ring *br, struct mbuf *m);
319 void drbr_putback(struct ifnet *ifp, struct buf_ring *br, struct mbuf *m_new);
320 struct mbuf *drbr_peek(struct ifnet *ifp, struct buf_ring *br);
321 void drbr_flush(struct ifnet *ifp, struct buf_ring *br);
322 struct mbuf *drbr_dequeue(struct ifnet *ifp, struct buf_ring *br);
323 void drbr_advance(struct ifnet *ifp, struct buf_ring *br);
324 struct mbuf *drbr_dequeue_cond(struct ifnet *ifp, struct buf_ring *br,
326 int drbr_empty(struct ifnet *ifp, struct buf_ring *br);
[all …]
HDif_gif.h43 extern void (*ng_gif_input_p)(struct ifnet *ifp, struct mbuf **mp,
45 extern void (*ng_gif_input_orphan_p)(struct ifnet *ifp, struct mbuf *m,
47 extern int (*ng_gif_output_p)(struct ifnet *ifp, struct mbuf **mp);
48 extern void (*ng_gif_attach_p)(struct ifnet *ifp);
49 extern void (*ng_gif_detach_p)(struct ifnet *ifp);
52 struct ifnet *gif_ifp;
103 void gif_input(struct mbuf *, struct ifnet *, int, uint8_t);
104 int gif_output(struct ifnet *, struct mbuf *, const struct sockaddr *,
109 int in_gif_output(struct ifnet *, struct mbuf *, int, uint8_t);
115 int in6_gif_output(struct ifnet *, struct mbuf *, int, uint8_t);
HDif_vlan_var.h162 extern void (*vlan_trunk_cap_p)(struct ifnet *);
163 extern struct ifnet *(*vlan_trunkdev_p)(struct ifnet *);
164 extern struct ifnet *(*vlan_devat_p)(struct ifnet *, uint16_t);
165 extern int (*vlan_tag_p)(struct ifnet *, uint16_t *);
166 extern int (*vlan_pcp_p)(struct ifnet *, uint16_t *);
167 extern int (*vlan_setcookie_p)(struct ifnet *, void *);
168 extern void *(*vlan_cookie_p)(struct ifnet *);
173 typedef void (*vlan_config_fn)(void *, struct ifnet *, uint16_t);
174 typedef void (*vlan_unconfig_fn)(void *, struct ifnet *, uint16_t);
HDif_vlan.c100 struct ifnet *parent; /* parent interface of this trunk */
182 struct ifnet *ifv_ifp;
205 int (*func)(struct ifnet *, int);
286 static void vlan_input(struct ifnet *ifp, struct mbuf *m);
287 static int vlan_ioctl(struct ifnet *ifp, u_long cmd, caddr_t addr);
289 static int vlan_snd_tag_alloc(struct ifnet *,
297 static void vlan_ratelimit_query(struct ifnet *,
300 static void vlan_qflush(struct ifnet *ifp);
301 static int vlan_setflag(struct ifnet *ifp, int flag, int status,
302 int (*func)(struct ifnet *, int));
[all …]
HDifq.c47 drbr_enqueue(struct ifnet *ifp, struct buf_ring *br, struct mbuf *m) in drbr_enqueue()
65 drbr_putback(struct ifnet *ifp, struct buf_ring *br, struct mbuf *m_new) in drbr_putback()
83 drbr_peek(struct ifnet *ifp, struct buf_ring *br) in drbr_peek()
100 drbr_flush(struct ifnet *ifp, struct buf_ring *br) in drbr_flush()
111 drbr_dequeue(struct ifnet *ifp, struct buf_ring *br) in drbr_dequeue()
123 drbr_advance(struct ifnet *ifp, struct buf_ring *br) in drbr_advance()
132 drbr_dequeue_cond(struct ifnet *ifp, struct buf_ring *br, in drbr_dequeue_cond()
155 drbr_empty(struct ifnet *ifp, struct buf_ring *br) in drbr_empty()
163 drbr_needs_enqueue(struct ifnet *ifp, struct buf_ring *br) in drbr_needs_enqueue()
171 drbr_inuse(struct ifnet *ifp, struct buf_ring *br) in drbr_inuse()
HDethernet.h401 struct ifnet;
403 void ether_bpf_mtap_if(struct ifnet *ifp, struct mbuf *m);
424 struct ifnet;
433 extern void ether_demux(struct ifnet *, struct mbuf *);
434 extern void ether_ifattach(struct ifnet *, const u_int8_t *);
435 extern void ether_ifdetach(struct ifnet *);
438 extern void ether_reassign(struct ifnet *, struct vnet *, char *);
440 extern int ether_ioctl(struct ifnet *, u_long, caddr_t);
441 extern int ether_output(struct ifnet *, struct mbuf *,
443 extern int ether_output_frame(struct ifnet *, struct mbuf *);
[all …]
HDpfil.h91 struct ifnet;
101 typedef pfil_return_t (*pfil_mbuf_chk_t)(struct mbuf **, struct ifnet *, int,
103 typedef pfil_return_t (*pfil_mem_chk_t)(void *, u_int, int, struct ifnet *,
173 int pfil_mem_in(struct pfil_head *, void *, u_int, struct ifnet *,
175 int pfil_mem_out(struct pfil_head *, void *, u_int, struct ifnet *,
177 int pfil_mbuf_in(struct pfil_head *, struct mbuf **, struct ifnet *,
179 int pfil_mbuf_out(struct pfil_head *, struct mbuf **, struct ifnet *,
181 int pfil_mbuf_fwd(struct pfil_head *, struct mbuf **, struct ifnet *,
HDif_edsc.c63 struct ifnet *sc_ifp; /* ptr to generic interface configuration */
77 static void edsc_clone_destroy(struct ifnet *);
84 static int edsc_ioctl(struct ifnet *ifp, u_long cmd, caddr_t data);
85 static void edsc_start(struct ifnet *ifp);
99 struct ifnet *ifp; in edsc_clone_create()
169 edsc_clone_destroy(struct ifnet *ifp) in edsc_clone_destroy()
194 struct ifnet *ifp = sc->sc_ifp; in edsc_init()
204 edsc_ioctl(struct ifnet *ifp, u_long cmd, caddr_t data) in edsc_ioctl()
249 edsc_start(struct ifnet *ifp) in edsc_start()
HDdebugnet.h74 struct ifnet;
76 typedef void debugnet_init_t(struct ifnet *, int *nrxr, int *ncl, int *clsize);
77 typedef void debugnet_event_t(struct ifnet *, enum debugnet_ev);
78 typedef int debugnet_transmit_t(struct ifnet *, struct mbuf *);
79 typedef int debugnet_poll_t(struct ifnet *, int);
97 struct ifnet *dc_ifp;
224 void debugnet_any_ifnet_update(struct ifnet *);
241 struct ifnet *dd_ifp; /* not ref'd */
HDif.c246 void (*ng_ether_link_state_p)(struct ifnet *ifp, int state);
247 void (*lagg_linkstate_p)(struct ifnet *ifp, int state);
249 void (*carp_linkstate_p)(struct ifnet *ifp);
253 int (*carp_forus_p)(struct ifnet *ifp, u_char *dhost);
254 int (*carp_output_p)(struct ifnet *ifp, struct mbuf *m,
264 struct ifaddr *(*carp_iamatch6_p)(struct ifnet *ifp, struct in6_addr *taddr6);
265 caddr_t (*carp_macmatch6_p)(struct ifnet *ifp, struct mbuf *m,
277 static void if_attachdomain1(struct ifnet *);
279 static void if_input_default(struct ifnet *, struct mbuf *);
280 static int if_requestencap_default(struct ifnet *, struct if_encap_req *);
[all …]
HDif_private.h41 struct ifnet { struct
43 CK_STAILQ_ENTRY(ifnet) if_link; /* all struct ifnets are chained (CK_) */
44 LIST_ENTRY(ifnet) if_clones; /* interfaces of a cloner */
126 struct mbuf *(*if_bridge_input)(struct ifnet *, struct mbuf *); argument
127 int (*if_bridge_output)(struct ifnet *, struct mbuf *, struct sockaddr *, argument
129 void (*if_bridge_linkstate)(struct ifnet *ifp); argument
134 (struct ifnet *, struct sockaddr **, struct sockaddr *); argument
141 (struct ifnet *, struct if_encap_req *); argument
HDinfiniband.h56 struct ifnet;
59 extern void infiniband_ifattach(struct ifnet *, const uint8_t *hwaddr, const uint8_t *bcaddr);
60 extern void infiniband_ifdetach(struct ifnet *);
61 extern void infiniband_bpf_mtap(struct ifnet *, struct mbuf *);
64 typedef void (*infiniband_ifattach_event_handler_t)(void *, struct ifnet *);
HDif_disc.c67 struct ifnet *sc_ifp;
70 static int discoutput(struct ifnet *, struct mbuf *,
72 static int discioctl(struct ifnet *, u_long, caddr_t);
74 static void disc_clone_destroy(struct ifnet *);
85 struct ifnet *ifp; in disc_clone_create()
117 disc_clone_destroy(struct ifnet *ifp) in disc_clone_destroy()
172 discoutput(struct ifnet *ifp, struct mbuf *m, const struct sockaddr *dst, in discoutput()
201 discioctl(struct ifnet *ifp, u_long cmd, caddr_t data) in discioctl()
/freebsd-14-stable/sys/netinet6/
HDnd6.h201 struct ifnet *ifp;
207 struct ifnet *ndpr_ifp;
221 struct ifnet *ndpr_ifp;
347 struct nd_ifinfo *nd6_ifattach(struct ifnet *);
348 void nd6_ifdetach(struct ifnet *, struct nd_ifinfo *);
349 int nd6_is_addr_neighbor(const struct sockaddr_in6 *, struct ifnet *);
353 struct llentry *nd6_lookup(const struct in6_addr *, int, struct ifnet *);
354 void nd6_setmtu(struct ifnet *);
357 void nd6_purge(struct ifnet *);
358 int nd6_resolve_addr(struct ifnet *ifp, int flags, const struct sockaddr *dst,
[all …]
HDin6_ifattach.h38 void in6_ifattach(struct ifnet *, struct ifnet *);
40 void in6_ifdetach(struct ifnet *);
41 void in6_ifdetach_destroy(struct ifnet *);
42 int in6_get_tmpifid(struct ifnet *, u_int8_t *, const u_int8_t *, int);
44 int in6_get_hw_ifid(struct ifnet *, struct in6_addr *);
45 int in6_nigroup(struct ifnet *, const char *, int, struct in6_addr *);
46 int in6_nigroup_oldmcprefix(struct ifnet *, const char *, int, struct in6_addr *);
HDscope6_var.h50 struct scope6_id *scope6_ifattach(struct ifnet *);
52 int scope6_ioctl(u_long cmd, caddr_t data, struct ifnet *);
53 void scope6_setdefault(struct ifnet *);
59 int sa6_checkzone_ifp(struct ifnet *, struct sockaddr_in6 *);
60 int in6_setscope(struct in6_addr *, struct ifnet *, u_int32_t *);
63 uint32_t in6_getscopezone(const struct ifnet *, int);
65 struct ifnet* in6_getlinkifnet(uint32_t);
66 uint32_t in6_get_unicast_scopeid(const struct in6_addr *, const struct ifnet *);
HDin6_ifattach.c88 static int get_rand_ifid(struct ifnet *, struct in6_addr *);
90 static int get_ifid(struct ifnet *, struct ifnet *, struct in6_addr *);
91 static int in6_ifattach_linklocal(struct ifnet *, struct ifnet *);
92 static int in6_ifattach_loopback(struct ifnet *);
93 static void in6_purgemaddrs(struct ifnet *);
116 get_rand_ifid(struct ifnet *ifp, struct in6_addr *in6) in get_rand_ifid()
240 in6_get_hw_ifid(struct ifnet *ifp, struct in6_addr *in6) in in6_get_hw_ifid()
357 get_ifid(struct ifnet *ifp0, struct ifnet *altifp, in get_ifid()
360 struct ifnet *ifp; in get_ifid()
420 in6_ifattach_linklocal(struct ifnet *ifp, struct ifnet *altifp) in in6_ifattach_linklocal()
[all …]
/freebsd-14-stable/sys/netinet/
HDip_carp.h143 void carp_carpdev_state(struct ifnet *);
144 int carp_output (struct ifnet *, struct mbuf *,
148 struct ifaddr *carp_iamatch6(struct ifnet *, struct in6_addr *);
149 char * carp_macmatch6(struct ifnet *, struct mbuf *, const struct in6_addr *);
150 int carp_forus(struct ifnet *, u_char *);
157 extern void (*carp_linkstate_p)(struct ifnet *);
161 extern int (*carp_forus_p)(struct ifnet *, u_char *);
163 extern int (*carp_output_p)(struct ifnet *, struct mbuf *,
173 extern struct ifaddr *(*carp_iamatch6_p)(struct ifnet *, struct in6_addr *);
174 extern char * (*carp_macmatch6_p)(struct ifnet *, struct mbuf *,
/freebsd-14-stable/sys/netlink/route/
HDroute_var.h83 int _nl_modify_ifp_generic(struct ifnet *ifp, struct nl_parsed_link *lattrs,
85 void _nl_store_ifp_cookie(struct nl_pstate *npt, struct ifnet *ifp);
88 nl_modify_ifp_generic(struct ifnet *ifp, struct nl_parsed_link *lattrs, in nl_modify_ifp_generic()
95 nl_store_ifp_cookie(struct nl_pstate *npt, struct ifnet *ifp) in nl_store_ifp_cookie()
101 int nl_modify_ifp_generic(struct ifnet *ifp, struct nl_parsed_link *lattrs,
103 void nl_store_ifp_cookie(struct nl_pstate *npt, struct ifnet *ifp);
109 typedef int rtnl_iface_modify_f(struct ifnet *ifp, struct nl_parsed_link *lattrs,
111 typedef int rtnl_iface_dump_f(struct ifnet *ifp, struct nl_writer *nw);
127 void rtnl_handle_ifnet_event(struct ifnet *ifp, int if_change_mask);
137 struct ifnet *ifp, struct nl_pstate *npt);
/freebsd-14-stable/sys/netpfil/ipfw/
HDip_fw_bpf.c49 VNET_DEFINE_STATIC(struct ifnet *, log_if);
50 VNET_DEFINE_STATIC(struct ifnet *, pflog_if);
62 ipfw_bpf_ioctl(struct ifnet *ifp, u_long cmd, caddr_t addr) in ipfw_bpf_ioctl()
69 ipfw_bpf_output(struct ifnet *ifp, struct mbuf *m, in ipfw_bpf_output()
79 ipfw_clone_destroy(struct ifnet *ifp) in ipfw_clone_destroy()
96 struct ifnet *ifp; in ipfw_clone_create()
120 struct ifnet *ifp; in ipfwlog_clone_create()
144 struct ifnet *ifp = V_log_if; in ipfw_bpf_tap()
154 struct ifnet *ifp = V_log_if; in ipfw_bpf_mtap()
164 struct ifnet *logif; in ipfw_bpf_mtap2()
/freebsd-14-stable/usr.sbin/ifmcstat/
HDifmcstat.c332 struct ifnet *ifp, *nifp, ifnet; in ifmcstat_kvm() local
347 KREAD(nl[N_IFNET].n_value, &ifp, struct ifnet *); in ifmcstat_kvm()
349 KREAD(ifp, &ifnet, struct ifnet); in ifmcstat_kvm()
350 nifp = ifnet.if_link.tqe_next; in ifmcstat_kvm()
351 if (ifindex && ifindex != ifnet.if_index) in ifmcstat_kvm()
354 printf("%s:\n", if_indextoname(ifnet.if_index, ifname)); in ifmcstat_kvm()
356 if_addrlist(TAILQ_FIRST(&ifnet.if_addrhead)); in ifmcstat_kvm()
359 if6_addrlist(TAILQ_FIRST(&ifnet.if_addrhead)); in ifmcstat_kvm()
362 ll_addrlist(TAILQ_FIRST(&ifnet.if_addrhead)); in ifmcstat_kvm()
411 struct ifnet ifnet; in ll_addrlist() local
[all …]
/freebsd-14-stable/sys/netpfil/pf/
HDif_pflog.c88 static int pflogoutput(struct ifnet *, struct mbuf *,
91 static int pflogioctl(struct ifnet *, u_long, caddr_t);
92 static void pflogstart(struct ifnet *);
94 struct ifc_data *, struct ifnet **);
95 static int pflog_clone_destroy(struct if_clone *, struct ifnet *, uint32_t);
102 VNET_DEFINE(struct ifnet *, pflogifs[PFLOGIFS_MAX]); /* for fast access */
126 struct ifc_data *ifd, struct ifnet **ifpp) in pflog_clone_create()
128 struct ifnet *ifp; in pflog_clone_create()
151 pflog_clone_destroy(struct if_clone *ifc, struct ifnet *ifp, uint32_t flags) in pflog_clone_destroy()
173 pflogstart(struct ifnet *ifp) in pflogstart()
[all …]
/freebsd-14-stable/sys/netgraph/
HDng_ether.c80 struct ifnet *ifp; /* associated interface */
92 extern void (*ng_ether_input_p)(struct ifnet *ifp, struct mbuf **mp);
93 extern void (*ng_ether_input_orphan_p)(struct ifnet *ifp, struct mbuf *m);
94 extern int (*ng_ether_output_p)(struct ifnet *ifp, struct mbuf **mp);
95 extern void (*ng_ether_attach_p)(struct ifnet *ifp);
96 extern void (*ng_ether_detach_p)(struct ifnet *ifp);
97 extern void (*ng_ether_link_state_p)(struct ifnet *ifp, int state);
100 static void ng_ether_input(struct ifnet *ifp, struct mbuf **mp);
101 static void ng_ether_input_orphan(struct ifnet *ifp, struct mbuf *m);
102 static int ng_ether_output(struct ifnet *ifp, struct mbuf **mp);
[all …]

12345678910>>...13