Page MenuHomeFreeBSD

Fix casper limitations
ClosedPublic

Authored by oshogbo on Aug 28 2018, 10:04 PM.
Tags
None
Referenced Files
Unknown Object (File)
Sun, Mar 31, 1:55 PM
Unknown Object (File)
Fri, Mar 29, 8:34 PM
Unknown Object (File)
Mar 10 2024, 9:14 AM
Unknown Object (File)
Feb 18 2024, 3:43 PM
Unknown Object (File)
Dec 21 2023, 8:15 AM
Unknown Object (File)
Dec 20 2023, 5:28 AM
Unknown Object (File)
Dec 13 2023, 3:14 AM
Unknown Object (File)
Dec 11 2023, 2:18 AM
Subscribers

Details

Summary

The getaddrinfo and gethostbyname are used to return
address for a given hostname. The getnameinfo and gethostbyaddr are used to
return hostnem for a given address. Right now in Casper we have two
limitations: NAME which allows to resolve DNS names. ADDR which allows to do
revert DNS lookups.

Before this change the rights was mixed up:
NAME - getnameinfo and gethostbyname
ADDR - gethostbyaddr and getaddrinfo

Which no matters on limitation allowed us to resolve DNS names and do DNS lookups
basically by using different set of functions.

Now the NAME type allows getaddrinfo and gethostbyname functions, and the ADDR names
allows to use gethostbyaddr and getnameinfo functions.

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

Two fixes for the man page.

lib/libcasper/services/cap_dns/cap_dns.3
137 ↗(On Diff #47448)

s/revert/reverse/
s/is/are/

Change looks good, my only suggestion would be to use maybe NAME2ADDR and ADDR2NAME, so the intentions are obvious.

This revision is now accepted and ready to land.Oct 20 2018, 11:08 PM
This revision was automatically updated to reflect the committed changes.