Commit 2b49efea authored by Pavel Tikhomirov's avatar Pavel Tikhomirov Committed by Pavel Emelyanov

add netns protobuf entry and image, also add conf to net device entry

Signed-off-by: 's avatarPavel Tikhomirov <ptikhomirov@parallels.com>
Signed-off-by: 's avatarPavel Emelyanov <xemul@parallels.com>
parent 15bd7ce2
...@@ -324,6 +324,7 @@ static struct show_image_info show_infos[] = { ...@@ -324,6 +324,7 @@ static struct show_image_info show_infos[] = {
SHOW_PLAIN(IRMAP_CACHE), SHOW_PLAIN(IRMAP_CACHE),
SHOW_PLAIN(CPUINFO), SHOW_PLAIN(CPUINFO),
SHOW_PLAIN(USERNS), SHOW_PLAIN(USERNS),
SHOW_PLAIN(NETNS),
{ FILE_LOCKS_MAGIC, PB_FILE_LOCK, false, NULL, "3:%u", }, { FILE_LOCKS_MAGIC, PB_FILE_LOCK, false, NULL, "3:%u", },
{ TCP_STREAM_MAGIC, PB_TCP_STREAM, true, show_tcp_stream, "1:%u 2:%u 3:%u 4:%u 12:%u", }, { TCP_STREAM_MAGIC, PB_TCP_STREAM, true, show_tcp_stream, "1:%u 2:%u 3:%u 4:%u 12:%u", },
......
...@@ -70,6 +70,7 @@ struct cr_fd_desc_tmpl imgset_template[CR_FD_MAX] = { ...@@ -70,6 +70,7 @@ struct cr_fd_desc_tmpl imgset_template[CR_FD_MAX] = {
FD_ENTRY(TCP_STREAM, "tcp-stream-%x"), FD_ENTRY(TCP_STREAM, "tcp-stream-%x"),
FD_ENTRY(MNTS, "mountpoints-%d"), FD_ENTRY(MNTS, "mountpoints-%d"),
FD_ENTRY(NETDEV, "netdev-%d"), FD_ENTRY(NETDEV, "netdev-%d"),
FD_ENTRY(NETNS, "netns-%d"),
FD_ENTRY_F(IFADDR, "ifaddr-%d", O_NOBUF), FD_ENTRY_F(IFADDR, "ifaddr-%d", O_NOBUF),
FD_ENTRY_F(ROUTE, "route-%d", O_NOBUF), FD_ENTRY_F(ROUTE, "route-%d", O_NOBUF),
FD_ENTRY_F(IPTABLES, "iptables-%d", O_NOBUF), FD_ENTRY_F(IPTABLES, "iptables-%d", O_NOBUF),
......
...@@ -40,6 +40,7 @@ enum { ...@@ -40,6 +40,7 @@ enum {
CR_FD_IFADDR, CR_FD_IFADDR,
CR_FD_ROUTE, CR_FD_ROUTE,
CR_FD_IPTABLES, CR_FD_IPTABLES,
CR_FD_NETNS,
_CR_FD_NETNS_TO, _CR_FD_NETNS_TO,
CR_FD_PSTREE, CR_FD_PSTREE,
......
...@@ -61,6 +61,7 @@ ...@@ -61,6 +61,7 @@
#define INOTIFY_WD_MAGIC 0x54562009 /* Svetlogorsk (Rauschen) */ #define INOTIFY_WD_MAGIC 0x54562009 /* Svetlogorsk (Rauschen) */
#define MNTS_MAGIC 0x55563928 /* Petushki */ #define MNTS_MAGIC 0x55563928 /* Petushki */
#define NETDEV_MAGIC 0x57373951 /* Yaroslavl */ #define NETDEV_MAGIC 0x57373951 /* Yaroslavl */
#define NETNS_MAGIC 0x55933752 /* Dolgoprudny */
#define TTY_FILES_MAGIC 0x59433025 /* Pushkin */ #define TTY_FILES_MAGIC 0x59433025 /* Pushkin */
#define TTY_INFO_MAGIC 0x59453036 /* Kolpino */ #define TTY_INFO_MAGIC 0x59453036 /* Kolpino */
#define FILE_LOCKS_MAGIC 0x54323616 /* Kaluga */ #define FILE_LOCKS_MAGIC 0x54323616 /* Kaluga */
......
...@@ -54,13 +54,14 @@ enum { ...@@ -54,13 +54,14 @@ enum {
PB_TIMERFD, PB_TIMERFD,
PB_CPUINFO, PB_CPUINFO,
PB_USERNS, PB_USERNS,
PB_NETNS,
/* PB_AUTOGEN_STOP */ /* PB_AUTOGEN_STOP */
PB_PAGEMAP_HEAD, PB_PAGEMAP_HEAD,
PB_IDS, PB_IDS, /* 50 */
PB_SIGACT, PB_SIGACT,
PB_NETDEV, /* 50 */ PB_NETDEV,
PB_REMAP_FPATH, PB_REMAP_FPATH,
PB_SK_QUEUES, PB_SK_QUEUES,
PB_IPCNS_MSG, PB_IPCNS_MSG,
......
...@@ -24,4 +24,11 @@ message net_device_entry { ...@@ -24,4 +24,11 @@ message net_device_entry {
optional tun_link_entry tun = 6; optional tun_link_entry tun = 6;
optional bytes address = 7; optional bytes address = 7;
repeated int32 conf = 8;
}
message netns_entry {
repeated int32 def_conf = 1;
repeated int32 all_conf = 2;
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment