Commit aeb3f547 authored by Pavel Emelyanov's avatar Pavel Emelyanov

net: Move NETLINK_INET_DIAG from socket.c to net.c

Signed-off-by: 's avatarPavel Emelyanov <xemul@parallels.com>
parent 8bd3b7a9
...@@ -24,6 +24,10 @@ ...@@ -24,6 +24,10 @@
#include "protobuf.h" #include "protobuf.h"
#include "protobuf/netdev.pb-c.h" #include "protobuf/netdev.pb-c.h"
#ifndef NETLINK_SOCK_DIAG
#define NETLINK_SOCK_DIAG NETLINK_INET_DIAG
#endif
static int ns_fd = -1; static int ns_fd = -1;
static int ns_sysfs_fd = -1; static int ns_sysfs_fd = -1;
......
...@@ -21,10 +21,6 @@ ...@@ -21,10 +21,6 @@
#include "net.h" #include "net.h"
#include "fs-magic.h" #include "fs-magic.h"
#ifndef NETLINK_SOCK_DIAG
#define NETLINK_SOCK_DIAG NETLINK_INET_DIAG
#endif
#ifndef SOCK_DIAG_BY_FAMILY #ifndef SOCK_DIAG_BY_FAMILY
#define SOCK_DIAG_BY_FAMILY 20 #define SOCK_DIAG_BY_FAMILY 20
#endif #endif
......
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