Defect report from : Alexey , Neyman
(Please direct followup comments direct to yyyyyyyyyyyyyy@xxxxxxxxxxxxx)
@ page 279 line 9952 section Headers - netinet/in.h editorial {111111}
Problem:
Defect code : 1. Error
The description of the sockaddr_in structure has the following wording:
The <netinet/in.h> header shall define the sockaddr_in structure that includes
at least the following members (all in network byte order):
sa_family_t sin_family AF_INET
in_port_t sin_port Port number
struct in_addr sin_addr IP address
This statement is unclear whether sin_family member should also be
converted to network byte order, that is, does one have to write
something like "xx.sin_family = htons(AF_INET);". If it doesn't, this
violates the statement "all members are in network byte order". If it does,
then 1) the size of sa_family_t is not specified, thus it is unclear whether
one should use htons(), htonl() or nothing 2) for systems with sa_family_t
occupying more than 1 byte, it will break
existing applications.
Action:
Change the wording in the phrase above to be more specific of the sin_family
usage.
|