Page MenuHomeFreeBSD

ppp: remove gethostby*() calls
Needs ReviewPublic

Authored by yanhaowang on Jun 16 2024, 3:29 AM.
Tags
None
Referenced Files
Unknown Object (File)
Tue, Dec 16, 4:55 PM
Unknown Object (File)
Sat, Dec 13, 2:20 AM
Unknown Object (File)
Fri, Nov 28, 9:05 AM
Unknown Object (File)
Fri, Nov 28, 7:35 AM
Unknown Object (File)
Thu, Nov 27, 1:11 PM
Unknown Object (File)
Nov 25 2025, 4:01 PM
Unknown Object (File)
Nov 19 2025, 9:35 AM
Unknown Object (File)
Nov 17 2025, 9:01 AM
Subscribers

Details

Reviewers
hrs
lwhsu
Summary
  1. Use getaddrinfo to replace gethostbyname, use for loop to loop the address list and copy the first meet ipv4 address.

Diff Detail

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

Event Timeline

Update according Hiroki advise in D45594

  1. Use "error" instead of "status" name to store the value of getaddrinfo() function.
  2. Use compound literals instead of "hints" variable.