Home
last modified time | relevance | path

Searched refs:if_clone (Results 1 – 24 of 24) sorted by relevance

/src/sys/net/
H A Dif_clone.h41 struct if_clone;
51 typedef int ifc_match_f(struct if_clone *ifc, const char *name);
52 typedef int ifc_create_f(struct if_clone *ifc, char *name, size_t maxlen,
54 typedef int ifc_destroy_f(struct if_clone *ifc, struct ifnet *ifp, uint32_t flags);
71 typedef int ifc_create_nl_f(struct if_clone *ifc, char *name, size_t maxlen,
110 struct if_clone *ifc_attach_cloner(const char *name, struct if_clone_addreq *req);
111 void ifc_detach_cloner(struct if_clone *ifc);
118 void ifc_link_ifp(struct if_clone *ifc, struct ifnet *ifp);
119 bool ifc_unlink_ifp(struct if_clone *ifc, struct ifnet *ifp);
125 typedef int ifc_match_t(struct if_clone *, const char *);
[all …]
H A Dif_clone.c69 struct if_clone { struct
107 LIST_ENTRY(if_clone) ifc_list; /* (e) On list of cloners */ argument
112 static void if_clone_free(struct if_clone *ifc);
113 static int if_clone_createif_nl(struct if_clone *ifc, const char *name,
116 static int ifc_simple_match(struct if_clone *ifc, const char *name);
117 static int ifc_handle_unit(struct if_clone *ifc, char *name, size_t len, int *punit);
118 static struct if_clone *ifc_find_cloner(const char *name);
119 static struct if_clone *ifc_find_cloner_match(const char *name);
122 static int ifc_simple_create_wrapper(struct if_clone *ifc, char *name, size_t maxlen,
124 static int ifc_advanced_create_wrapper(struct if_clone *ifc, char *name, size_t maxlen,
[all …]
H A Dif_edsc.c72 VNET_DEFINE_STATIC(struct if_clone *, edsc_cloner);
74 static int edsc_clone_create(struct if_clone *, int, caddr_t);
94 edsc_clone_create(struct if_clone *ifc, int unit, caddr_t params) in edsc_clone_create()
H A Dif_disc.c71 static int disc_clone_create(struct if_clone *, int, caddr_t);
77 VNET_DEFINE_STATIC(struct if_clone *, disc_cloner);
81 disc_clone_create(struct if_clone *ifc, int unit, caddr_t params) in disc_clone_create()
H A Dif_enc.c91 VNET_DEFINE_STATIC(struct if_clone *, enc_cloner);
97 static int enc_clone_create(struct if_clone *, char *, size_t,
99 static int enc_clone_destroy(struct if_clone *, struct ifnet *, uint32_t);
144 enc_clone_destroy(struct if_clone *ifc, struct ifnet *ifp, uint32_t flags) in enc_clone_destroy()
162 enc_clone_create(struct if_clone *ifc, char *name, size_t len, in enc_clone_create()
H A Dif_epair.c91 VNET_DEFINE_STATIC(struct if_clone *, epair_cloner);
541 epair_clone_match(struct if_clone *ifc, const char *name) in epair_clone_match()
576 epair_clone_add(struct if_clone *ifc, struct epair_softc *scb) in epair_clone_add()
594 epair_alloc_sc(struct if_clone *ifc) in epair_alloc_sc()
722 epair_handle_unit(struct if_clone *ifc, char *name, size_t len, int *punit) in epair_handle_unit()
780 epair_clone_create(struct if_clone *ifc, char *name, size_t len, in epair_clone_create()
862 epair_clone_destroy(struct if_clone *ifc, struct ifnet *ifp, uint32_t flags) in epair_clone_destroy()
H A Dif_loop.c96 VNET_DEFINE_STATIC(struct if_clone *, lo_cloner);
102 lo_clone_destroy(struct if_clone *ifc, struct ifnet *ifp, uint32_t flags) in lo_clone_destroy()
120 lo_clone_create(struct if_clone *ifc, char *name, size_t len, in lo_clone_create()
H A Dif_tuntap.c241 static int tun_clone_match(struct if_clone *ifc, const char *name);
242 static int tap_clone_match(struct if_clone *ifc, const char *name);
243 static int vmnet_clone_match(struct if_clone *ifc, const char *name);
244 static int tun_clone_create(struct if_clone *, char *, size_t,
246 static int tun_clone_destroy(struct if_clone *, struct ifnet *, uint32_t);
339 VNET_DEFINE_STATIC(struct if_clone *, tuntap_driver_cloners[NDRV]);
450 static struct if_clone *
480 tun_clone_match(struct if_clone *ifc, const char *name) in tun_clone_match()
493 tap_clone_match(struct if_clone *ifc, const char *name) in tap_clone_match()
506 vmnet_clone_match(struct if_clone *ifc, const char *name) in vmnet_clone_match()
[all …]
H A Dif_gre.c111 static int gre_clone_create(struct if_clone *, char *, size_t,
113 static int gre_clone_destroy(struct if_clone *, struct ifnet *,
115 static int gre_clone_create_nl(struct if_clone *, char *, size_t,
119 VNET_DEFINE_STATIC(struct if_clone *, gre_cloner);
231 gre_clone_create_nl(struct if_clone *ifc, char *name, size_t len, in gre_clone_create_nl()
352 gre_clone_create(struct if_clone *ifc, char *name, size_t len, in gre_clone_create()
397 gre_clone_destroy(struct if_clone *ifc, struct ifnet *ifp, uint32_t flags) in gre_clone_destroy()
H A Dif_vlan.c322 static int vlan_clone_match(struct if_clone *, const char *);
323 static int vlan_clone_create(struct if_clone *, char *, size_t,
325 static int vlan_clone_destroy(struct if_clone *, struct ifnet *, uint32_t);
327 static int vlan_clone_create_nl(struct if_clone *ifc, char *name, size_t len,
338 static struct if_clone *vlan_cloner;
341 VNET_DEFINE_STATIC(struct if_clone *, vlan_cloner);
1032 vlan_clone_match(struct if_clone *ifc, const char *name) in vlan_clone_match()
1054 vlan_clone_create(struct if_clone *ifc, char *name, size_t len, in vlan_clone_create()
1237 vlan_clone_create_nl(struct if_clone *ifc, char *name, size_t len, in vlan_clone_create_nl()
1378 vlan_clone_destroy(struct if_clone *ifc, struct ifnet *ifp, uint32_t flags) in vlan_clone_destroy()
H A Dif_gif.c113 static int gif_clone_create(struct if_clone *, int, caddr_t);
115 VNET_DEFINE_STATIC(struct if_clone *, gif_cloner);
138 gif_clone_create(struct if_clone *ifc, int unit, caddr_t params) in gif_clone_create()
H A Dif_stf.c216 VNET_DEFINE_STATIC(struct if_clone *, stf_cloner);
228 stf_clone_match(struct if_clone *ifc, const char *name) in stf_clone_match()
241 stf_clone_create(struct if_clone *ifc, char *name, size_t len, in stf_clone_create()
304 stf_clone_destroy(struct if_clone *ifc, struct ifnet *ifp, uint32_t flags) in stf_clone_destroy()
H A Dif_me.c109 static int me_clone_create(struct if_clone *, int, caddr_t);
111 VNET_DEFINE_STATIC(struct if_clone *, me_cloner);
188 me_clone_create(struct if_clone *ifc, int unit, caddr_t params) in me_clone_create()
H A Dif_ipsec.c181 static int ipsec_clone_create(struct if_clone *, int, caddr_t);
184 VNET_DEFINE_STATIC(struct if_clone *, ipsec_cloner);
188 ipsec_clone_create(struct if_clone *ifc, int unit, caddr_t params) in ipsec_clone_create()
H A Dif_lagg.c117 static int lagg_clone_create(struct if_clone *, char *, size_t,
119 static int lagg_clone_destroy(struct if_clone *, struct ifnet *, uint32_t);
120 VNET_DEFINE_STATIC(struct if_clone *, lagg_cloner);
508 lagg_clone_create(struct if_clone *ifc, char *name, size_t len, in lagg_clone_create()
619 lagg_clone_destroy(struct if_clone *ifc, struct ifnet *ifp, uint32_t flags) in lagg_clone_destroy()
H A Dif_vxlan.c377 static int vxlan_clone_create(struct if_clone *, char *, size_t,
379 static int vxlan_clone_destroy(struct if_clone *, struct ifnet *, uint32_t);
416 static struct if_clone *vxlan_cloner;
3209 vxlan_clone_create(struct if_clone *ifc, char *name, size_t len, in vxlan_clone_create()
3276 vxlan_clone_destroy(struct if_clone *ifc, struct ifnet *ifp, uint32_t flags) in vxlan_clone_destroy()
H A Dif_ovpn.c233 VNET_DEFINE_STATIC(struct if_clone *, ovpn_cloner);
2689 ovpn_clone_match(struct if_clone *ifc, const char *name) in ovpn_clone_match()
2699 ovpn_clone_create(struct if_clone *ifc, char *name, size_t len, in ovpn_clone_create()
2797 ovpn_clone_destroy(struct if_clone *ifc, struct ifnet *ifp, uint32_t flags) in ovpn_clone_destroy()
H A Dif_bridge.c317 static int bridge_clone_create(struct if_clone *, char *, size_t,
319 static int bridge_clone_destroy(struct if_clone *, struct ifnet *, uint32_t);
674 VNET_DEFINE_STATIC(struct if_clone *, bridge_cloner);
850 bridge_clone_create(struct if_clone *ifc, char *name, size_t len, in bridge_clone_create()
933 bridge_clone_destroy(struct if_clone *ifc, struct ifnet *ifp, uint32_t flags) in bridge_clone_destroy()
/src/sys/netpfil/pf/
H A Dif_pflog.c94 static int pflog_clone_create(struct if_clone *, char *, size_t,
96 static int pflog_clone_destroy(struct if_clone *, struct ifnet *, uint32_t);
100 VNET_DEFINE_STATIC(struct if_clone *, pflog_cloner);
150 pflog_clone_create(struct if_clone *ifc, char *name, size_t maxlen, in pflog_clone_create()
179 pflog_clone_destroy(struct if_clone *ifc, struct ifnet *ifp, uint32_t flags) in pflog_clone_destroy()
H A Dif_pfsync.c340 static int pfsync_clone_create(struct if_clone *, int, caddr_t);
382 VNET_DEFINE(struct if_clone *, pfsync_cloner);
389 pfsync_clone_create(struct if_clone *ifc, int unit, caddr_t param) in pfsync_clone_create()
/src/sys/dev/cxgbe/
H A Dt4_tracer.c86 static struct if_clone *t4_cloner;
123 t4_cloner_match(struct if_clone *ifc, const char *name) in t4_cloner_match()
135 t4_cloner_create(struct if_clone *ifc, char *name, size_t len, caddr_t params) in t4_cloner_create()
197 t4_cloner_destroy(struct if_clone *ifc, if_t ifp) in t4_cloner_destroy()
/src/sys/net80211/
H A Dieee80211_freebsd.c77 static struct if_clone *wlan_cloner;
116 wlan_clone_create(struct if_clone *ifc, char *name, size_t len, in wlan_clone_create()
172 wlan_clone_destroy(struct if_clone *ifc, struct ifnet *ifp, uint32_t flags) in wlan_clone_destroy()
/src/sys/dev/wg/
H A Dif_wg.c278 VNET_DEFINE_STATIC(struct if_clone *, wg_cloner);
361 static int wg_clone_create(struct if_clone *ifc, char *name, size_t len,
368 static int wg_clone_destroy(struct if_clone *ifc, if_t ifp,
2964 wg_clone_create(struct if_clone *ifc, char *name, size_t len, in wg_clone_create()
3065 wg_clone_destroy(struct if_clone *ifc, if_t ifp, uint32_t flags) in wg_clone_destroy()
3265 struct if_clone *clone = VNET_VNET(vnet_iter, wg_cloner); in wg_module_deinit()
/src/sys/conf/
H A Dfiles4213 net/if_clone.c standard