]>
Commit | Line | Data |
---|---|---|
a3c4b484 JP |
1 | /* |
2 | * mnlg.h Generic Netlink helpers for libmnl | |
3 | * | |
4 | * This program is free software; you can redistribute it and/or | |
5 | * modify it under the terms of the GNU General Public License | |
6 | * as published by the Free Software Foundation; either version | |
7 | * 2 of the License, or (at your option) any later version. | |
8 | * | |
9 | * Authors: Jiri Pirko <jiri@mellanox.com> | |
10 | */ | |
11 | ||
12 | #ifndef _MNLG_H_ | |
13 | #define _MNLG_H_ | |
14 | ||
15 | #include <libmnl/libmnl.h> | |
16 | ||
17 | struct mnlg_socket; | |
18 | ||
19 | struct nlmsghdr *mnlg_msg_prepare(struct mnlg_socket *nlg, uint8_t cmd, | |
20 | uint16_t flags); | |
21 | int mnlg_socket_send(struct mnlg_socket *nlg, const struct nlmsghdr *nlh); | |
22 | int mnlg_socket_recv_run(struct mnlg_socket *nlg, mnl_cb_t data_cb, void *data); | |
23 | int mnlg_socket_group_add(struct mnlg_socket *nlg, const char *group_name); | |
24 | struct mnlg_socket *mnlg_socket_open(const char *family_name, uint8_t version); | |
25 | void mnlg_socket_close(struct mnlg_socket *nlg); | |
26 | ||
27 | #endif /* _MNLG_H_ */ |