chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
rtnl: message - initialize all memory
[elogind.git]
/
src
/
libsystemd-rtnl
/
rtnl-internal.h
diff --git
a/src/libsystemd-rtnl/rtnl-internal.h
b/src/libsystemd-rtnl/rtnl-internal.h
index f9c08e1a9ad68fd595df573834084bb75bffb0bb..b05290fd89ee7ad5ab9a69c08c01e5eb62402b8d 100644
(file)
--- a/
src/libsystemd-rtnl/rtnl-internal.h
+++ b/
src/libsystemd-rtnl/rtnl-internal.h
@@
-1,5
+1,7
@@
/*-*- Mode: C; c-basic-offset: 8; indent-tabs-mode: nil -*-*/
/*-*- Mode: C; c-basic-offset: 8; indent-tabs-mode: nil -*-*/
+#pragma once
+
/***
This file is part of systemd.
/***
This file is part of systemd.
@@
-19,6
+21,8
@@
along with systemd; If not, see <http://www.gnu.org/licenses/>.
***/
along with systemd; If not, see <http://www.gnu.org/licenses/>.
***/
+#include <linux/netlink.h>
+
#include "refcnt.h"
struct sd_rtnl {
#include "refcnt.h"
struct sd_rtnl {
@@
-31,7
+35,9
@@
struct sd_rtnl {
struct sockaddr_nl nl;
} sockaddr;
struct sockaddr_nl nl;
} sockaddr;
- unsigned serial;
+ uint32_t serial;
+
+ pid_t original_pid;
};
#define RTNL_DEFAULT_TIMEOUT ((usec_t) (10 * USEC_PER_SEC))
};
#define RTNL_DEFAULT_TIMEOUT ((usec_t) (10 * USEC_PER_SEC))