|
RTEMS
5.1
|
35 #if !defined(_NETINET_IN_H_) || !defined(_KERNEL) 36 #error "must be included via <netinet/in.h> in kernel space" 39 struct ifnet;
struct mbuf;
42 int in_broadcast(
struct in_addr,
struct ifnet *);
43 int in_ifaddr_broadcast(
struct in_addr,
struct in_ifaddr *);
44 int in_canforward(
struct in_addr);
45 int in_localaddr(
struct in_addr);
46 int in_localip(
struct in_addr);
47 int in_ifhasaddr(
struct ifnet *,
struct in_addr);
48 int inet_aton(
const char *,
struct in_addr *);
49 char *inet_ntoa_r(
struct in_addr ina,
char *buf);
50 char *inet_ntop(
int,
const void *,
char *, socklen_t);
51 int inet_pton(
int af,
const char *,
void *);
52 void in_ifdetach(
struct ifnet *);
54 #define in_hosteq(s, t) ((s).s_addr == (t).s_addr) 55 #define in_nullhost(x) ((x).s_addr == INADDR_ANY) 56 #define in_allhosts(x) ((x).s_addr == htonl(INADDR_ALLHOSTS_GROUP)) 58 #define satosin(sa) ((struct sockaddr_in *)(sa)) 59 #define sintosa(sin) ((struct sockaddr *)(sin)) 60 #define ifatoia(ifa) ((struct in_ifaddr *)(ifa))