diff options
author | mike <mike@FreeBSD.org> | 2001-12-01 03:43:01 +0000 |
---|---|---|
committer | mike <mike@FreeBSD.org> | 2001-12-01 03:43:01 +0000 |
commit | 20cacce16c233112fc71cb819fa0db765acba715 (patch) | |
tree | e691b950e4d1dd3407416b2bd0eed4f0f8ca57e5 /sys/netinet/in.h | |
parent | 0d72b82e2e3d36c1011b9e4d84e5d4fe35279c05 (diff) | |
download | FreeBSD-src-20cacce16c233112fc71cb819fa0db765acba715.zip FreeBSD-src-20cacce16c233112fc71cb819fa0db765acba715.tar.gz |
o Stop abusing MD headers with non-MD types.
o Hide nonstandard functions and types in <netinet/in.h> when
_POSIX_SOURCE is defined.
o Add some missing types (required by POSIX.1-200x) to <netinet/in.h>.
o Restore vendor ID from Rev 1.1 in <netinet/in.h> and make use of new
__FBSDID() macro.
o Fix some miscellaneous issues in <arpa/inet.h>.
o Correct final argument for the inet_ntop() function (POSIX.1-200x).
o Get rid of the namespace pollution from <sys/types.h> in
<arpa/inet.h>.
Reviewed by: fenner
Partially submitted by: bde
Diffstat (limited to 'sys/netinet/in.h')
-rw-r--r-- | sys/netinet/in.h | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/sys/netinet/in.h b/sys/netinet/in.h index 9ea89cd..cf72e57 100644 --- a/sys/netinet/in.h +++ b/sys/netinet/in.h @@ -228,12 +228,27 @@ */ #define IPPORT_RESERVEDSTART 600 +#define IPPORT_MAX 65535 + +#ifndef _IN_ADDR_T_DECLARED_ +typedef __uint32_t in_addr_t; +#define _IN_ADDR_T_DECLARED_ +#endif + +#ifndef _IN_PORT_T_DECLARED_ +typedef __uint16_t in_port_t; +#define _IN_PORT_T_DECLARED_ +#endif + /* * Internet address (a structure for historical reasons) */ +#ifndef _STRUCT_IN_ADDR_DECLARED struct in_addr { in_addr_t s_addr; }; +#define _STRUCT_IN_ADDR_DECLARED +#endif /* * Definitions of bits in internet address integers. |