QUOTE:原帖由 art_codes 于 2009-2-11 17:51 发表

要是这么说的话,比如说qq本身用的是udp协议把,可是应该传送到17端口号(
http://net.chinaunix.net/8/2008/07/21/1225725.shtml)
可是事实不是这样吧qq程序会有自己的端口号呀……
着咋解释呀…………
这句说的没错。
不过
protocols文件中第二个字段是协议号,不是端口号。
man protocols
QUOTE: Each line is of the following format:
protocol number aliases ...
where the fields are delimited by spaces or tabs. Empty lines are ignored. If a line contains a hash mark (#), the hash mark and the part of the line following it are ignored.
The field descriptions are:
protocol
the native name for the protocol. For example ip, tcp, or udp.
number the official number for this protocol as it will appear within the ip header.
aliases
...