3 int uip_tx_do_arp(struct uip_tx_arg
*arg
)
5 struct uip_arp
*arp
, *arp2
;
10 buf
= uip_buf_clone(arg
);
12 arp
= (struct uip_arp
*)(arg
->eth
);
13 arp2
= (struct uip_arp
*)(buf
->eth
);
18 arp2
->op
= htons(0x2);
19 arp2
->dmac
= arp
->smac
;
22 if (arp
->dip
== htonl(info
->host_ip
)) {
23 arp2
->smac
= info
->host_mac
;
24 arp2
->sip
= htonl(info
->host_ip
);
26 uip_buf_set_used(info
, buf
);