Add genl_socket_close() function
We've had genl_socket_open() but no corresponding genl_socket_close() so far. Let's fix that.
This commit is contained in:
parent
977c233b74
commit
4e3960c89f
|
@ -0,0 +1 @@
|
||||||
|
* new genl_socket_close() function
|
|
@ -7,6 +7,7 @@ struct mnl_socket;
|
||||||
struct nlmsghdr;
|
struct nlmsghdr;
|
||||||
|
|
||||||
struct mnl_socket *genl_socket_open(void);
|
struct mnl_socket *genl_socket_open(void);
|
||||||
|
void genl_socket_close(struct mnl_socket *nl);
|
||||||
struct nlmsghdr *genl_nlmsg_build_hdr(char *buf, uint16_t type, uint16_t flags,
|
struct nlmsghdr *genl_nlmsg_build_hdr(char *buf, uint16_t type, uint16_t flags,
|
||||||
uint32_t seq, uint8_t cmd);
|
uint32_t seq, uint8_t cmd);
|
||||||
int genl_socket_talk(struct mnl_socket *nl, struct nlmsghdr *nlh, uint32_t seq,
|
int genl_socket_talk(struct mnl_socket *nl, struct nlmsghdr *nlh, uint32_t seq,
|
||||||
|
|
|
@ -106,6 +106,12 @@ struct mnl_socket *genl_socket_open(void)
|
||||||
}
|
}
|
||||||
EXPORT_SYMBOL(genl_socket_open);
|
EXPORT_SYMBOL(genl_socket_open);
|
||||||
|
|
||||||
|
void genl_socket_close(struct mnl_socket *nl)
|
||||||
|
{
|
||||||
|
mnl_socket_close(nl);
|
||||||
|
}
|
||||||
|
EXPORT_SYMBOL(genl_socket_close);
|
||||||
|
|
||||||
int genl_socket_talk(struct mnl_socket *nl, struct nlmsghdr *nlh, uint32_t seq,
|
int genl_socket_talk(struct mnl_socket *nl, struct nlmsghdr *nlh, uint32_t seq,
|
||||||
int (*cb)(const struct nlmsghdr *nlh, void *data),
|
int (*cb)(const struct nlmsghdr *nlh, void *data),
|
||||||
void *data)
|
void *data)
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
LIBGTPNL_1.0 {
|
LIBGTPNL_1.0 {
|
||||||
global:
|
global:
|
||||||
genl_socket_open;
|
genl_socket_open;
|
||||||
|
genl_socket_close;
|
||||||
genl_nlmsg_build_hdr;
|
genl_nlmsg_build_hdr;
|
||||||
genl_socket_talk;
|
genl_socket_talk;
|
||||||
genl_lookup_family;
|
genl_lookup_family;
|
||||||
|
|
Loading…
Reference in New Issue