Home
last modified time | relevance | path

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

12345678910>>...13

/freebsd/sys/net/
H A Dif_clone.h53 struct ifc_data *ifd, struct ifnet **ifpp);
54 typedef int ifc_destroy_f(struct if_clone *ifc, struct ifnet *ifp, uint32_t flags);
68 struct ifnet *ifp; /* (out) Returned ifp */
73 typedef int ifc_modify_nl_f(struct ifnet *ifp, struct ifc_data_nl *ifd);
74 typedef void ifc_dump_nl_f(struct ifnet *ifp, struct nl_writer *nw);
112 int ifc_create_ifp(const char *name, struct ifc_data *ifd, struct ifnet **ifpp);
115 bool ifc_modify_ifp_nl(struct ifnet *ifp, struct ifc_data_nl *ifd);
116 bool ifc_dump_ifp_nl(struct ifnet *ifp, struct nl_writer *nw);
118 void ifc_link_ifp(struct if_clone *ifc, struct ifnet *ifp);
119 bool ifc_unlink_ifp(struct if_clone *ifc, struct ifnet *if
[all...]
H A Dif_dead.c45 ifdead_output(struct ifnet *ifp, struct mbuf *m, const struct sockaddr *sa, in ifdead_output()
54 ifdead_input(struct ifnet *ifp, struct mbuf *m) in ifdead_input()
61 ifdead_start(struct ifnet *ifp) in ifdead_start()
67 ifdead_ioctl(struct ifnet *ifp, u_long cmd, caddr_t data) in ifdead_ioctl()
74 ifdead_resolvemulti(struct ifnet *ifp, struct sockaddr **llsa, in ifdead_resolvemulti()
83 ifdead_qflush(struct ifnet *ifp) in ifdead_qflush()
89 ifdead_transmit(struct ifnet *ifp, struct mbuf *m) in ifdead_transmit()
97 ifdead_get_counter(struct ifnet *ifp, ift_counter cnt) in ifdead_get_counter()
104 ifdead_snd_tag_alloc(struct ifnet *ifp, union if_snd_tag_alloc_params *params, in ifdead_snd_tag_alloc()
111 ifdead_ratelimit_query(struct ifnet *ifp __unused, in ifdead_ratelimit_query()
[all …]
H A Difq.h152 int if_handoff(struct ifqueue *ifq, struct mbuf *m, struct ifnet *ifp,
159 void if_start(struct ifnet *);
316 int drbr_enqueue(struct ifnet *ifp, struct buf_ring *br, struct mbuf *m);
317 void drbr_putback(struct ifnet *ifp, struct buf_ring *br, struct mbuf *m_new);
318 struct mbuf *drbr_peek(struct ifnet *ifp, struct buf_ring *br);
319 void drbr_flush(struct ifnet *ifp, struct buf_ring *br);
320 struct mbuf *drbr_dequeue(struct ifnet *ifp, struct buf_ring *br);
321 void drbr_advance(struct ifnet *ifp, struct buf_ring *br);
322 struct mbuf *drbr_dequeue_cond(struct ifnet *ifp, struct buf_ring *br,
324 int drbr_empty(struct ifnet *ifp, struct buf_ring *br);
[all …]
H A Dif_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);
H A Dif_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);
H A Difq.c45 drbr_enqueue(struct ifnet *ifp, struct buf_ring *br, struct mbuf *m) in drbr_enqueue()
63 drbr_putback(struct ifnet *ifp, struct buf_ring *br, struct mbuf *m_new) in drbr_putback()
81 drbr_peek(struct ifnet *ifp, struct buf_ring *br) in drbr_peek()
98 drbr_flush(struct ifnet *ifp, struct buf_ring *br) in drbr_flush()
109 drbr_dequeue(struct ifnet *ifp, struct buf_ring *br) in drbr_dequeue()
121 drbr_advance(struct ifnet *ifp, struct buf_ring *br) in drbr_advance()
130 drbr_dequeue_cond(struct ifnet *ifp, struct buf_ring *br, in drbr_dequeue_cond()
153 drbr_empty(struct ifnet *ifp, struct buf_ring *br) in drbr_empty()
161 drbr_needs_enqueue(struct ifnet *ifp, struct buf_ring *br) in drbr_needs_enqueue()
169 drbr_inuse(struct ifnet *ifp, struct buf_ring *br) in drbr_inuse()
H A Dif_vlan.c100 struct ifnet *parent; /* parent interface of this trunk */
182 struct ifnet *ifv_ifp;
206 int (*func)(struct ifnet *, int);
287 static void vlan_input(struct ifnet *ifp, struct mbuf *m);
288 static int vlan_ioctl(struct ifnet *ifp, u_long cmd, caddr_t addr);
290 static int vlan_snd_tag_alloc(struct ifnet *,
298 static void vlan_ratelimit_query(struct ifnet *,
301 static void vlan_qflush(struct ifnet *ifp);
302 static int vlan_setflag(struct ifnet *ifp, int flag, int status,
303 int (*func)(struct ifnet *, int));
[all …]
H A Dethernet.h400 struct ifnet;
402 void ether_bpf_mtap_if(struct ifnet *ifp, struct mbuf *m);
423 struct ifnet;
432 extern void ether_demux(struct ifnet *, struct mbuf *);
433 extern void ether_ifattach(struct ifnet *, const u_int8_t *);
434 extern void ether_ifdetach(struct ifnet *);
437 extern void ether_reassign(struct ifnet *, struct vnet *, char *);
439 extern int ether_ioctl(struct ifnet *, u_long, caddr_t);
440 extern int ether_output(struct ifnet *, struct mbuf *,
442 extern int ether_output_frame(struct ifnet *, struc
[all...]
H A Dpfil.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 *,
H A Dif_edsc.c61 struct ifnet *sc_ifp; /* ptr to generic interface configuration */
75 static void edsc_clone_destroy(struct ifnet *);
82 static int edsc_ioctl(struct ifnet *ifp, u_long cmd, caddr_t data);
83 static void edsc_start(struct ifnet *ifp);
97 struct ifnet *ifp; in edsc_clone_create()
167 edsc_clone_destroy(struct ifnet *ifp) in edsc_clone_destroy()
192 struct ifnet *ifp = sc->sc_ifp; in edsc_init()
202 edsc_ioctl(struct ifnet *ifp, u_long cmd, caddr_t data) in edsc_ioctl()
247 edsc_start(struct ifnet *ifp) in edsc_start()
H A Ddebugnet.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 */
H A Dif.c244 void (*ng_ether_link_state_p)(struct ifnet *ifp, int state);
245 void (*lagg_linkstate_p)(struct ifnet *ifp, int state);
247 void (*carp_linkstate_p)(struct ifnet *ifp);
251 int (*carp_forus_p)(struct ifnet *ifp, u_char *dhost);
252 int (*carp_output_p)(struct ifnet *ifp, struct mbuf *m,
262 struct ifaddr *(*carp_iamatch6_p)(struct ifnet *ifp, struct in6_addr *taddr6);
263 caddr_t (*carp_macmatch6_p)(struct ifnet *ifp, struct mbuf *m,
275 static void if_attachdomain1(struct ifnet *);
277 static void if_input_default(struct ifnet *, struct mbuf *);
278 static int if_requestencap_default(struct ifnet *, struct if_encap_req *);
[all …]
H A Dif_private.h39 struct ifnet { struct
41 CK_STAILQ_ENTRY(ifnet) if_link; /* all struct ifnets are chained (CK_) */
42 LIST_ENTRY(ifnet) if_clones; /* interfaces of a cloner */
110 struct vnet *if_home_vnet; /* where this ifnet originates from */ argument
124 struct mbuf *(*if_bridge_input)(struct ifnet *, struct mbuf *); argument
125 int (*if_bridge_output)(struct ifnet *, struct mbuf *, struct sockaddr *, argument
127 void (*if_bridge_linkstate)(struct ifnet *ifp); argument
132 (struct ifnet *, struct sockaddr **, struct sockaddr *); argument
139 (struct ifnet *, struct if_encap_req *); argument
45 if_alloctypeifnet global() argument
46 if_numa_domainifnet global() argument
48 if_softcifnet global() argument
49 if_llsoftcifnet global() argument
50 if_l2comifnet global() argument
51 if_dnameifnet global() argument
52 if_dunitifnet global() argument
53 if_indexifnet global() argument
54 if_idxgenifnet global() argument
55 if_xnameifnet global() argument
56 if_descriptionifnet global() argument
59 if_flagsifnet global() argument
60 if_drv_flagsifnet global() argument
61 if_capabilitiesifnet global() argument
62 if_capabilities2ifnet global() argument
63 if_capenableifnet global() argument
64 if_capenable2ifnet global() argument
65 if_linkmibifnet global() argument
66 if_linkmiblenifnet global() argument
67 if_refcountifnet global() argument
70 if_typeifnet global() argument
71 if_addrlenifnet global() argument
72 if_hdrlenifnet global() argument
73 if_link_stateifnet global() argument
74 if_mtuifnet global() argument
75 if_metricifnet global() argument
76 if_baudrateifnet global() argument
77 if_hwassistifnet global() argument
78 if_epochifnet global() argument
79 if_lastchangeifnet global() argument
81 if_sndifnet global() argument
82 if_linktaskifnet global() argument
83 if_addmultitaskifnet global() argument
86 if_addr_lockifnet global() argument
142 if_countersifnet global() argument
163 if_hw_tsomaxifnet global() argument
164 if_hw_tsomaxsegcountifnet global() argument
165 if_hw_tsomaxsegsizeifnet global() argument
170 if_snd_tag_allocifnet global() argument
173 if_ratelimit_queryifnet global() argument
174 if_ratelimit_setupifnet global() argument
177 if_pcpifnet global() argument
182 if_debugnet_methodsifnet global() argument
183 if_epoch_ctxifnet global() argument
190 if_ispareifnet global() argument
H A Dinfiniband.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 *);
/freebsd/sys/netinet6/
H A Dnd6.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 …]
H A Din6_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 *);
H A Dscope6_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 *);
H A Din6_ifattach.c87 static int get_rand_ifid(struct ifnet *, struct in6_addr *);
89 static int get_ifid(struct ifnet *, struct ifnet *, struct in6_addr *);
90 static int in6_ifattach_linklocal(struct ifnet *, struct ifnet *);
91 static int in6_ifattach_loopback(struct ifnet *);
92 static void in6_purgemaddrs(struct ifnet *);
115 get_rand_ifid(struct ifnet *ifp, struct in6_addr *in6) in get_rand_ifid()
239 in6_get_hw_ifid(struct ifnet *ifp, struct in6_addr *in6) in in6_get_hw_ifid()
356 get_ifid(struct ifnet *ifp0, struct ifnet *altifp, in get_ifid()
359 struct ifnet *ifp; in get_ifid()
419 in6_ifattach_linklocal(struct ifnet *ifp, struct ifnet *altifp) in in6_ifattach_linklocal()
[all …]
/freebsd/sys/netlink/route/
H A Droute_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/sys/netinet/
H A Dip_carp.h190 void carp_carpdev_state(struct ifnet *);
191 int carp_output (struct ifnet *, struct mbuf *,
195 struct ifaddr *carp_iamatch6(struct ifnet *, struct in6_addr *);
196 char * carp_macmatch6(struct ifnet *, struct mbuf *, const struct in6_addr *);
197 int carp_forus(struct ifnet *, u_char *);
204 extern void (*carp_linkstate_p)(struct ifnet *);
208 extern int (*carp_forus_p)(struct ifnet *, u_char *);
210 extern int (*carp_output_p)(struct ifnet *, struct mbuf *,
220 extern struct ifaddr *(*carp_iamatch6_p)(struct ifnet *, struct in6_addr *);
221 extern char * (*carp_macmatch6_p)(struct ifnet *, struct mbuf *,
H A Dtcp_ratelimit.h70 struct ifnet *rs_ifp;
115 tcp_hw_highest_rate_ifp(struct ifnet *ifp, struct inpcb *inp);
118 tcp_set_pacing_rate(struct tcpcb *tp, struct ifnet *ifp,
123 struct tcpcb *tp, struct ifnet *ifp,
137 tcp_rl_release_ifnet(struct ifnet *ifp);
141 tcp_set_pacing_rate(struct tcpcb *tp, struct ifnet *ifp, in tcp_set_pacing_rate()
151 struct tcpcb *tp, struct ifnet *ifp, in tcp_chg_pacing_rate()
173 tcp_hw_highest_rate_ifp(struct ifnet *ifp, struct inpcb *inp) in tcp_hw_highest_rate_ifp()
227 tcp_rl_release_ifnet(struct ifnet *ifp) in tcp_rl_release_ifnet()
/freebsd/sys/netpfil/ipfw/
H A Dip_fw_bpf.c48 VNET_DEFINE_STATIC(struct ifnet *, log_if);
49 VNET_DEFINE_STATIC(struct ifnet *, pflog_if);
61 ipfw_bpf_ioctl(struct ifnet *ifp, u_long cmd, caddr_t addr) in ipfw_bpf_ioctl()
68 ipfw_bpf_output(struct ifnet *ifp, struct mbuf *m, in ipfw_bpf_output()
78 ipfw_clone_destroy(struct ifnet *ifp) in ipfw_clone_destroy()
95 struct ifnet *ifp; in ipfw_clone_create()
119 struct ifnet *ifp; in ipfwlog_clone_create()
143 struct ifnet *ifp = V_log_if; in ipfw_bpf_tap()
153 struct ifnet *ifp = V_log_if; in ipfw_bpf_mtap()
163 struct ifnet *logif; in ipfw_bpf_mtap2()
/freebsd/usr.sbin/ifmcstat/
H A Difmcstat.c331 struct ifnet *ifp, *nifp, ifnet; in ifmcstat_kvm() local
346 KREAD(nl[N_IFNET].n_value, &ifp, struct ifnet *); in ifmcstat_kvm()
348 KREAD(ifp, &ifnet, struct ifnet); in ifmcstat_kvm()
349 nifp = ifnet.if_link.tqe_next; in ifmcstat_kvm()
350 if (ifindex && ifindex != ifnet.if_index) in ifmcstat_kvm()
353 printf("%s:\n", if_indextoname(ifnet.if_index, ifname)); in ifmcstat_kvm()
355 if_addrlist(TAILQ_FIRST(&ifnet.if_addrhead)); in ifmcstat_kvm()
358 if6_addrlist(TAILQ_FIRST(&ifnet.if_addrhead)); in ifmcstat_kvm()
361 ll_addrlist(TAILQ_FIRST(&ifnet.if_addrhead)); in ifmcstat_kvm()
410 struct ifnet ifnet; in ll_addrlist() local
[all …]
/freebsd/sys/netpfil/pf/
H A Dif_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/sys/netgraph/
H A Dng_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