Page MenuHomeFreeBSD

ppp: remove gethostby*() calls
Needs ReviewPublic

Authored by yanhaowang on Jun 16 2024, 3:29 AM.
Tags
None
Referenced Files
F150151043: D45601.diff
Sun, Mar 29, 8:05 PM
Unknown Object (File)
Sat, Mar 28, 7:54 AM
Unknown Object (File)
Sat, Mar 21, 10:23 AM
Unknown Object (File)
Sat, Mar 21, 4:26 AM
Unknown Object (File)
Tue, Mar 17, 3:45 PM
Unknown Object (File)
Tue, Mar 17, 9:04 AM
Unknown Object (File)
Feb 26 2026, 5:40 PM
Unknown Object (File)
Feb 3 2026, 5:36 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 58186
Build 55074: 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.