- add xsendto and use where appropriate; shrink iplink; sanitize libiproute a bit.

-916 byte
This commit is contained in:
Bernhard Reutner-Fischer
2007-04-12 11:34:39 +00:00
parent 51742f4bb0
commit b290889f02
16 changed files with 159 additions and 239 deletions

View File

@ -114,10 +114,8 @@ static void arp(int fd, struct sockaddr *saddr, int op,
memcpy(&p.arp.arp_tpa, &target_ip, sizeof(p.arp.arp_tpa));
// send it
if (sendto(fd, &p, sizeof(p), 0, saddr, sizeof(*saddr)) < 0) {
bb_perror_msg("sendto");
//return -errno;
}
xsendto(fd, &p, sizeof(p), saddr, sizeof(*saddr));
// Currently all callers ignore errors, that's why returns are
// commented out...
//return 0;