| /freebsd/sys/netinet6/ |
| H A D | in6_ifattach.h | 38 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); 43 bool in6_get_stableifid(struct ifnet *, struct in6_addr *, int); 45 int in6_get_hw_ifid(struct ifnet *, struct in6_addr *); 46 int in6_get_ifid(struct ifnet *, struct ifnet *, struct in6_addr *); 47 int in6_nigroup(struct ifnet *, const char *, int, struct in6_addr *); 48 int in6_nigroup_oldmcprefix(struct ifnet *, const char *, int, struct in6_addr *);
|
| H A D | nd6.h | 188 struct ifnet *ifp; 194 struct ifnet *ndpr_ifp; 208 struct ifnet *ndpr_ifp; 344 void nd6_ifattach(struct ifnet *); 345 void nd6_ifdetach(struct ifnet *); 346 int nd6_is_addr_neighbor(const struct sockaddr_in6 *, struct ifnet *); 350 struct llentry *nd6_lookup(const struct in6_addr *, int, struct ifnet *); 351 void nd6_setmtu(struct ifnet *); 354 void nd6_purge(struct ifnet *); 355 int nd6_resolve_addr(struct ifnet *ifp, int flags, const struct sockaddr *dst, [all …]
|
| H A D | scope6_var.h | 41 void scope6_ifattach(struct ifnet *); 42 int scope6_ioctl(u_long cmd, caddr_t data, struct ifnet *); 43 void scope6_setdefault(struct ifnet *); 48 int sa6_checkzone_ifp(struct ifnet *, struct sockaddr_in6 *); 49 int in6_setscope(struct in6_addr *, struct ifnet *, u_int32_t *); 52 uint32_t in6_getscopezone(const struct ifnet *, int); 54 struct ifnet* in6_getlinkifnet(uint32_t); 55 uint32_t in6_get_unicast_scopeid(const struct in6_addr *, const struct ifnet *);
|
| H A D | in6_ifattach.c | 93 static int get_rand_ifid(struct ifnet *, struct in6_addr *); 94 static int in6_ifattach_linklocal(struct ifnet *, struct ifnet *); 95 static int in6_ifattach_loopback(struct ifnet *); 96 static void in6_purgemaddrs(struct ifnet *); 122 get_rand_ifid(struct ifnet *ifp, struct in6_addr *in6) in get_rand_ifid() 165 get_interface_link_level(struct ifnet *ifp) in get_interface_link_level() 191 in6_get_interface_hwaddr(struct ifnet *ifp, size_t *len) in in6_get_interface_hwaddr() 263 in6_get_hw_ifid(struct ifnet *ifp, struct in6_addr *in6) in in6_get_hw_ifid() 343 in6_get_stableifid(struct ifnet *ifp, struct in6_addr *in6, int prefixlen) in in6_get_stableifid() 456 in6_get_ifid(struct ifnet *ifp0, struct ifnet *altifp, in in6_get_ifid() [all …]
|
| H A D | scope6.c | 78 static int scope6_get(struct ifnet *, struct scope6_id *); 79 static int scope6_set(struct ifnet *, struct scope6_id *); 95 scope6_ifattach(struct ifnet *ifp) in scope6_ifattach() 109 scope6_ioctl(u_long cmd, caddr_t data, struct ifnet *ifp) in scope6_ioctl() 137 scope6_set(struct ifnet *ifp, struct scope6_id *idlist) in scope6_set() 206 scope6_get(struct ifnet *ifp, struct scope6_id *idlist) in scope6_get() 254 scope6_setdefault(struct ifnet *ifp) in scope6_setdefault() 400 in6_setscope(struct in6_addr *in6, struct ifnet *ifp, u_int32_t *ret_id) in in6_setscope() 483 in6_get_unicast_scopeid(const struct in6_addr *in6, const struct ifnet *ifp) in in6_get_unicast_scopeid() 502 struct ifnet* [all …]
|
| /freebsd/sys/net/ |
| H A D | if_clone.h | 53 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 *ifp); [all …]
|
| H A D | if_dead.c | 45 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_vf_status(struct ifnet *ifp __unused, in ifdead_vf_status() [all …]
|
| H A D | ifq.h | 152 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 D | if_vlan_var.h | 157 extern void (*vlan_trunk_cap_p)(struct ifnet *); 158 extern struct ifnet *(*vlan_trunkdev_p)(struct ifnet *); 159 extern struct ifnet *(*vlan_devat_p)(struct ifnet *, uint16_t); 160 extern int (*vlan_tag_p)(struct ifnet *, uint16_t *); 161 extern int (*vlan_pcp_p)(struct ifnet *, uint16_t *); 162 extern int (*vlan_setcookie_p)(struct ifnet *, void *); 163 extern void *(*vlan_cookie_p)(struct ifnet *); 164 extern void (*vlan_input_p)(struct ifnet *, struct mbuf *); 169 typedef void (*vlan_config_fn)(void *, struct ifnet *, uint16_t); 170 typedef void (*vlan_unconfig_fn)(void *, struct ifnet *, uint16_t);
|
| H A D | if_gif.h | 43 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; 99 void gif_input(struct mbuf *, struct ifnet *, int, uint8_t); 100 int gif_output(struct ifnet *, struct mbuf *, const struct sockaddr *, 105 int in_gif_output(struct ifnet *, struct mbuf *, int, uint8_t); 111 int in6_gif_output(struct ifnet *, struct mbuf *, int, uint8_t);
|
| H A D | ifq.c | 45 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 D | if_vlan.c | 100 struct ifnet *parent; /* parent interface of this trunk */ 182 struct ifnet *ifv_ifp; 206 int (*func)(struct ifnet *, int); 277 static void vlan_input(struct ifnet *ifp, struct mbuf *m); 278 static int vlan_ioctl(struct ifnet *ifp, u_long cmd, caddr_t addr); 280 static int vlan_snd_tag_alloc(struct ifnet *, 288 static void vlan_ratelimit_query(struct ifnet *, 291 static void vlan_qflush(struct ifnet *ifp); 292 static int vlan_setflag(struct ifnet *ifp, int flag, int status, 293 int (*func)(struct ifnet *, int)); [all …]
|
| H A D | pfil.h | 91 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 D | if_edsc.c | 61 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 D | if_private.h | 39 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 */ 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 133 (struct ifnet *, struct sockaddr **, struct sockaddr *); argument 140 (struct ifnet *, struct if_encap_req *); argument
|
| H A D | ethernet.h | 428 struct ifnet; 430 void ether_bpf_mtap_if(struct ifnet *ifp, struct mbuf *m); 451 struct ifnet; 460 extern void ether_demux(struct ifnet *, struct mbuf *); 461 extern void ether_ifattach(struct ifnet *, const u_int8_t *); 462 extern void ether_ifdetach(struct ifnet *); 463 extern int ether_ioctl(struct ifnet *, u_long, caddr_t); 464 extern int ether_output(struct ifnet *, struct mbuf *, 466 extern int ether_output_frame(struct ifnet *, struct mbuf *); 471 bool ether_8021q_frame(struct mbuf **mp, struct ifnet *ife, [all …]
|
| H A D | debugnet.h | 74 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 D | if.c | 243 void (*lagg_linkstate_p)(struct ifnet *ifp, int state); 245 void (*carp_linkstate_p)(struct ifnet *ifp); 249 int (*carp_forus_p)(struct ifnet *ifp, u_char *dhost); 250 int (*carp_output_p)(struct ifnet *ifp, struct mbuf *m, 259 struct ifaddr *(*carp_iamatch6_p)(struct ifnet *ifp, struct in6_addr *taddr6); 260 caddr_t (*carp_macmatch6_p)(struct ifnet *ifp, struct mbuf *m, 272 static void if_input_default(struct ifnet *, struct mbuf *); 273 static int if_requestencap_default(struct ifnet *, struct if_encap_req *); 274 static int if_setflag(struct ifnet *, int, int, int *, int); 275 static int if_transmit_default(struct ifnet *ifp, struct mbuf *m); [all …]
|
| H A D | infiniband.h | 56 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 *);
|
| H A D | if_disc.c | 65 struct ifnet *sc_ifp; 68 static int discoutput(struct ifnet *, struct mbuf *, 70 static int discioctl(struct ifnet *, u_long, caddr_t); 72 static void disc_clone_destroy(struct ifnet *); 83 struct ifnet *ifp; in disc_clone_create() 115 disc_clone_destroy(struct ifnet *ifp) in disc_clone_destroy() 170 discoutput(struct ifnet *ifp, struct mbuf *m, const struct sockaddr *dst, in discoutput() 199 discioctl(struct ifnet *ifp, u_long cmd, caddr_t data) in discioctl()
|
| /freebsd/sys/netinet/ |
| H A D | ip_carp.h | 182 void carp_carpdev_state(struct ifnet *); 183 int carp_output (struct ifnet *, struct mbuf *, 187 struct ifaddr *carp_iamatch6(struct ifnet *, struct in6_addr *); 188 char * carp_macmatch6(struct ifnet *, struct mbuf *, const struct in6_addr *); 189 int carp_forus(struct ifnet *, u_char *); 195 extern void (*carp_linkstate_p)(struct ifnet *); 199 extern int (*carp_forus_p)(struct ifnet *, u_char *); 201 extern int (*carp_output_p)(struct ifnet *, struct mbuf *, 211 extern struct ifaddr *(*carp_iamatch6_p)(struct ifnet *, struct in6_addr *); 212 extern char * (*carp_macmatch6_p)(struct ifnet *, struct mbuf *,
|
| H A D | tcp_ratelimit.h | 70 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/netlink/route/ |
| H A D | route_var.h | 85 int _nl_modify_ifp_generic(struct ifnet *ifp, struct nl_parsed_link *lattrs, 87 void _nl_store_ifp_cookie(struct nl_pstate *npt, struct ifnet *ifp); 90 nl_modify_ifp_generic(struct ifnet *ifp, struct nl_parsed_link *lattrs, in nl_modify_ifp_generic() 97 nl_store_ifp_cookie(struct nl_pstate *npt, struct ifnet *ifp) in nl_store_ifp_cookie() 103 int nl_modify_ifp_generic(struct ifnet *ifp, struct nl_parsed_link *lattrs, 105 void nl_store_ifp_cookie(struct nl_pstate *npt, struct ifnet *ifp); 111 typedef int rtnl_iface_modify_f(struct ifnet *ifp, struct nl_parsed_link *lattrs, 113 typedef int rtnl_iface_dump_f(struct ifnet *ifp, struct nl_writer *nw); 129 void rtnl_handle_ifnet_event(struct ifnet *ifp, int if_change_mask); 139 struct ifnet *ifp, struct nl_pstate *npt);
|
| /freebsd/sys/compat/linux/ |
| H A D | linux_common.h | 34 struct ifnet; 37 int ifname_bsd_to_linux_ifp(const struct ifnet *, char *, size_t); 39 struct ifnet *ifname_linux_to_ifp( const char *); 42 unsigned short linux_ifflags(struct ifnet *); 43 int linux_ifhwaddr(struct ifnet *ifp, struct l_sockaddr *lsa);
|
| /freebsd/tools/tools/ifpifa/ |
| H A D | ifpifa.c | 82 struct ifnet ifnet; in main() local 120 if (kread(kd, ifnetaddr, (char *) &ifnet, sizeof(ifnet)) != 0) in main() 122 ifnetaddr_next = (u_long) TAILQ_NEXT(&ifnet, if_link); in main() 124 printf("%s\n", ifnet.if_xname); in main() 126 for (ifaddraddr = (u_long) TAILQ_FIRST(&ifnet.if_addrhead); in main()
|