Silence messages from /usr/sbin/arp on BSDs
This commit is contained in:
parent
99e54a746a
commit
285bb3f18e
1 changed files with 1 additions and 1 deletions
|
|
@ -859,7 +859,7 @@ static int ethsock_arp(struct ethsock *sock, uint8_t *hwaddr, uint32_t ipaddr, s
|
||||||
#elif defined(NMRPFLASH_WINDOWS)
|
#elif defined(NMRPFLASH_WINDOWS)
|
||||||
return DeleteIpNetEntry(&arp) ? 0 : -1;
|
return DeleteIpNetEntry(&arp) ? 0 : -1;
|
||||||
#else
|
#else
|
||||||
return systemf("arp -d %s", inet_ntoa(addr));
|
return systemf("arp -d %s &> /dev/null", inet_ntoa(addr));
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue