summaryrefslogtreecommitdiff
path: root/src/util.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2010-07-01 00:29:17 +0200
committerLennart Poettering <lennart@poettering.net>2010-07-01 00:29:17 +0200
commit4fd5948e74b776b6d68ba55f558da5f354179e52 (patch)
tree0bb54d1f5ac17f1de19e71357bd39e595732190c /src/util.c
parent6398320759ce4ed84922bb28f715d3c6c66166c4 (diff)
socket: make various socket/pipe options configurable
Diffstat (limited to 'src/util.c')
-rw-r--r--src/util.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/util.c b/src/util.c
index 41d8e7f999..b66eb466b6 100644
--- a/src/util.c
+++ b/src/util.c
@@ -46,6 +46,7 @@
#include <sys/prctl.h>
#include <sys/utsname.h>
#include <pwd.h>
+#include <netinet/ip.h>
#include "macro.h"
#include "util.h"
@@ -2625,3 +2626,12 @@ static const char* const rlimit_table[] = {
};
DEFINE_STRING_TABLE_LOOKUP(rlimit, int);
+
+static const char* const ip_tos_table[] = {
+ [IPTOS_LOWDELAY] = "low-delay",
+ [IPTOS_THROUGHPUT] = "throughput",
+ [IPTOS_RELIABILITY] = "reliability",
+ [IPTOS_LOWCOST] = "low-cost",
+};
+
+DEFINE_STRING_TABLE_LOOKUP(ip_tos, int);