summaryrefslogtreecommitdiffstats
path: root/lisplib.c
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2016-02-29 20:54:34 -0800
committerKaz Kylheku <kaz@kylheku.com>2016-02-29 20:54:34 -0800
commit26a58a0d7fc48b9e609808593c830d74b15750b5 (patch)
tree9102f9c0b0175da784e62ee8cdadb56b7cf906a6 /lisplib.c
parentd50725ab1a9055fd3f0c83c90c9fb71bfd16c205 (diff)
downloadtxr-26a58a0d7fc48b9e609808593c830d74b15750b5.tar.gz
txr-26a58a0d7fc48b9e609808593c830d74b15750b5.tar.bz2
txr-26a58a0d7fc48b9e609808593c830d74b15750b5.zip
Functions for address prefixes to slash notation.
* lisplib.c (sock_set_entries): Autload entries for str-inaddr-net and str-in6addr-net. * share/txr/stdlib/socket.tl (str-inaddr-net, str-in6addr-net): New functions. * txr.1: Documented str-inaddr, str-in6-addr, str-inaddr-net and str-in6addr-net.
Diffstat (limited to 'lisplib.c')
-rw-r--r--lisplib.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/lisplib.c b/lisplib.c
index d0cf7a2a..9ac7e3a7 100644
--- a/lisplib.c
+++ b/lisplib.c
@@ -291,6 +291,7 @@ static val sock_set_entries(val dlt, val fun)
lit("ai-v4mapped"), lit("ai-all"), lit("ai-addrconfig"),
lit("ai-numericserv"),
lit("str-inaddr"), lit("str-in6addr"),
+ lit("str-inaddr-net"), lit("str-in6addr-net"),
nil
};
set_dlt_entries(dlt, name, fun);