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, Feb 3, 5:36 AM
Unknown Object (File)
Jan 20 2026, 4:20 PM
Unknown Object (File)
Jan 18 2026, 2:14 AM
Unknown Object (File)
Jan 17 2026, 1:19 AM
Unknown Object (File)
Jan 16 2026, 12:42 PM
Unknown Object (File)
Jan 14 2026, 6:47 PM
Unknown Object (File)
Jan 12 2026, 12:11 PM
Unknown Object (File)
Jan 10 2026, 3:13 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 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.