Add genl_socket_close() function

We've had genl_socket_open() but no corresponding genl_socket_close()
so far.  Let's fix that.
changes/94/4794/1
Harald Welte 5 years ago
parent 977c233b74
commit 4e3960c89f
  1. 1
      TODO-RELEASE
  2. 1
      include/libgtpnl/gtpnl.h
  3. 6
      src/genl.c
  4. 1
      src/libgtpnl.map

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

@ -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,

@ -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)

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

Loading…
Cancel
Save