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