[CRIU] [PATCH 3/8] crtools: add constants for a netlink image

Andrey Vagin avagin at openvz.org
Mon Mar 25 11:28:44 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 7a5e1d8..88e3f1e 100644
--- a/image.c
+++ b/image.c
@@ -134,6 +134,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 65eb154..b5fb69b 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 bcdf960..90a7c89 100644
--- a/include/magic.h
+++ b/include/magic.h
@@ -64,6 +64,7 @@
 #define RLIMIT_MAGIC		0x57113925 /* Rostov */
 #define FANOTIFY_MAGIC		0x55096122 /* Chelyabinsk */
 #define FANOTIFY_MARK_MAGIC	0x56506035 /* Yekaterinburg */
+#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