Searched refs:mtrp (Results 1 - 7 of 7) sorted by relevance

/illumos-gate/usr/src/uts/common/io/mac/plugins/
H A Dmac_6to4.c53 mactype_register_t *mtrp; local
56 if ((mtrp = mactype_alloc(MACTYPE_VERSION)) == NULL)
58 mtrp->mtr_ident = MAC_PLUGIN_IDENT_6TO4;
59 mtrp->mtr_ops = &mac_6to4_type_ops;
60 mtrp->mtr_mactype = DL_6TO4;
61 mtrp->mtr_nativetype = DL_6TO4;
62 mtrp->mtr_addrlen = sizeof (ipaddr_t);
63 if ((err = mactype_register(mtrp)) == 0) {
67 mactype_free(mtrp);
H A Dmac_ipv4.c59 mactype_register_t *mtrp; local
62 if ((mtrp = mactype_alloc(MACTYPE_VERSION)) == NULL)
64 mtrp->mtr_ident = MAC_PLUGIN_IDENT_IPV4;
65 mtrp->mtr_ops = &mac_ipv4_type_ops;
66 mtrp->mtr_mactype = DL_IPV4;
67 mtrp->mtr_nativetype = DL_IPV4;
68 mtrp->mtr_addrlen = sizeof (ipaddr_t);
69 if ((err = mactype_register(mtrp)) == 0) {
73 mactype_free(mtrp);
H A Dmac_ib.c64 mactype_register_t *mtrp; local
67 if ((mtrp = mactype_alloc(MACTYPE_VERSION)) == NULL)
69 mtrp->mtr_ident = MAC_PLUGIN_IDENT_IB;
70 mtrp->mtr_ops = &mac_ib_type_ops;
71 mtrp->mtr_mactype = DL_IB;
72 mtrp->mtr_nativetype = DL_IB;
73 mtrp->mtr_addrlen = IPOIB_ADDRL;
74 mtrp->mtr_brdcst_addr = ib_brdcst;
79 mtrp->mtr_stats = NULL;
80 mtrp
[all...]
H A Dmac_ether.c284 mactype_register_t *mtrp; local
287 if ((mtrp = mactype_alloc(MACTYPE_VERSION)) == NULL)
289 mtrp->mtr_ident = MAC_PLUGIN_IDENT_ETHER;
290 mtrp->mtr_ops = &mac_ether_type_ops;
291 mtrp->mtr_mactype = DL_ETHER;
292 mtrp->mtr_nativetype = DL_ETHER;
293 mtrp->mtr_addrlen = ETHERADDRL;
294 mtrp->mtr_brdcst_addr = ether_brdcst;
295 mtrp->mtr_stats = ether_stats;
296 mtrp
[all...]
H A Dmac_wifi.c79 mactype_register_t *mtrp = mactype_alloc(MACTYPE_VERSION); local
83 * If `mtrp' is NULL, then this plugin is not compatible with
86 if (mtrp == NULL)
89 mtrp->mtr_ops = &mac_wifi_type_ops;
90 mtrp->mtr_ident = MAC_PLUGIN_IDENT_WIFI;
91 mtrp->mtr_mactype = DL_ETHER;
92 mtrp->mtr_nativetype = DL_WIFI;
93 mtrp->mtr_stats = wifi_stats;
94 mtrp->mtr_statcount = A_CNT(wifi_stats);
95 mtrp
[all...]
H A Dmac_ipv6.c61 mactype_register_t *mtrp; local
64 if ((mtrp = mactype_alloc(MACTYPE_VERSION)) == NULL)
66 mtrp->mtr_ident = MAC_PLUGIN_IDENT_IPV6;
67 mtrp->mtr_ops = &mac_ipv6_type_ops;
68 mtrp->mtr_mactype = DL_IPV6;
69 mtrp->mtr_nativetype = DL_IPV6;
70 mtrp->mtr_addrlen = sizeof (in6_addr_t);
71 if ((err = mactype_register(mtrp)) == 0) {
75 mactype_free(mtrp);
/illumos-gate/usr/src/uts/common/io/mac/
H A Dmac.c2876 mactype_register_t *mtrp; local
2886 mtrp = kmem_zalloc(sizeof (mactype_register_t), KM_SLEEP);
2887 mtrp->mtr_version = mactype_version;
2888 return (mtrp);
2892 mactype_free(mactype_register_t *mtrp) argument
2894 kmem_free(mtrp, sizeof (mactype_register_t));
2898 mactype_register(mactype_register_t *mtrp) argument
2901 mactype_ops_t *ops = mtrp->mtr_ops;
2904 if (mtrp->mtr_ident == NULL || ops == NULL)
2920 mtp->mt_ident = mtrp
[all...]

Completed in 104 milliseconds