Previous: Port Constants, Up: Port Type



3.8.2 Port Operators

The only operations that can be applied to port values are relationals. You may compare them for equality, and also for ordering. For example,

          20/tcp < telnet

yields true because telnet is a predefined constant set to 23/tcp.

UDP ports are considered larger than TCP ports, i.e., “0/udp” is larger than “65535/tcp”.