Universal addresses
A universal address identifies the location of a transport endpoint.
For UDP and TCP, it is composed of the dotted IP address with the
port number of the service appended. In this example, the host
kanawha has a universal address of
131.40.52.81.128.68.
The first four elements in the dotted string form the IP address of
the server kanawha:
% ypmatch 131.40.52.81
hosts.byaddr
131.40.52.81 kanawha
The last two elements, "128.68", are the high and low
octets of the port on which the service is registered (32836). This
number is obtained by multiplying the high octet value by 2^8 and
adding it to the low octet value:
128 * 2^8 = 32768 (high
octet)
+ 68 (low octet)
-----
32836 (decimal representation of port)
rpcinfo helps us verify that
bootparam is indeed registered on port 32836:
% rpcinfo -p kanawha | grep
bootparam
100026 1 udp 32836 bootparam
|