- Use getaddrinfo to replace gethostbyname and use for loop to loop the address list and copy the first meet ipv4 address.
- Use getnameinfo to replace gethostbyaddr.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG FreeBSD src repository
- Lint
Lint Passed - Unit
No Test Coverage - Build Status
Buildable 58183 Build 55071: arc lint + arc unit
Event Timeline
usr.sbin/arp/arp.c | ||
---|---|---|
262–263 | Should I use memset to replace the bzero function? |
This comment was removed by bses30074_gmail.com.
Comment Actions
Revise error code
We should use EAI_AGAIN instead of TRY_AGAIN error code while using getnameinfo.