| Browse in : |
All
> Documents
> Man Pages
> File Formats
(375)
|
Port numbers are assigned by the IANA (Internet Assigned Numbers Authority), and their current policy is to assign both TCP and UDP protocols when assigning a port number. Therefore, most entries will have two entries, even for TCP only services.
Port numbers below 1024 (so-called `low numbered` ports) can only be bound to by root (see bind(2), tcp(7), and udp(7)). This is so clients connecting to low numbered ports can trust that the service running on the port is the standard implementation, and not a rogue service run by a user of the machine. Well-known port numbers specified by the IANA are normally located in this root-only space.
The presence of an entry for a service in the services file does not necessarily mean that the service is currently running on the machine. See inetd.conf(5) for the configuration of Internet services offered. Note that not all networking services are started by inetd(8), and so won`t appear in inetd.conf(5). In particular, news (NNTP) and mail (SMTP) servers are often initialized from the system boot scripts.
The location of the services file is defined by _PATH_SERVICES in /usr/include/netdb.h. This is usually set to /etc/services.
Each line describes one service, and is of the form:
Either spaces or tabs may be used to separate the fields.
Comments are started by the hash sign (#) and continue until the end of the line. Blank lines are skipped.
The service-name should begin in the first column of the file, since leading spaces are not stripped. service-names can be any printable characters excluding space and tab. However, a conservative choice of characters should be used to minimize inter-operability problems. E.g., a-z, 0-9, and hyphen (-) would seem a sensible choice.
Lines not matching this format should not be present in the file. (Currently, they are silently skipped by getservent(3), getservbyname(3), and getservbyport(3). However, this behaviour should not be relied on.)
As a backwards compatibility feature, the slash (/) between the port number and protocol name can in fact be either a slash or a comma (,). Use of the comma in modern installations is depreciated.
This file might be distributed over a network using a network-wide naming service like Yellow Pages/NIS or BIND/Hesiod.
A sample services file might look like this:
netstat 15/tcp qotd 17/tcp quote msp 18/tcp # message send protocol msp 18/udp # message send protocol chargen 19/tcp ttytst source chargen 19/udp ttytst source ftp 21/tcp # 22 - unassigned telnet 23/tcp
Lines longer than BUFSIZ (currently 1024) characters will be ignored by getservent(3), getservbyname(3), and getservbyport(3). However, this will also cause the next line to be mis-parsed.
Assigned Numbers RFC, most recently RFC 1700, (AKA STD0002)
Guide to Yellow Pages Service
Guide to BIND/Hesiod Service
Tuesday, March 9th, 2010 << Previous Finally, we can grab some hard-core Linux shirts to wear at the same time we're donating to the cause! The Linux Foundation supports the development of the Linux Kernel financially, and they've come up with a new line of awesome shirts and other merchandise to help out.
Any business likes to claim to be number one at something; the biggest pet-shop in town, the largest office productivity application provider globally, the only telco that provides both mobile and broadband in your area.
Last November, El Reg told you about how multicore chip maker Tilera was lining up its third round of venture capital funding, a $25m pile of cash that would include $10m from Taiwanese PC maker and server wannabe Quanta Computer.
"The development of Linux 2.6.34 has started and is causing heated discussions on the LKML.
I'd love to see viable alternatives to the current mainstream operating systems.
Remember Terra Soft and its Yellow Dog Linux for Power processors? Well, Yellow Dog is no longer the darling Linux for Apple machines since the latter company switched to Intel Core and Xeon processors for its PCs and servers a few years back.
Microsoft Windows Mobile operating systems have always been compatible with various handsets or personal digital assistants, even with those that did not feature enough performance for them, which essentially ruined user experience.
Virtual Network Computing allows you to log into a full desktop on a remote server .
WHERE THE HECK ARE ALL THE TECH DEALS? A widespread prediction heading into 2010 was that tech was set for major consolidation.