Page MenuHomeFreeBSD

ppp: remove gethostby*() calls
Needs ReviewPublic

Authored by yanhaowang on Jun 16 2024, 3:29 AM.
Tags
None
Referenced Files
F149949434: D45601.id139883.diff
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
Unknown Object (File)
Jan 20 2026, 4:20 PM
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 58341
Build 55229: 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.