chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
execute: check tcpwrap for sockets passed via new-style socket passing as well.
[elogind.git]
/
src
/
util.c
diff --git
a/src/util.c
b/src/util.c
index 11ab074569ec422f5ecf9581ba94785e83c4a7e0..b66eb466b6cc79a8006b44c690eea95f56ca5da4 100644
(file)
--- a/
src/util.c
+++ b/
src/util.c
@@
-46,6
+46,7
@@
#include <sys/prctl.h>
#include <sys/utsname.h>
#include <pwd.h>
#include <sys/prctl.h>
#include <sys/utsname.h>
#include <pwd.h>
+#include <netinet/ip.h>
#include "macro.h"
#include "util.h"
#include "macro.h"
#include "util.h"
@@
-75,7
+76,7
@@
usec_t now(clockid_t clock_id) {
return timespec_load(&ts);
}
return timespec_load(&ts);
}
-
timestamp* timestamp_get(
timestamp *ts) {
+
dual_timestamp* dual_timestamp_get(dual_
timestamp *ts) {
assert(ts);
ts->realtime = now(CLOCK_REALTIME);
assert(ts);
ts->realtime = now(CLOCK_REALTIME);
@@
-2625,3
+2626,12
@@
static const char* const rlimit_table[] = {
};
DEFINE_STRING_TABLE_LOOKUP(rlimit, int);
};
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);