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:
Harald Welte 2017-11-08 16:04:00 +09:00
parent 977c233b74
commit 4e3960c89f
4 changed files with 9 additions and 0 deletions

1
TODO-RELEASE Normal file
View File

@ -0,0 +1 @@
* new genl_socket_close() function

View File

@ -7,6 +7,7 @@ struct mnl_socket;
struct nlmsghdr;
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,
uint32_t seq, uint8_t cmd);
int genl_socket_talk(struct mnl_socket *nl, struct nlmsghdr *nlh, uint32_t seq,

View File

@ -106,6 +106,12 @@ struct mnl_socket *genl_socket_open(void)
}
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 (*cb)(const struct nlmsghdr *nlh, void *data),
void *data)

View File

@ -1,6 +1,7 @@
LIBGTPNL_1.0 {
global:
genl_socket_open;
genl_socket_close;
genl_nlmsg_build_hdr;
genl_socket_talk;
genl_lookup_family;