5 /* wildcard_inet_addr 3
7 /* expand wild-card address
9 /* #include <wildcard_inet_addr.h>
11 /* INET_ADDR_LIST *wildcard_inet_addr(void)
13 /* wildcard_inet_addr() determines all wild-card addresses
14 /* for all supported address families.
16 /* Fatal errors: out of memory.
18 /* inet_addr_list(3) address list management
22 /* The Secure Mailer license must be distributed with this software.
25 /* IBM T.J. Watson Research
27 /* Yorktown Heights, NY 10598, USA
31 /* Eindhoven University of Technology
33 /* 5600 MB Eindhoven, Netherlands
34 /* E-mail: <dean@ipnet6.org>
41 /* Utility library. */
44 #include <inet_addr_list.h>
45 #include <inet_addr_host.h>
49 #include <wildcard_inet_addr.h>
51 /* Application-specific. */
53 static INET_ADDR_LIST wild_addr_list
;
55 static void wildcard_inet_addr_init(INET_ADDR_LIST
*addr_list
)
57 inet_addr_list_init(addr_list
);
58 if (inet_addr_host(addr_list
, "") == 0)
59 msg_fatal("could not get list of wildcard addresses");
62 /* wildcard_inet_addr_list - return list of addresses */
64 INET_ADDR_LIST
*wildcard_inet_addr_list(void)
66 if (wild_addr_list
.used
== 0)
67 wildcard_inet_addr_init(&wild_addr_list
);
69 return (&wild_addr_list
);