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)
Wed, Apr 30, 10:07 PM
Unknown Object (File)
Tue, Apr 29, 9:09 AM
Unknown Object (File)
Wed, Apr 23, 6:09 AM
Unknown Object (File)
Tue, Apr 22, 12:42 PM
Unknown Object (File)
Sun, Apr 13, 6:36 PM
Unknown Object (File)
Mar 30 2025, 9:48 AM
Unknown Object (File)
Mar 4 2025, 7:09 AM
Unknown Object (File)
Mar 3 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 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.