Generate /etc/services from
https://www.iana.org/assignments/service-names-port-numbers/service-names-port-numbers.xml
and a locally maintained local.xml.
This required creating the initial version of local.xml, which was also automated. (The code for this can be removed when we are sure it is no longer needed.) All of our current /etc/services names still exist, although the primary name and comment for a given number/protocol tuple are determined by the IANA registry by default, so they
was also automatedmight have changed. (The code for this can be removed when we are
sure it is no longer needed.) All of our current /etc/services names
still exist, although the official name and comment for a given
number/protocol tuple are determined by the IANA registryThe primary name can be overridden by local.xml, so they
might have changedwhich we have done for port 2049.
/etc/services grows from 2,367 lines and 2,501 names to 11,538 lines
and 12,005 names. /var/db/services.db grows from 2 MB to 4.2 MB.
The service-names-port-numbers.xml file from IANA is omitted
from this commitreview in order to make code reviewit more practical.
Whether this file should be committed is an open question.