7b26e8c11e4bfa696ec84be187d220d7ccb29c60
[m6w6/ext-psi] / m4 / posix / netinet_in.m4
1 PSI_CHECK_NETINET_IN() {
2
3 PSI_TYPE(in_port_t, uint)
4 PSI_TYPE(in_addr_t, uint)
5
6 PSI_STRUCT(struct in_addr, [
7 in_addr_t s_addr]
8 )
9
10 PSI_STRUCT(struct sockaddr_in, [
11 sa_family_t sin_family,
12 in_port_t sin_port,
13 struct in_addr sin_addr]
14 )
15
16 PSI_STRUCT(struct in6_addr, [
17 uint8_t s6_addr@<:@16@:>@]
18 )
19 PSI_STRUCT(struct sockaddr_in6, [
20 sa_family_t sin6_family,
21 in_port_t sin6_port,
22 uint32_t sin6_flowinfo,
23 struct in6_addr sin6_addr,
24 uint32_t sin6_scope_id]
25 )
26
27 PSI_STRUCT(struct ipv6_mreq, [
28 struct in6_addr ipv6mr_multiaddr,
29 unsigned ipv6mr_interface]
30 )
31
32 PSI_CONST(IPPROTO_IP, int)
33 PSI_CONST(IPPROTO_IPV6, int)
34 PSI_CONST(IPPROTO_ICMP, int)
35 PSI_CONST(IPPROTO_RAW, int)
36 PSI_CONST(IPPROTO_TCP, int)
37 PSI_CONST(IPPROTO_UDP, int)
38
39 PSI_CONST(INADDR_ANY, int)
40 PSI_CONST(INADDR_BROADCAST, int)
41 PSI_CONST(INET6_ADDRSTRLEN, int)
42
43 PSI_CONST(IPV6_JOIN_GROUP, int)
44 PSI_CONST(IPV6_LEAVE_GROUP, int)
45 PSI_CONST(IPV6_MULTICAST_HOPS, int)
46 PSI_CONST(IPV6_MULTICAST_IF, int)
47 PSI_CONST(IPV6_MULTICAST_LOOP, int)
48 PSI_CONST(IPV6_UNICAST_HOPS, int)
49 PSI_CONST(IPV6_V6ONLY, int)
50
51 PSI_MACRO(int IN6_IS_ADDR_UNSPECIFIED, [(const struct in6_addr *a)])
52 PSI_MACRO(int IN6_IS_ADDR_LOOPBACK, [(const struct in6_addr *a)])
53 PSI_MACRO(int IN6_IS_ADDR_MULTICAST, [(const struct in6_addr *a)])
54 PSI_MACRO(int IN6_IS_ADDR_LINKLOCAL, [(const struct in6_addr *a)])
55 PSI_MACRO(int IN6_IS_ADDR_SITELOCAL, [(const struct in6_addr *a)])
56 PSI_MACRO(int IN6_IS_ADDR_V4MAPPED, [(const struct in6_addr *a)])
57 PSI_MACRO(int IN6_IS_ADDR_V4COMPAT, [(const struct in6_addr *a)])
58 PSI_MACRO(int IN6_IS_ADDR_MC_NODELOCAL, [(const struct in6_addr *a)])
59 PSI_MACRO(int IN6_IS_ADDR_MC_LINKLOCAL, [(const struct in6_addr *a)])
60 PSI_MACRO(int IN6_IS_ADDR_MC_SITELOCAL, [(const struct in6_addr *a)])
61 PSI_MACRO(int IN6_IS_ADDR_MC_ORGLOCAL, [(const struct in6_addr *a)])
62 PSI_MACRO(int IN6_IS_ADDR_MC_GLOBAL, [(const struct in6_addr *a)])
63
64 PSI_MACRO(struct in6_addr in6addr_loopback)
65 }