Home
last modified time | relevance | path

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; in _init() local
56 if ((mtrp = mactype_alloc(MACTYPE_VERSION)) == NULL) in _init()
58 mtrp->mtr_ident = MAC_PLUGIN_IDENT_6TO4; in _init()
59 mtrp->mtr_ops = &mac_6to4_type_ops; in _init()
60 mtrp->mtr_mactype = DL_6TO4; in _init()
61 mtrp->mtr_nativetype = DL_6TO4; in _init()
62 mtrp->mtr_addrlen = sizeof (ipaddr_t); in _init()
63 if ((err = mactype_register(mtrp)) == 0) { in _init()
67 mactype_free(mtrp); in _init()
H A Dmac_ib.c62 mactype_register_t *mtrp; in _init() local
67 mtrp->mtr_ident = MAC_PLUGIN_IDENT_IB; in _init()
68 mtrp->mtr_ops = &mac_ib_type_ops; in _init()
69 mtrp->mtr_mactype = DL_IB; in _init()
70 mtrp->mtr_nativetype = DL_IB; in _init()
71 mtrp->mtr_addrlen = IPOIB_ADDRL; in _init()
72 mtrp->mtr_brdcst_addr = ib_brdcst; in _init()
77 mtrp->mtr_stats = NULL; in _init()
78 mtrp->mtr_statcount = 0; in _init()
79 if ((err = mactype_register(mtrp)) == 0) { in _init()
[all …]
H A Dmac_ipv4.c59 mactype_register_t *mtrp; in _init() local
62 if ((mtrp = mactype_alloc(MACTYPE_VERSION)) == NULL) in _init()
64 mtrp->mtr_ident = MAC_PLUGIN_IDENT_IPV4; in _init()
65 mtrp->mtr_ops = &mac_ipv4_type_ops; in _init()
66 mtrp->mtr_mactype = DL_IPV4; in _init()
67 mtrp->mtr_nativetype = DL_IPV4; in _init()
68 mtrp->mtr_addrlen = sizeof (ipaddr_t); in _init()
69 if ((err = mactype_register(mtrp)) == 0) { in _init()
73 mactype_free(mtrp); in _init()
H A Dmac_ether.c334 mactype_register_t *mtrp; in _init() local
339 mtrp->mtr_ident = MAC_PLUGIN_IDENT_ETHER; in _init()
340 mtrp->mtr_ops = &mac_ether_type_ops; in _init()
341 mtrp->mtr_mactype = DL_ETHER; in _init()
342 mtrp->mtr_nativetype = DL_ETHER; in _init()
343 mtrp->mtr_addrlen = ETHERADDRL; in _init()
344 mtrp->mtr_brdcst_addr = ether_brdcst; in _init()
345 mtrp->mtr_stats = ether_stats; in _init()
346 mtrp->mtr_statcount = A_CNT(ether_stats); in _init()
347 mtrp->mtr_mapping = mac_ether_mapping; in _init()
[all …]
H A Dmac_ipv6.c61 mactype_register_t *mtrp; in _init() local
64 if ((mtrp = mactype_alloc(MACTYPE_VERSION)) == NULL) in _init()
66 mtrp->mtr_ident = MAC_PLUGIN_IDENT_IPV6; in _init()
67 mtrp->mtr_ops = &mac_ipv6_type_ops; in _init()
68 mtrp->mtr_mactype = DL_IPV6; in _init()
69 mtrp->mtr_nativetype = DL_IPV6; in _init()
70 mtrp->mtr_addrlen = sizeof (in6_addr_t); in _init()
71 if ((err = mactype_register(mtrp)) == 0) { in _init()
75 mactype_free(mtrp); in _init()
H A Dmac_wifi.c86 if (mtrp == NULL) in _init()
89 mtrp->mtr_ops = &mac_wifi_type_ops; in _init()
90 mtrp->mtr_ident = MAC_PLUGIN_IDENT_WIFI; in _init()
91 mtrp->mtr_mactype = DL_ETHER; in _init()
92 mtrp->mtr_nativetype = DL_WIFI; in _init()
93 mtrp->mtr_stats = wifi_stats; in _init()
94 mtrp->mtr_statcount = A_CNT(wifi_stats); in _init()
95 mtrp->mtr_addrlen = IEEE80211_ADDR_LEN; in _init()
96 mtrp->mtr_brdcst_addr = wifi_bcastaddr; in _init()
98 if ((err = mactype_register(mtrp)) == 0) { in _init()
[all …]
/illumos-gate/usr/src/uts/common/io/mac/
H A Dmac.c3183 mactype_register_t *mtrp; in mactype_alloc() local
3194 mtrp->mtr_version = mactype_version; in mactype_alloc()
3195 return (mtrp); in mactype_alloc()
3199 mactype_free(mactype_register_t *mtrp) in mactype_free() argument
3208 mactype_ops_t *ops = mtrp->mtr_ops; in mactype_register()
3227 mtp->mt_ident = mtrp->mtr_ident; in mactype_register()
3229 mtp->mt_type = mtrp->mtr_mactype; in mactype_register()
3232 if (mtrp->mtr_brdcst_addr != NULL) { in mactype_register()
3235 mtrp->mtr_addrlen); in mactype_register()
3238 mtp->mt_stats = mtrp->mtr_stats; in mactype_register()
[all …]