Commit 1eb24a0a authored by Andrey Vagin's avatar Andrey Vagin Committed by Pavel Emelyanov

crtools: add a function for showing netlink sockets

Signed-off-by: 's avatarAndrey Vagin <avagin@openvz.org>
Signed-off-by: 's avatarPavel Emelyanov <xemul@parallels.com>
parent 149a5a5e
...@@ -19,6 +19,7 @@ obj-y += sk-inet.o ...@@ -19,6 +19,7 @@ obj-y += sk-inet.o
obj-y += sk-tcp.o obj-y += sk-tcp.o
obj-y += sk-unix.o obj-y += sk-unix.o
obj-y += sk-packet.o obj-y += sk-packet.o
obj-y += sk-netlink.o
obj-y += sk-queue.o obj-y += sk-queue.o
obj-y += files.o obj-y += files.o
obj-y += files-reg.o obj-y += files-reg.o
......
...@@ -42,6 +42,7 @@ extern int resolve_unix_peers(void); ...@@ -42,6 +42,7 @@ extern int resolve_unix_peers(void);
extern void show_unixsk(int fd, struct cr_options *o); extern void show_unixsk(int fd, struct cr_options *o);
extern void show_inetsk(int fd, struct cr_options *o); extern void show_inetsk(int fd, struct cr_options *o);
extern void show_sk_queues(int fd, struct cr_options *o); extern void show_sk_queues(int fd, struct cr_options *o);
extern void show_netlinksk(int fd, struct cr_options *o);
extern char *skfamily2s(u32 f); extern char *skfamily2s(u32 f);
extern char *sktype2s(u32 t); extern char *sktype2s(u32 t);
......
#include <unistd.h>
#include "crtools.h"
#include "protobuf.h"
#include "protobuf/sk-netlink.pb-c.h"
void show_netlinksk(int fd, struct cr_options *o)
{
pb_show_plain(fd, PB_NETLINKSK);
}
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