kern/80008: Unnecessary requirement of sa_len in getnameinfo()

David Schultz das at FreeBSD.ORG
Sat Apr 16 19:53:29 PDT 2005


On Sat, Apr 16, 2005, Xin LI wrote:
> Synopsis: Unnecessary requirement of sa_len in getnameinfo()
> 
> State-Changed-From-To: open->analyzed
> State-Changed-By: delphij
> State-Changed-When: Sat Apr 16 16:33:02 GMT 2005
> State-Changed-Why: 
> Dear freebsd-standards,
> 
> Would you please review the following patch?  I have consulted with POSIX
> standard and there is no requirement that there must be a "sa_len" field
> in sockaddr.  Therefore, I think the check should be either removed, or
> be replaced with an assignment.

Yeah, sa_len has always been a portability problem.  Your proposed
change looks fine to me.


More information about the freebsd-standards mailing list