Changeset View
Changeset View
Standalone View
Standalone View
head/lib/libcasper/services/cap_dns/cap_dns.3
Show First 20 Lines • Show All 128 Lines • ▼ Show 20 Lines | |||||
The | The | ||||
.Va type | .Va type | ||||
can have two values: | can have two values: | ||||
.Dv ADDR | .Dv ADDR | ||||
or | or | ||||
.Dv NAME . | .Dv NAME . | ||||
The | The | ||||
.Dv ADDR | .Dv ADDR | ||||
means that functions | means that reverse DNS lookups are allowed with | ||||
.Fn cap_gethostbyname , | .Fn cap_getnameinfo | ||||
.Fn cap_gethostbyname2 | |||||
and | and | ||||
.Fn cap_gethostbyaddr | .Fn cap_gethostbyaddr | ||||
are allowed. | functions. | ||||
In case when | In case when | ||||
.Va type | .Va type | ||||
is set to | is set to | ||||
.Dv NAME | .Dv NAME | ||||
the | the name resolution is allowed with | ||||
.Fn cap_getnameinfo | .Fn cap_getaddrinfo , | ||||
function is allowed. | .Fn cap_gethostbyname , | ||||
and | |||||
.Fn cap_gethostbyname2 | |||||
functions. | |||||
.It family ( NV_TYPE_NUMBER ) | .It family ( NV_TYPE_NUMBER ) | ||||
The | The | ||||
.Va family | .Va family | ||||
limits service to one of the address families (e.g. | limits service to one of the address families (e.g. | ||||
.Dv AF_INET , AF_INET6 , | .Dv AF_INET , AF_INET6 , | ||||
etc.). | etc.). | ||||
.Sh EXAMPLES | .Sh EXAMPLES | ||||
The following example first opens a capability to casper and then uses this | The following example first opens a capability to casper and then uses this | ||||
▲ Show 20 Lines • Show All 75 Lines • Show Last 20 Lines |