Signed-off-by: Askar Safin <safinaskar@xxxxxxxxxxxx> --- man/man7/ip.7 | 2 +- man/man7/ipv6.7 | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/man/man7/ip.7 b/man/man7/ip.7 index 4fc9bde..8678979 100644 --- a/man/man7/ip.7 +++ b/man/man7/ip.7 @@ -198,7 +198,7 @@ The member of .I struct in_addr contains the host interface address in network byte order. -.I in_addr +.I s_addr should be assigned one of the .B INADDR_* values diff --git a/man/man7/ipv6.7 b/man/man7/ipv6.7 index d9241cc..e38658f 100644 --- a/man/man7/ipv6.7 +++ b/man/man7/ipv6.7 @@ -105,7 +105,7 @@ Only differences are described in this man page. .P To bind an .B AF_INET6 -socket to any process, the local address should be copied from the +socket to any interface, the address should be copied from the .I in6addr_any variable which has .I in6_addr @@ -138,14 +138,14 @@ its source address will be mapped to v6. .EX struct sockaddr_in6 { sa_family_t sin6_family; /* AF_INET6 */ - in_port_t sin6_port; /* port number */ + in_port_t sin6_port; /* port number in network byte order */ uint32_t sin6_flowinfo; /* IPv6 flow information */ struct in6_addr sin6_addr; /* IPv6 address */ uint32_t sin6_scope_id; /* Scope ID (new in Linux 2.4) */ }; \& struct in6_addr { - unsigned char s6_addr[16]; /* IPv6 address */ + unsigned char s6_addr[16]; /* IPv6 address in network byte order */ }; .EE .in @@ -154,14 +154,14 @@ struct in6_addr { is always set to .BR AF_INET6 ; .I sin6_port -is the protocol port (see +is the protocol port in network byte order (see .I sin_port in .BR ip (7)); .I sin6_flowinfo is the IPv6 flow identifier; .I sin6_addr -is the 128-bit IPv6 address. +is the 128-bit IPv6 address in network byte order. .I sin6_scope_id is an ID depending on the scope of the address. It is new in Linux 2.4. -- 2.43.0