Inet6optionspace, Inet6_option_space – Comtrol eCos User Manual

Page 537

Advertising
background image

Chapter 38. TCP/IP Library Reference

::FFFF:129.144.52.38

DIAGNOSTICS

The constant INADDR_NONE is returned by inet_addr() and inet_network()

for malformed requests.

SEE ALSO

byteorder(3), gethostbyname(3), getnetent(3), inet_net(3), hosts(5),

networks(5)

STANDARDS

The inet_ntop and inet_pton functions conforms to the IETF IPv6 BSD API

and address formatting specifications.

Note that inet_pton does not

accept 1-, 2-, or 3-part dotted addresses; all four parts must be speci-

fied.

This is a narrower input set than that accepted by inet_aton.

HISTORY

The inet_addr, inet_network, inet_makeaddr, inet_lnaof and inet_netof

functions appeared in 4.2BSD.

The inet_aton and inet_ntoa functions

appeared in 4.3BSD.

The inet_pton and inet_ntop functions appeared in

BIND 4.9.4.

BUGS

The value INADDR_NONE (0xffffffff) is a valid broadcast address, but

inet_addr() cannot return that value without indicating failure.

Also,

inet_addr() should have been designed to return a struct in_addr.

The

newer inet_aton() function does not share these problems, and almost all

existing code should be modified to use inet_aton() instead.

The problem of host byte ordering versus network byte ordering is confus-

ing.

The string returned by inet_ntoa() resides in a static memory area.

BSD

June 18, 1997

BSD

inet6_option_space

INET6_OPTION_SPACE(3)

System Library Functions Manual

INET6_OPTION_SPACE(3)

NAME

inet6_option_space, inet6_option_init, inet6_option_append,

inet6_option_alloc, inet6_option_next, inet6_option_find - IPv6 Hop-by-

Hop and Destination Options manipulation

SYNOPSIS

#include

<

netinet/in.h>

int

inet6_option_space(int nbytes);

int

433

Advertising