[PATCH 05/13] idiag: deprecate netlink message type defines in idiagnl.h
Thomas Haller
thaller at redhat.com
Mon Nov 24 08:14:49 PST 2014
Signed-off-by: Thomas Haller <thaller at redhat.com>
---
include/netlink/idiag/idiagnl.h | 3 +++
lib/idiag/idiag_msg_obj.c | 4 ++--
2 files changed, 5 insertions(+), 2 deletions(-)
diff --git a/include/netlink/idiag/idiagnl.h b/include/netlink/idiag/idiagnl.h
index 58fe82e..9f3345a 100644
--- a/include/netlink/idiag/idiagnl.h
+++ b/include/netlink/idiag/idiagnl.h
@@ -21,6 +21,9 @@ extern "C" {
/**
* Inet Diag message types
+ *
+ * deprecated: use TCPDIAG_GETSOCK, DCCPDIAG_GETSOCK and
+ * INET_DIAG_GETSOCK_MAX from linux/inet_diag.h
*/
#define IDIAG_TCPDIAG_GETSOCK 18
#define IDIAG_DCCPDIAG_GETSOCK 19
diff --git a/lib/idiag/idiag_msg_obj.c b/lib/idiag/idiag_msg_obj.c
index 321d83e..00c0562 100644
--- a/lib/idiag/idiag_msg_obj.c
+++ b/lib/idiag/idiag_msg_obj.c
@@ -71,8 +71,8 @@ static struct nl_cache_ops idiagnl_msg_ops = {
.co_name = "idiag/idiag",
.co_hdrsize = sizeof(struct inet_diag_msg),
.co_msgtypes = {
- { IDIAG_TCPDIAG_GETSOCK, NL_ACT_NEW, "new" },
- { IDIAG_DCCPDIAG_GETSOCK, NL_ACT_NEW, "new" },
+ { TCPDIAG_GETSOCK, NL_ACT_NEW, "new" },
+ { DCCPDIAG_GETSOCK, NL_ACT_NEW, "new" },
END_OF_MSGTYPES_LIST,
},
.co_protocol = NETLINK_INET_DIAG,
--
1.9.3
More information about the libnl
mailing list