Page MenuHomeFreeBSD

netstat: remove gethostby*() calls
Needs ReviewPublic

Authored by yanhaowang on Jul 9 2024, 3:51 AM.
Tags
None
Referenced Files
Unknown Object (File)
Sat, Jan 18, 1:57 AM
Unknown Object (File)
Sun, Jan 5, 7:05 PM
Unknown Object (File)
Sun, Jan 5, 4:07 AM
Unknown Object (File)
Dec 26 2024, 8:56 AM
Unknown Object (File)
Dec 26 2024, 8:26 AM
Unknown Object (File)
Dec 25 2024, 1:01 PM
Unknown Object (File)
Dec 25 2024, 3:50 AM
Unknown Object (File)
Nov 19 2024, 8:51 PM
Subscribers

Details

Reviewers
hrs
lwhsu
Summary

Use getnameinfo with NI_NAMEREQD flag to replace gethostbyaddr.

Test Plan

I just check netstat -4 output and it look similar (just similar because it seem the network status is change anytime) with the origin output.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 58578
Build 55466: arc lint + arc unit