Page MenuHomeFreeBSD

Replace deprecated gethostbyname(3) with getaddrinfo(3)
AbandonedPublic

Authored by linimon on Sep 10 2019, 2:54 PM.
Tags
None
Referenced Files
Unknown Object (File)
Dec 21 2024, 5:18 AM
Unknown Object (File)
Dec 6 2024, 6:27 PM
Unknown Object (File)
Dec 2 2024, 10:15 PM
Unknown Object (File)
Dec 2 2024, 11:53 AM
Unknown Object (File)
Nov 29 2024, 1:03 PM
Unknown Object (File)
Nov 12 2024, 7:07 AM
Unknown Object (File)
Oct 5 2024, 1:55 PM
Unknown Object (File)
Oct 4 2024, 6:38 AM
Subscribers

Details

Summary

The commit just changes definition of getaddr() function which was using gethostbyname(3)
before and uses getaddrinfo(3) instead.

Test Plan

I ran a separate test program to confirm that the replacement produces the same effect.
I didn't test it with arp command itself because I am not that much familiar with it.

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Skipped
Unit
Tests Skipped

Event Timeline

I have made some corrections in the above code.
It can be found on https://reviews.freebsd.org/D21589
Apologies for creating a new review request. I made this phabricator review through arc command line and got a little jumbled while trying to update it.
I will be careful from next time.

linimon abandoned this revision.

Superceded by D21589.