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)
Sun, Jan 12, 2:20 PM
Unknown Object (File)
Sun, Jan 12, 4:23 AM
Unknown Object (File)
Tue, Jan 7, 1:29 AM
Unknown Object (File)
Dec 26 2024, 7:25 PM
Unknown Object (File)
Dec 25 2024, 8:18 PM
Unknown Object (File)
Dec 24 2024, 9:53 PM
Unknown Object (File)
Dec 22 2024, 6:58 AM
Unknown Object (File)
Nov 26 2024, 3:46 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 58558
Build 55446: 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.