1
Fork 0
mirror of https://git.savannah.gnu.org/git/guile.git synced 2025-04-30 03:40:34 +02:00

Define IN6ADDR_ANY and IN6ADDR_LOOPBACK.

* libguile/socket.c (scm_init_socket): Define IN6ADDR_ANY and IN6ADDR_LOOPBACK.
* doc/ref/posix.texi (Network Address Conversion): Document them.
This commit is contained in:
Ludovic Courtès 2022-07-04 11:39:14 +02:00
parent baa1424335
commit 6da4be170a
2 changed files with 18 additions and 1 deletions

View file

@ -1656,6 +1656,7 @@ scm_init_socket ()
/* standard addresses. */
#ifdef INADDR_ANY
scm_c_define ("INADDR_ANY", scm_from_ulong (INADDR_ANY));
scm_c_define ("IN6ADDR_ANY", scm_from_ulong (0));
#endif
#ifdef INADDR_BROADCAST
scm_c_define ("INADDR_BROADCAST", scm_from_ulong (INADDR_BROADCAST));
@ -1665,6 +1666,7 @@ scm_init_socket ()
#endif
#ifdef INADDR_LOOPBACK
scm_c_define ("INADDR_LOOPBACK", scm_from_ulong (INADDR_LOOPBACK));
scm_c_define ("IN6ADDR_LOOPBACK", scm_from_ulong (1));
#endif
/* socket types.