Eddie Kohler wrote:
<snip>
SC=0 allows Unix-like implementations to associate a valid Service
Code with every socket, without changing the procedure used for
opening sockets (i.e., without adding extra setsockopt calls or adding
members to struct sockaddr). Linux for a time used SC=0 this way; it
may still do. Linux could use a Private Use service code, such as
SC=?LNX, to get the same effect; an explicit service code for "no
information about the application" seems cleaner.
>
I am happy for the draft to say "SHOULD NOT use SC=0".
>
OK, I'm suggesting:
"A Service Code of zero is "permanently reserved (it represents the
absence of a meaningful Service Code)" [RFC 4340]. This indicates that
no application information was provided. RFC 4340 stated that
applications MAY be associated with this Service Code in the same way as
other Service Code values. This use is permitted for any server port.
This document updates section 19.8 of RFC 4340:
"Applications SHOULD NOT use a Service Code of zero.
Application writers that need a temporary Service Code value SHOULD
choose a value from the private range (Section 2.3).
If the application requires a new Service Code, one may either be chosen
a value from the private range (Section 2.3), or a new Service Code may
be requested from the IANA."