Linux中/etc/services文件中为什么一个端口会对应tcp和udp两种协议?

新手上路,请多包涵

比如:
http 80/tcp www # WorldWideWeb HTTP
http 80/udp # HyperText Transfer Protocol

阅读 2.8k
1 个回答

请看这个文件刚开头的注释部分:

# Network services, Internet style
#
# Note that it is presently the policy of IANA to assign a single well-known
# port number for both TCP and UDP; hence, officially ports have two entries
# even if the protocol doesn't support UDP operations.
撰写回答
你尚未登录,登录后可以
  • 和开发者交流问题的细节
  • 关注并接收问题和回答的更新提醒
  • 参与内容的编辑和改进,让解决方法与时俱进
推荐问题