[CRIU] [PATCH] netlink: Use nlattr instead of rtattr
Pavel Emelyanov
xemul at virtuozzo.com
Wed Feb 24 02:16:24 PST 2016
> @@ -673,10 +674,9 @@ skip:
> int unix_receive_one(struct nlmsghdr *h, void *arg)
> {
> struct unix_diag_msg *m = NLMSG_DATA(h);
> - struct rtattr *tb[UNIX_DIAG_MAX+1];
> + struct nlattr *tb[UNIX_DIAG_MAX+1];
>
> - parse_rtattr(tb, UNIX_DIAG_MAX, (struct rtattr *)(m + 1),
> - h->nlmsg_len - NLMSG_LENGTH(sizeof(*m)));
> + nlmsg_parse(h, sizeof(struct unix_diag_msg), tb, UNIX_DIAG_MAX, NULL);
Don't we need to link with some lib to get this working?
>
> return unix_collect_one(m, tb);
> }
>
More information about the CRIU
mailing list