diff --git a/genl.h b/genl.h index 684c8d0..c50857b 100644 --- a/genl.h +++ b/genl.h @@ -7,7 +7,7 @@ struct nlmsghdr *genl_nlmsg_build_hdr(char *buf, uint16_t type, uint16_t flags, uint32_t seq, uint8_t cmd); struct mnl_socket *genl_socket_open(void); -int genl_socket_talk(struct mnl_socket *nl, struct nlmsghdr *nlh, +int genl_socket_talk(struct mnl_socket *nl, struct nlmsghdr *nlh, uint32_t seq, int (*cb)(const struct nlmsghdr *nlh, void *data), void *data); int genl_lookup_family(struct mnl_socket *nl, const char *family); diff --git a/gtp-tunnel-add.c b/gtp-tunnel-add.c index 08679c2..1c4fbe6 100644 --- a/gtp-tunnel-add.c +++ b/gtp-tunnel-add.c @@ -60,7 +60,7 @@ int main(int argc, char *argv[]) for (i = 0; i < 1000000; i++) { nlh = build_msg(genl_id, buf, i, gtp_ifidx); - if (genl_socket_talk(nl, nlh, NULL, NULL) < 0) + if (genl_socket_talk(nl, nlh, seq, NULL, NULL) < 0) break; }