/illumos-gate/usr/src/uts/common/io/dls/ |
H A D | dls_link.c | 103 * mhip. Further, the mac_vlan_header_info() function ensures that the 109 #define DLS_PREPARE_PKT(mh, mp, mhip, err) { \ 111 if (((err) = mac_vlan_header_info((mh), (mp), (mhip))) == 0) { \ 112 DLS_STRIP_PADDING((mhip)->mhi_pktsize, (mp)); \ 113 if (MBLKL((mp)) < (mhip)->mhi_hdrsize) { \ 122 (mp), (mhip)) == 0); \ 124 (mp)->b_rptr += (mhip)->mhi_hdrsize; \ 127 (mp)->b_rptr += (mhip)->mhi_hdrsize; \ 142 i_dls_link_subchain(dls_link_t *dlp, mblk_t *mp, const mac_header_info_t *mhip, argument 148 uint16_t vid = VLAN_ID(mhip 271 i_dls_link_rx_func(dls_link_t *dlp, mac_resource_handle_t mrh, mac_header_info_t *mhip, mblk_t *mp, uint32_t sap, boolean_t (*acceptfunc)()) argument [all...] |
H A D | dls.c | 530 dls_accept_common(dld_str_t *dsp, mac_header_info_t *mhip, dls_rx_t *ds_rx, argument 555 mhip->mhi_dsttype != MAC_ADDRTYPE_MULTICAST)) 574 switch (mhip->mhi_dsttype) { 594 if (memcmp(mhip->mhi_daddr, dmap->dma_addr, 621 dls_accept(dld_str_t *dsp, mac_header_info_t *mhip, dls_rx_t *ds_rx, argument 624 return (dls_accept_common(dsp, mhip, ds_rx, ds_rx_arg, B_FALSE, 629 dls_accept_promisc(dld_str_t *dsp, mac_header_info_t *mhip, dls_rx_t *ds_rx, argument 632 return (dls_accept_common(dsp, mhip, ds_rx, ds_rx_arg, B_TRUE,
|
/illumos-gate/usr/src/uts/common/io/dld/ |
H A D | dld_str.c | 1182 mac_header_info_t *mhip) 1200 ASSERT(mp->b_rptr >= DB_BASE(mp) + mhip->mhi_hdrsize); 1201 mp->b_rptr -= mhip->mhi_hdrsize; 1263 mac_header_info_t *mhip) 1284 if (mhip->mhi_istagged && 1326 mac_header_info_t *mhip) 1337 if (mhip->mhi_istagged && 1357 ASSERT(mp->b_rptr >= DB_BASE(mp) + mhip->mhi_hdrsize); 1358 mp->b_rptr -= mhip->mhi_hdrsize; 1371 mp->b_rptr += (mhip 1181 dld_str_rx_raw(void *arg, mac_resource_handle_t mrh, mblk_t *mp, mac_header_info_t *mhip) argument 1262 dld_str_rx_fastpath(void *arg, mac_resource_handle_t mrh, mblk_t *mp, mac_header_info_t *mhip) argument 1325 dld_str_rx_unitdata(void *arg, mac_resource_handle_t mrh, mblk_t *mp, mac_header_info_t *mhip) argument [all...] |
/illumos-gate/usr/src/uts/common/io/mac/ |
H A D | mac_client.c | 4228 mac_header_info(mac_handle_t mh, mblk_t *mp, mac_header_info_t *mhip) argument 4233 mhip)); 4237 mac_vlan_header_info(mac_handle_t mh, mblk_t *mp, mac_header_info_t *mhip) argument 4248 if ((err = mac_header_info(mh, mp, mhip)) != 0) 4256 if (is_ethernet && (mhip->mhi_bindsap == ETHERTYPE_VLAN)) { 4276 (void) mac_sap_verify(mh, sap, &mhip->mhi_bindsap); 4277 mhip->mhi_hdrsize = sizeof (struct ether_vlan_header); 4278 mhip->mhi_tci = ntohs(evhp->ether_tci); 4279 mhip->mhi_istagged = B_TRUE; 4282 if (VLAN_CFI(mhip [all...] |
H A D | mac_protect.c | 1931 mblk_t *mp, mac_header_info_t *mhip) 1933 size_t hdrsize = mhip->mhi_hdrsize; 1934 uint32_t sap = mhip->mhi_bindsap; 2118 mblk_t *mp, mac_header_info_t *mhip) 2120 size_t hdrsize = mhip->mhi_hdrsize; 2121 uint32_t sap = mhip->mhi_bindsap; 1930 ipnospoof_check(mac_client_impl_t *mcip, mac_protect_t *protect, mblk_t *mp, mac_header_info_t *mhip) argument 2117 dhcpnospoof_check(mac_client_impl_t *mcip, mac_protect_t *protect, mblk_t *mp, mac_header_info_t *mhip) argument
|
/illumos-gate/usr/src/uts/common/inet/ip/ |
H A D | ip6_input.c | 158 struct mac_header_info_s *mhip) 160 (void) ip_input_common_v6(ill, ip_ring, mp_chain, mhip, NULL, NULL, 189 * The last three arguments are only used by ip_accept_tcp_v6, and mhip is 194 struct mac_header_info_s *mhip, squeue_t *target_sqp, 224 * We try to have a mhip pointer when possible, but 228 iras.ira_mhip = mhip; 230 if (mhip != NULL) { 231 switch (mhip->mhi_dsttype) { 308 /* mhip might point into 1st packet in the chain. */ 322 /* mhip migh 157 ip_input_v6(ill_t *ill, ill_rx_ring_t *ip_ring, mblk_t *mp_chain, struct mac_header_info_s *mhip) argument 193 ip_input_common_v6(ill_t *ill, ill_rx_ring_t *ip_ring, mblk_t *mp_chain, struct mac_header_info_s *mhip, squeue_t *target_sqp, mblk_t **last, uint_t *cnt) argument [all...] |
H A D | ip_input.c | 161 struct mac_header_info_s *mhip) 163 (void) ip_input_common_v4(ill, ip_ring, mp_chain, mhip, NULL, NULL, 192 * The last three arguments are only used by ip_accept_tcp, and mhip is 197 struct mac_header_info_s *mhip, squeue_t *target_sqp, 227 * We try to have a mhip pointer when possible, but 231 iras.ira_mhip = mhip; 233 if (mhip != NULL) { 234 switch (mhip->mhi_dsttype) { 294 /* mhip might point into 1st packet in chain */ 309 /* mhip migh 160 ip_input(ill_t *ill, ill_rx_ring_t *ip_ring, mblk_t *mp_chain, struct mac_header_info_s *mhip) argument 196 ip_input_common_v4(ill_t *ill, ill_rx_ring_t *ip_ring, mblk_t *mp_chain, struct mac_header_info_s *mhip, squeue_t *target_sqp, mblk_t **last, uint_t *cnt) argument [all...] |
H A D | ip.c | 7792 ip_dlur_to_mhi(ill_t *ill, mblk_t *mb, struct mac_header_info_s *mhip) argument 7798 bzero(mhip, sizeof (struct mac_header_info_s)); 7800 mhip->mhi_dsttype = MAC_ADDRTYPE_UNICAST; 7807 mhip->mhi_daddr = (uchar_t *)ind + ind->dl_dest_addr_offset + 7809 mhip->mhi_saddr = (uchar_t *)ind + ind->dl_src_addr_offset + 7816 mhip->mhi_dsttype = MAC_ADDRTYPE_MULTICAST; 7828 if (bcmp(mhip->mhi_daddr, bphys_addr, 7830 mhip->mhi_dsttype = MAC_ADDRTYPE_BROADCAST; 7850 ip_mdata_to_mhi(ill_t *ill, mblk_t *mp, struct mac_header_info_s *mhip) argument 7855 bzero(mhip, sizeo [all...] |
/illumos-gate/usr/src/uts/common/io/softmac/ |
H A D | softmac_dev.c | 502 mac_header_info_t *mhip) 501 softmac_dedicated_rx(void *arg, mac_resource_handle_t mrh, mblk_t *mp, mac_header_info_t *mhip) argument
|