diag.c (7f1fb60c4fc9fb29fbb406ac8c4cfb4e59e168d6) diag.c (f13c95f0e255e6d21762259875295cc212e6bc32)
1/*
2 * net/dccp/diag.c
3 *
4 * An implementation of the DCCP protocol
5 * Arnaldo Carvalho de Melo <acme@mandriva.com>
6 *
7 * This program is free software; you can redistribute it and/or modify it
8 * under the terms of the GNU General Public License version 2 as

--- 37 unchanged lines hidden (view full) ---

46
47 if (_info != NULL)
48 dccp_get_info(sk, _info);
49}
50
51static const struct inet_diag_handler dccp_diag_handler = {
52 .idiag_hashinfo = &dccp_hashinfo,
53 .idiag_get_info = dccp_diag_get_info,
1/*
2 * net/dccp/diag.c
3 *
4 * An implementation of the DCCP protocol
5 * Arnaldo Carvalho de Melo <acme@mandriva.com>
6 *
7 * This program is free software; you can redistribute it and/or modify it
8 * under the terms of the GNU General Public License version 2 as

--- 37 unchanged lines hidden (view full) ---

46
47 if (_info != NULL)
48 dccp_get_info(sk, _info);
49}
50
51static const struct inet_diag_handler dccp_diag_handler = {
52 .idiag_hashinfo = &dccp_hashinfo,
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),
56};
57
58static int __init dccp_diag_init(void)
59{
60 return inet_diag_register(&dccp_diag_handler);
61}
62
63static void __exit dccp_diag_fini(void)
64{
65 inet_diag_unregister(&dccp_diag_handler);
66}
67
68module_init(dccp_diag_init);
69module_exit(dccp_diag_fini);
70
71MODULE_LICENSE("GPL");
72MODULE_AUTHOR("Arnaldo Carvalho de Melo <acme@mandriva.com>");
73MODULE_DESCRIPTION("DCCP inet_diag handler");
55 .idiag_info_size = sizeof(struct tcp_info),
56};
57
58static int __init dccp_diag_init(void)
59{
60 return inet_diag_register(&dccp_diag_handler);
61}
62
63static void __exit dccp_diag_fini(void)
64{
65 inet_diag_unregister(&dccp_diag_handler);
66}
67
68module_init(dccp_diag_init);
69module_exit(dccp_diag_fini);
70
71MODULE_LICENSE("GPL");
72MODULE_AUTHOR("Arnaldo Carvalho de Melo <acme@mandriva.com>");
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);