arpreq
struct xarpreq arpreq;
BZERO(&arpreq, sizeof (arpreq));
if (!get_ether_addr(hisaddr, &arpreq.xarp_ha, quietflag)) {
BCOPY(&sin, &arpreq.xarp_pa, sizeof (sin));
arpreq.xarp_flags = ATF_PERM | ATF_PUBL;
arpreq.xarp_ha.sdl_family = AF_LINK;
if (myioctl(ipfd, SIOCSXARP, (caddr_t)&arpreq) < 0) {
cp = (const uchar_t *)LLADDR(&arpreq.xarp_ha);
str = _link_ntoa(cp, str, arpreq.xarp_ha.sdl_alen, IFT_OTHER);
struct xarpreq arpreq;
BZERO(&arpreq, sizeof (arpreq));
BCOPY(&sin, &arpreq.xarp_pa, sizeof (sin));
arpreq.xarp_ha.sdl_family = AF_LINK;
if (myioctl(ipfd, SIOCDXARP, (caddr_t)&arpreq) < 0) {
struct arpreq ar;
struct arprequest arpreq;
arpreq.hwtype = htons(1);
arpreq.protocol = htons(IP);
arpreq.hwlen = ETH_ALEN;
arpreq.protolen = 4;
arpreq.opcode = htons(ARP_REQUEST);
memcpy(arpreq.shwaddr, arptable[ARP_CLIENT].node, ETH_ALEN);
memcpy(arpreq.sipaddr, &arptable[ARP_CLIENT].ipaddr, sizeof(in_addr));
memset(arpreq.thwaddr, 0, ETH_ALEN);
memcpy(arpreq.tipaddr, &destip, sizeof(in_addr));
eth_transmit(broadcast, ARP, sizeof(arpreq),
&arpreq);
arpreq.tipaddr, timeout)) goto xmit;
struct arpreq ar;
struct arpreq arpreq;
s_in = (struct sockaddr_in *)&arpreq.arp_pa;
if (ioctl(s, SIOCGARP, (caddr_t)&arpreq) < 0) {
bcopy(&arpreq.arp_ha.sa_data, scan, 6);
/* 030 */ { SIOCSARP, sizeof (struct arpreq), IPI_PRIV | IPI_WR,
/* 031 */ { SIOCGARP, sizeof (struct arpreq), IPI_GET_CMD,
/* 032 */ { SIOCDARP, sizeof (struct arpreq), IPI_PRIV | IPI_WR,
struct arpreq *ar;
ar = (struct arpreq *)mp->b_cont->b_cont->b_rptr;
struct arpreq *ar;
ASSERT(MBLKL(mp1) >= sizeof (struct arpreq));
ar = (struct arpreq *)mp1->b_rptr;
struct arpreq *ar;
ar = (struct arpreq *)tmp->b_rptr;
#define SIOCSARP _IOW('i', 30, struct arpreq) /* set arp entry */
#define SIOCGARP _IOWR('i', 31, struct arpreq) /* get arp entry */
#define SIOCDARP _IOW('i', 32, struct arpreq) /* delete arp entry */