summaryrefslogtreecommitdiff
path: root/src/libsystemd-rtnl/rtnl-internal.h
diff options
context:
space:
mode:
authorTom Gundersen <teg@jklm.no>2013-10-29 16:35:37 +0100
committerTom Gundersen <teg@jklm.no>2013-10-29 16:37:30 +0100
commit98dd77e86e0cc339543cc8711ff908e6929f0636 (patch)
treebf17c71b1ec239b66cbe46f4f49466b326ca6b1f /src/libsystemd-rtnl/rtnl-internal.h
parentf1ac700248f231b7bdac2aafe8c35650efddb89f (diff)
rtnl: introduce default timeout
We set it to 10 secs (as we are only communicating with the kernel, it seems we should be able to bail out sooner than sd-bus, which uses 25). When passing timout 0, the default is used, use this in link-config.
Diffstat (limited to 'src/libsystemd-rtnl/rtnl-internal.h')
-rw-r--r--src/libsystemd-rtnl/rtnl-internal.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/libsystemd-rtnl/rtnl-internal.h b/src/libsystemd-rtnl/rtnl-internal.h
index 37b1d3d021..f9c08e1a9a 100644
--- a/src/libsystemd-rtnl/rtnl-internal.h
+++ b/src/libsystemd-rtnl/rtnl-internal.h
@@ -33,6 +33,9 @@ struct sd_rtnl {
unsigned serial;
};
+
+#define RTNL_DEFAULT_TIMEOUT ((usec_t) (10 * USEC_PER_SEC))
+
int message_get_errno(sd_rtnl_message *m);
int message_get_serial(sd_rtnl_message *m);
int message_seal(sd_rtnl *nl, sd_rtnl_message *m);