diff options
author | Ralf Corsepius <ralf.corsepius@rtems.org> | 2009-01-03 08:01:24 +0000 |
---|---|---|
committer | Ralf Corsepius <ralf.corsepius@rtems.org> | 2009-01-03 08:01:24 +0000 |
commit | af20d0e1a59abd5052193f557c66c8b55b8bba19 (patch) | |
tree | 457b1975f20d766977600d83fbce060192bc26aa /cpukit/libnetworking | |
parent | Remove struct ip_opts (unused). (diff) | |
download | rtems-af20d0e1a59abd5052193f557c66c8b55b8bba19.tar.bz2 |
Add in_addr_t.
Re-base "struct in_addr" on in_addr_t (mandated by POSIX).
Diffstat (limited to 'cpukit/libnetworking')
-rw-r--r-- | cpukit/libnetworking/netinet/in.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/cpukit/libnetworking/netinet/in.h b/cpukit/libnetworking/netinet/in.h index d5aea3273f..e6fa09be8f 100644 --- a/cpukit/libnetworking/netinet/in.h +++ b/cpukit/libnetworking/netinet/in.h @@ -40,6 +40,11 @@ #include <rtems/bsdnet/_types.h> #include <rtems/endian.h> +#ifndef _IN_ADDR_T_DECLARED +typedef uint32_t in_addr_t; +#define _IN_ADDR_T_DECLARED +#endif + /* Protocols common to RFC 1700, POSIX, and X/Open. */ #define IPPROTO_IP 0 /* dummy for IP */ #define IPPROTO_ICMP 1 /* control message protocol */ @@ -62,7 +67,7 @@ typedef __sa_family_t sa_family_t; /* Internet address (a structure for historical reasons). */ #ifndef _STRUCT_IN_ADDR_DECLARED struct in_addr { - u_long s_addr; + in_addr_t s_addr; }; #define _STRUCT_IN_ADDR_DECLARED #endif |