module/network: process_reply() -> parse_reply()

This commit is contained in:
Daniel Eklöf 2018-12-31 13:44:49 +01:00
parent b2af90abbc
commit ea2cc50194

View file

@ -398,7 +398,7 @@ netlink_receive_messages(int sock, void **reply, size_t *len)
}
static bool
process_reply(struct module *mod, const struct nlmsghdr *hdr, size_t len)
parse_reply(struct module *mod, const struct nlmsghdr *hdr, size_t len)
{
struct private *m = mod->private;
@ -495,7 +495,8 @@ run(struct module_run_context *ctx)
if (!netlink_receive_messages(m->nl_sock, &reply, &len))
break;
if (!process_reply(mod, (const struct nlmsghdr *)reply, len)) {
/* Parse (and act upon) the received message(s) */
if (!parse_reply(mod, (const struct nlmsghdr *)reply, len)) {
free(reply);
break;
}