| .. | .. |
|---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-only |
|---|
| 1 | 2 | /* |
|---|
| 2 | 3 | * net/dccp/diag.c |
|---|
| 3 | 4 | * |
|---|
| 4 | 5 | * An implementation of the DCCP protocol |
|---|
| 5 | 6 | * 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. |
|---|
| 10 | 7 | */ |
|---|
| 11 | 8 | |
|---|
| 12 | 9 | |
|---|
| .. | .. |
|---|
| 49 | 46 | } |
|---|
| 50 | 47 | |
|---|
| 51 | 48 | 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) |
|---|
| 53 | 50 | { |
|---|
| 54 | | - inet_diag_dump_icsk(&dccp_hashinfo, skb, cb, r, bc); |
|---|
| 51 | + inet_diag_dump_icsk(&dccp_hashinfo, skb, cb, r); |
|---|
| 55 | 52 | } |
|---|
| 56 | 53 | |
|---|
| 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, |
|---|
| 59 | 55 | const struct inet_diag_req_v2 *req) |
|---|
| 60 | 56 | { |
|---|
| 61 | | - return inet_diag_dump_one_icsk(&dccp_hashinfo, in_skb, nlh, req); |
|---|
| 57 | + return inet_diag_dump_one_icsk(&dccp_hashinfo, cb, req); |
|---|
| 62 | 58 | } |
|---|
| 63 | 59 | |
|---|
| 64 | 60 | static const struct inet_diag_handler dccp_diag_handler = { |
|---|