genl: ix crash due to missing wrong prototype
In function genl_socket_talk().
This commit is contained in:
parent
acbbbc3e5a
commit
e24258f4b1
2
genl.h
2
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);
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue