hc
2024-10-22 8ac6c7a54ed1b98d142dce24b11c6de6a1e239a5
kernel/net/dccp/diag.c
....@@ -1,12 +1,9 @@
1
+// SPDX-License-Identifier: GPL-2.0-only
12 /*
23 * net/dccp/diag.c
34 *
45 * An implementation of the DCCP protocol
56 * 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
9
- * published by the Free Software Foundation.
107 */
118
129
....@@ -49,16 +46,15 @@
4946 }
5047
5148 static void dccp_diag_dump(struct sk_buff *skb, struct netlink_callback *cb,
52
- const struct inet_diag_req_v2 *r, struct nlattr *bc)
49
+ const struct inet_diag_req_v2 *r)
5350 {
54
- inet_diag_dump_icsk(&dccp_hashinfo, skb, cb, r, bc);
51
+ inet_diag_dump_icsk(&dccp_hashinfo, skb, cb, r);
5552 }
5653
57
-static int dccp_diag_dump_one(struct sk_buff *in_skb,
58
- const struct nlmsghdr *nlh,
54
+static int dccp_diag_dump_one(struct netlink_callback *cb,
5955 const struct inet_diag_req_v2 *req)
6056 {
61
- return inet_diag_dump_one_icsk(&dccp_hashinfo, in_skb, nlh, req);
57
+ return inet_diag_dump_one_icsk(&dccp_hashinfo, cb, req);
6258 }
6359
6460 static const struct inet_diag_handler dccp_diag_handler = {