aboutsummaryrefslogtreecommitdiffstats
path: root/net/dccp
diff options
context:
space:
mode:
authorPavel Emelyanov <xemul@parallels.com>2011-12-06 03:05:24 -0500
committerDavid S. Miller <davem@davemloft.net>2011-12-06 13:58:01 -0500
commitf13c95f0e255e6d21762259875295cc212e6bc32 (patch)
treead60d56913b6be75b8735632af675a47f996c76d /net/dccp
parent37f352b5e3e89337f7a9a3a90250b5dde3c5f40d (diff)
inet_diag: Switch from _GETSOCK to IPPROTO_ numbers
Sorry, but the vger didn't let this message go to the list. Re-sending it with less spam-filter-prone subject. When dumping the AF_INET/AF_INET6 sockets user will also specify the protocol, so prepare the protocol diag handlers to work with IPPROTO_ constants. Signed-off-by: Pavel Emelyanov <xemul@parallels.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/dccp')
-rw-r--r--net/dccp/diag.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/net/dccp/diag.c b/net/dccp/diag.c
index d92ba7d1c351..424dcd8415d7 100644
--- a/net/dccp/diag.c
+++ b/net/dccp/diag.c
@@ -51,7 +51,7 @@ static void dccp_diag_get_info(struct sock *sk, struct inet_diag_msg *r,
51static const struct inet_diag_handler dccp_diag_handler = { 51static const struct inet_diag_handler dccp_diag_handler = {
52 .idiag_hashinfo = &dccp_hashinfo, 52 .idiag_hashinfo = &dccp_hashinfo,
53 .idiag_get_info = dccp_diag_get_info, 53 .idiag_get_info = dccp_diag_get_info,
54 .idiag_type = DCCPDIAG_GETSOCK, 54 .idiag_type = IPPROTO_DCCP,
55 .idiag_info_size = sizeof(struct tcp_info), 55 .idiag_info_size = sizeof(struct tcp_info),
56}; 56};
57 57
@@ -71,4 +71,4 @@ module_exit(dccp_diag_fini);
71MODULE_LICENSE("GPL"); 71MODULE_LICENSE("GPL");
72MODULE_AUTHOR("Arnaldo Carvalho de Melo <acme@mandriva.com>"); 72MODULE_AUTHOR("Arnaldo Carvalho de Melo <acme@mandriva.com>");
73MODULE_DESCRIPTION("DCCP inet_diag handler"); 73MODULE_DESCRIPTION("DCCP inet_diag handler");
74MODULE_ALIAS_NET_PF_PROTO_TYPE(PF_NETLINK, NETLINK_SOCK_DIAG, DCCPDIAG_GETSOCK); 74MODULE_ALIAS_NET_PF_PROTO_TYPE(PF_NETLINK, NETLINK_SOCK_DIAG, 33);