Page MenuHomeFreeBSD

ppp: remove gethostby*() calls
Needs ReviewPublic

Authored by yanhaowang on Jun 16 2024, 3:29 AM.
Tags
None
Referenced Files
F160196073: D45601.id140648.diff
Mon, Jun 22, 2:14 AM
Unknown Object (File)
Sun, Jun 21, 2:19 AM
Unknown Object (File)
Thu, Jun 18, 1:02 PM
Unknown Object (File)
Sat, Jun 6, 9:45 AM
Unknown Object (File)
May 17 2026, 4:48 PM
Unknown Object (File)
May 17 2026, 4:48 PM
Unknown Object (File)
May 17 2026, 2:07 PM
Unknown Object (File)
May 17 2026, 12:26 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 58187
Build 55075: 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.