Lines Matching defs:arh
60 print_arp(char field_id, const uchar_t *buf, const arh_t *arh, uint16_t ptype)
65 if (arh->arh_hlen == 0)
68 mdb_mac_addr(buf, arh->arh_hlen, macstr, sizeof (macstr));
70 if (arh->arh_plen == 0) {
74 } else if (arh->arh_plen == sizeof (in_addr_t)) {
75 (void) memcpy(&inaddr, buf + arh->arh_hlen, sizeof (inaddr));
90 arh_t arh;
102 if (mdb_vread(&arp.arh, sizeof (arp.arh), addr) == -1) {
106 mdb_nhconvert(&htype, arp.arh.arh_hardware, sizeof (htype));
107 mdb_nhconvert(&ptype, arp.arh.arh_proto, sizeof (ptype));
108 mdb_nhconvert(&op, arp.arh.arh_operation, sizeof (op));
153 blen = 2 * (arp.arh.arh_hlen + arp.arh.arh_plen);
154 if (mdb_vread(&arp.addrs, blen, addr + sizeof (arp.arh)) == -1) {
159 print_arp('s', arp.addrs, &arp.arh, ptype);
160 print_arp('t', arp.addrs + arp.arh.arh_hlen + arp.arh.arh_plen,
161 &arp.arh, ptype);