summaryrefslogtreecommitdiffstats
path: root/src/basic/af-list.h
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2021-05-10 17:14:13 +0200
committerLennart Poettering <lennart@poettering.net>2021-05-11 15:37:31 +0200
commit23118193d23438f9fdb4dd31c9acc5d6bfcc393c (patch)
tree1088c7c9804c186cc2cc1cd8004ec2e9758caa4b /src/basic/af-list.h
parentsocket-bind: use lowercase "ipv4"/"ipv6" spelling (diff)
downloadsystemd-23118193d23438f9fdb4dd31c9acc5d6bfcc393c.tar.xz
systemd-23118193d23438f9fdb4dd31c9acc5d6bfcc393c.zip
af-list: add helpers mapping AF_INET/AF_INET6 to "ipv4"/"ipv6"
Diffstat (limited to 'src/basic/af-list.h')
-rw-r--r--src/basic/af-list.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/basic/af-list.h b/src/basic/af-list.h
index 688ac63df7..9592b9ed3c 100644
--- a/src/basic/af-list.h
+++ b/src/basic/af-list.h
@@ -22,4 +22,7 @@ static inline const char* af_to_name_short(int id) {
return f + 3;
}
+const char* af_to_ipv4_ipv6(int id);
+int af_from_ipv4_ipv6(const char *af);
+
int af_max(void);