Home
last modified time | relevance | path

Searched refs:hdr_info (Results 1 – 13 of 13) sorted by relevance

/titanic_44/usr/src/uts/common/io/mac/plugins/
H A Dmac_ib.c198 mac_ib_header_info(mblk_t *mp, void *mac_pdata, mac_header_info_t *hdr_info) in mac_ib_header_info() argument
208 hdr_info->mhi_hdrsize = sizeof (ib_header_info_t); in mac_ib_header_info()
209 hdr_info->mhi_daddr = (const uint8_t *)&(ibhp->ib_dst); in mac_ib_header_info()
211 hdr_info->mhi_saddr = (const uint8_t *)&(ibhp->ib_src); in mac_ib_header_info()
213 hdr_info->mhi_saddr = NULL; in mac_ib_header_info()
215 if (mac_ib_unicst_verify(hdr_info->mhi_daddr, mac_pdata) == 0) { in mac_ib_header_info()
216 hdr_info->mhi_dsttype = MAC_ADDRTYPE_UNICAST; in mac_ib_header_info()
217 } else if (mac_ib_multicst_verify(hdr_info->mhi_daddr, in mac_ib_header_info()
219 hdr_info->mhi_dsttype = MAC_ADDRTYPE_MULTICAST; in mac_ib_header_info()
221 hdr_info->mhi_dsttype = MAC_ADDRTYPE_BROADCAST; in mac_ib_header_info()
[all …]
H A Dmac_ether.c436 mac_ether_header_info(mblk_t *mp, void *mac_pdata, mac_header_info_t *hdr_info) in mac_ether_header_info() argument
447 hdr_info->mhi_hdrsize = sizeof (struct ether_header); in mac_ether_header_info()
448 hdr_info->mhi_daddr = (const uint8_t *)&(ehp->ether_dhost); in mac_ether_header_info()
449 hdr_info->mhi_saddr = (const uint8_t *)&(ehp->ether_shost); in mac_ether_header_info()
450 hdr_info->mhi_origsap = ether_type; in mac_ether_header_info()
451 hdr_info->mhi_bindsap = (ether_type > ETHERMTU) ? in mac_ether_header_info()
453 hdr_info->mhi_pktsize = (hdr_info->mhi_bindsap == DLS_SAP_LLC) ? in mac_ether_header_info()
454 hdr_info->mhi_hdrsize + ether_type : 0; in mac_ether_header_info()
456 if (mac_ether_unicst_verify(hdr_info->mhi_daddr, NULL) == 0) in mac_ether_header_info()
457 hdr_info->mhi_dsttype = MAC_ADDRTYPE_UNICAST; in mac_ether_header_info()
[all …]
H A Dmac_ipv4.c180 mac_ipv4_header_info(mblk_t *mp, void *pdata, mac_header_info_t *hdr_info) in mac_ipv4_header_info() argument
196 hdr_info->mhi_hdrsize = iphp->ip_hl * sizeof (uint32_t); in mac_ipv4_header_info()
197 hdr_info->mhi_pktsize = 0; in mac_ipv4_header_info()
198 hdr_info->mhi_daddr = (const uint8_t *)&(iphp->ip_dst); in mac_ipv4_header_info()
199 hdr_info->mhi_saddr = (const uint8_t *)&(iphp->ip_src); in mac_ipv4_header_info()
200 hdr_info->mhi_origsap = hdr_info->mhi_bindsap = iphp->ip_p; in mac_ipv4_header_info()
201 hdr_info->mhi_dsttype = MAC_ADDRTYPE_UNICAST; in mac_ipv4_header_info()
H A Dmac_ipv6.c177 mac_ipv6_header_info(mblk_t *mp, void *pdata, mac_header_info_t *hdr_info) in mac_ipv6_header_info() argument
211 hdr_info->mhi_hdrsize = whereptr - mp->b_rptr; in mac_ipv6_header_info()
212 hdr_info->mhi_pktsize = 0; in mac_ipv6_header_info()
213 hdr_info->mhi_daddr = (const uint8_t *)&(ip6hp->ip6_dst); in mac_ipv6_header_info()
214 hdr_info->mhi_saddr = (const uint8_t *)&(ip6hp->ip6_src); in mac_ipv6_header_info()
215 hdr_info->mhi_bindsap = hdr_info->mhi_origsap = nexthdr; in mac_ipv6_header_info()
216 hdr_info->mhi_dsttype = MAC_ADDRTYPE_UNICAST; in mac_ipv6_header_info()
/titanic_44/usr/src/uts/common/io/
H A Dbridge.c1808 update_header(mblk_t *mp, mac_header_info_t *hdr_info, boolean_t striphdr) in update_header() argument
1810 if (hdr_info->mhi_bindsap == ETHERTYPE_VLAN) { in update_header()
1816 hdr_info->mhi_istagged = B_TRUE; in update_header()
1817 hdr_info->mhi_tci = ntohs(evhp->ether_tci); in update_header()
1824 hdr_info->mhi_origsap = ether_type; in update_header()
1825 hdr_info->mhi_bindsap = (ether_type > ETHERMTU) ? in update_header()
1830 hdr_info->mhi_istagged = B_FALSE; in update_header()
1831 hdr_info->mhi_tci = VLAN_ID_NONE; in update_header()
1861 bridge_forward(bridge_link_t *blp, mac_header_info_t *hdr_info, mblk_t *mp, in bridge_forward() argument
1871 const uint8_t *daddr = hdr_info->mhi_daddr; in bridge_forward()
[all …]
H A Dtrill.c724 mblk_t *mp, mac_header_info_t *hdr_info) in trill_recv_pkt_cb() argument
738 if (hdr_info->mhi_saddr[0] & 1) in trill_recv_pkt_cb()
744 if (bcmp(hdr_info->mhi_saddr, blp->bl_local_mac, ETHERADDRL) == 0) in trill_recv_pkt_cb()
748 if (hdr_info->mhi_dsttype == MAC_ADDRTYPE_UNICAST && in trill_recv_pkt_cb()
749 bcmp(hdr_info->mhi_daddr, blp->bl_local_mac, ETHERADDRL) != 0) in trill_recv_pkt_cb()
752 if (hdr_info->mhi_bindsap == ETHERTYPE_TRILL) { in trill_recv_pkt_cb()
754 trill_recv(tsock, mp, hdr_info->mhi_saddr); in trill_recv_pkt_cb()
759 trill_ctrl_input(tsock, mp, hdr_info->mhi_saddr, in trill_recv_pkt_cb()
760 hdr_info->mhi_daddr[4] == all_isis_rbridges[4] ? in trill_recv_pkt_cb()
761 hdr_info->mhi_tci : TRILL_TCI_BPDU); in trill_recv_pkt_cb()
[all …]
/titanic_44/usr/src/cmd/beadm/
H A Dbeadm.c84 struct hdr_info { struct
184 print_hdr(struct hdr_info *hdr_info) in print_hdr() argument
189 struct col_info *col_info = &hdr_info->cols[i]; in print_hdr()
205 init_hdr_cols(enum be_fmt be_fmt, struct hdr_info *hdr) in init_hdr_cols()
256 count_widths(enum be_fmt be_fmt, struct hdr_info *hdr, be_node_list_t *be_nodes) in count_widths()
337 print_be_nodes(const char *be_name, boolean_t parsable, struct hdr_info *hdr, in print_be_nodes()
403 print_be_snapshots(be_node_list_t *be, struct hdr_info *hdr, boolean_t parsable) in print_be_snapshots()
466 struct hdr_info *hdr, be_node_list_t *nodes) in print_fmt_nodes()
529 struct hdr_info hdr; in print_nodes()
/titanic_44/usr/src/uts/common/xen/io/
H A Dxnbo.c230 mac_header_info_t hdr_info; in xnbo_from_mac_filter() local
235 if (mac_header_info(xnbop->o_mh, mp, &hdr_info) != 0) { in xnbo_from_mac_filter()
240 if ((hdr_info.mhi_dsttype == MAC_ADDRTYPE_BROADCAST) || in xnbo_from_mac_filter()
241 (hdr_info.mhi_dsttype == MAC_ADDRTYPE_MULTICAST)) { in xnbo_from_mac_filter()
246 if (bcmp(hdr_info.mhi_daddr, xnbp->xnb_mac_addr, in xnbo_from_mac_filter()
/titanic_44/usr/src/uts/common/io/simnet/
H A Dsimnet.c678 mac_header_info_t hdr_info; in simnet_rx() local
685 if (mac_header_info(sdev->sd_mh, mp, &hdr_info) != 0) { in simnet_rx()
697 hdr_info.mhi_dsttype != MAC_ADDRTYPE_BROADCAST) { in simnet_rx()
698 if (hdr_info.mhi_dsttype == MAC_ADDRTYPE_UNICAST && in simnet_rx()
699 bcmp(hdr_info.mhi_daddr, sdev->sd_mac_addr, in simnet_rx()
703 } else if (hdr_info.mhi_dsttype == MAC_ADDRTYPE_MULTICAST) { in simnet_rx()
705 if (mcastaddr_lookup(sdev, hdr_info.mhi_daddr) == in simnet_rx()
/titanic_44/usr/src/uts/common/io/e1000api/
H A De1000_vf.h97 u16 hdr_info; member
H A De1000_82575.h206 __le16 hdr_info; member
/titanic_44/usr/src/uts/common/io/mac/
H A Dmac_client.c3999 mac_header_info_t hdr_info; in mac_is_mcast() local
4001 if (mac_header_info((mac_handle_t)mip, mp, &hdr_info) != 0) in mac_is_mcast()
4003 return ((hdr_info.mhi_dsttype == MAC_ADDRTYPE_BROADCAST) || in mac_is_mcast()
4004 (hdr_info.mhi_dsttype == MAC_ADDRTYPE_MULTICAST)); in mac_is_mcast()
/titanic_44/usr/src/uts/common/io/ixgbe/core/
H A Dixgbe_type.h3066 __le16 hdr_info; /* Splithdr, hdrlen */ member