diag.c (ead5d1f4d877e92c051e1a1ade623d0d30e71619) diag.c (01757f536ac825e3614d583fee9acb48c64ed084)
1// SPDX-License-Identifier: GPL-2.0-or-later
2/* SCTP kernel implementation
3 * (C) Copyright Red Hat Inc. 2017
4 *
5 * This file is part of the SCTP kernel implementation
6 *
7 * These functions implement sctp diag support.
8 *

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

279 commp->net_admin);
280 release_sock(sk);
281 if (err < 0) {
282 WARN_ON(err == -EMSGSIZE);
283 kfree_skb(rep);
284 goto out;
285 }
286
1// SPDX-License-Identifier: GPL-2.0-or-later
2/* SCTP kernel implementation
3 * (C) Copyright Red Hat Inc. 2017
4 *
5 * This file is part of the SCTP kernel implementation
6 *
7 * These functions implement sctp diag support.
8 *

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

279 commp->net_admin);
280 release_sock(sk);
281 if (err < 0) {
282 WARN_ON(err == -EMSGSIZE);
283 kfree_skb(rep);
284 goto out;
285 }
286
287 err = netlink_unicast(net->diag_nlsk, rep, NETLINK_CB(in_skb).portid,
288 MSG_DONTWAIT);
289 if (err > 0)
290 err = 0;
287 err = nlmsg_unicast(net->diag_nlsk, rep, NETLINK_CB(in_skb).portid);
288
291out:
292 return err;
293}
294
295static int sctp_sock_dump(struct sctp_transport *tsp, void *p)
296{
297 struct sctp_endpoint *ep = tsp->asoc->ep;
298 struct sctp_comm_param *commp = p;

--- 242 unchanged lines hidden ---
289out:
290 return err;
291}
292
293static int sctp_sock_dump(struct sctp_transport *tsp, void *p)
294{
295 struct sctp_endpoint *ep = tsp->asoc->ep;
296 struct sctp_comm_param *commp = p;

--- 242 unchanged lines hidden ---