RE: getnameinfo and various protocol types
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: getnameinfo and various protocol types



We should do this as addendum to 3493 for sure.
/jim

> -----Original Message-----
> From: ipv6-admin@ietf.org [mailto:ipv6-admin@ietf.org] On 
> Behalf Of itojun@iijlab.net
> Sent: Thursday, December 11, 2003 3:44 AM
> To: ipv6@ietf.org
> Subject: getnameinfo and various protocol types
> 
> 
> 	getnameinfo(3) specification assumes that there are 
> only two transport
> 	protocols - tcp and udp.  when performing service name lookup
> 	it would use "tcp" if NI_DGRAM is not specified, and "udp" when
> 	NI_DGRAM is specified.
> 
> 	now we have couple of new transport protocols coming, 
> such as SCTP and
> 	DCCP.  how can we support service name lookup for those?  i.e.
> 	how can we tell getnameinfo(3) to use "sctp" or "dccp" 
> for the 2nd
> 	argument of getservbyport(3)?
> 
> 	my proposal:
> 	define NI_UDP as replacement of NI_DGRAM.  deprecate 
> NI_DGRAM (keep
> 	it as an alias to NI_UDP is okay).  define NI_SCTP, 
> NI_DCCP and such.
> 	these three are mutually exclusive, and if more than 
> one is specified
> 	it would cause EAI_FAIL.
> 
> itojun
> 
> --------------------------------------------------------------------
> IETF IPv6 working group mailing list
> ipv6@ietf.org
> Administrative Requests: https://www1.ietf.org/mailman/listinfo/ipv6
> --------------------------------------------------------------------
> 

--------------------------------------------------------------------
IETF IPv6 working group mailing list
ipv6@ietf.org
Administrative Requests: https://www1.ietf.org/mailman/listinfo/ipv6
--------------------------------------------------------------------




Note: Messages sent to this list are the opinions of the senders and do not imply endorsement by the IETF.