summaryrefslogtreecommitdiffstats
path: root/devlink/mnlg.h
blob: 3249c54c45a4b98124b25517c65f2a1ea132b3df (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
/* SPDX-License-Identifier: GPL-2.0-or-later */
/*
 *   mnlg.h	Generic Netlink helpers for libmnl
 *
 * Authors:     Jiri Pirko <jiri@mellanox.com>
 */

#ifndef _MNLG_H_
#define _MNLG_H_

#include <libmnl/libmnl.h>

struct mnlu_gen_socket;

int mnlg_socket_send(struct mnlu_gen_socket *nlg, const struct nlmsghdr *nlh);
int mnlg_socket_group_add(struct mnlu_gen_socket *nlg, const char *group_name);
int mnlg_socket_get_fd(struct mnlu_gen_socket *nlg);

#endif /* _MNLG_H_ */