diff options
author | Thomas Haller <thaller@redhat.com> | 2014-11-24 16:14:49 (GMT) |
---|---|---|
committer | Thomas Haller <thaller@redhat.com> | 2014-11-24 17:30:21 (GMT) |
commit | 3b5226e3a2c4dc53c0932b7a65196345ffe5245a (patch) | |
tree | 7798645283915f161a6ee1c9fc49e461c1246f68 | |
parent | 22eb2569a595be98ae09fc4192860c1d2c3aa54c (diff) | |
download | libnl-3b5226e3a2c4dc53c0932b7a65196345ffe5245a.zip libnl-3b5226e3a2c4dc53c0932b7a65196345ffe5245a.tar.gz libnl-3b5226e3a2c4dc53c0932b7a65196345ffe5245a.tar.bz2 |
idiag: deprecate netlink message type defines in idiagnl.h
Acked-by: Thomas Graf <tgraf@suug.ch>
Signed-off-by: Thomas Haller <thaller@redhat.com>
-rw-r--r-- | include/netlink/idiag/idiagnl.h | 3 | ||||
-rw-r--r-- | 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, |