[CRIU] [PATCH 4/9] crtools: add constants for a netlink image

Andrey Vagin avagin at openvz.org
Thu Mar 14 09:24:08 EDT 2013


Signed-off-by: Andrey Vagin <avagin at openvz.org>
---
 image.c           | 1 +
 include/crtools.h | 1 +
 include/magic.h   | 1 +
 3 files changed, 3 insertions(+)

diff --git a/image.c b/image.c
index b5b5cd7..ef57cb2 100644
--- a/image.c
+++ b/image.c
@@ -132,6 +132,7 @@ struct cr_fd_desc_tmpl fdset_template[CR_FD_MAX] = {
 	FD_ENTRY(UNIXSK,	"unixsk",	 show_unixsk),
 	FD_ENTRY(INETSK,	"inetsk",	 show_inetsk),
 	FD_ENTRY(PACKETSK,	"packetsk",	 show_packetsk),
+	FD_ENTRY(NETLINKSK,	"netlinksk",	 show_netlinksk),
 	FD_ENTRY(SK_QUEUES,	"sk-queues",	 show_sk_queues),
 	FD_ENTRY(ITIMERS,	"itimers-%d",	 show_itimers),
 	FD_ENTRY(CREDS,		"creds-%d",	 show_creds),
diff --git a/include/crtools.h b/include/crtools.h
index 06312ca..c1f37ef 100644
--- a/include/crtools.h
+++ b/include/crtools.h
@@ -63,6 +63,7 @@ enum {
 	CR_FD_INETSK,
 	CR_FD_UNIXSK,
 	CR_FD_PACKETSK,
+	CR_FD_NETLINKSK,
 	CR_FD_PIPES,
 	CR_FD_PIPES_DATA,
 	CR_FD_FIFO,
diff --git a/include/magic.h b/include/magic.h
index 795bd72..182ddda 100644
--- a/include/magic.h
+++ b/include/magic.h
@@ -65,6 +65,7 @@
 #define FANOTIFY_MARK_MAGIC	0x56506035 /* Yekaterinburg */
 #define SIGNAL_MAGIC		0x59255647 /* Berezniki */
 #define PSIGNAL_MAGIC		SIGNAL_MAGIC
+#define NETLINKSK_MAGIC		0x58005614 /* Perm */
 
 #define IFADDR_MAGIC		RAW_IMAGE_MAGIC
 #define ROUTE_MAGIC		RAW_IMAGE_MAGIC
-- 
1.7.11.7



More information about the CRIU mailing list