docs: ARES_OPT_UDP_PORT and ARES_OPT_TCP_PORT docs wrong byte order

As per #487, documentation states the port should be in network byte
order, but we can see from the test cases using MockServers on
different ports that this is not the case, it is definitely in host
byte order.

Fix By: Brad House (@bradh352)
pull/503/head
bradh352 2 years ago
parent 9903253c34
commit a306ed4238
  1. 10
      docs/ares_init_options.3

@ -102,16 +102,14 @@ resolv.conf or the RES_OPTIONS environment variable.
.B ARES_OPT_UDP_PORT .B ARES_OPT_UDP_PORT
.B unsigned short \fIudp_port\fP; .B unsigned short \fIudp_port\fP;
.br .br
The port to use for queries over UDP, in network byte order. The port to use for queries over UDP, in host byte order.
The default value is 53 (in network byte order), the standard name The default value is 53, the standard name service port.
service port.
.TP 18 .TP 18
.B ARES_OPT_TCP_PORT .B ARES_OPT_TCP_PORT
.B unsigned short \fItcp_port\fP; .B unsigned short \fItcp_port\fP;
.br .br
The port to use for queries over TCP, in network byte order. The port to use for queries over TCP, in host byte order.
The default value is 53 (in network byte order), the standard name The default value is 53, the standard name service port.
service port.
.TP 18 .TP 18
.B ARES_OPT_SERVERS .B ARES_OPT_SERVERS
.B struct in_addr *\fIservers\fP; .B struct in_addr *\fIservers\fP;

Loading…
Cancel
Save