Lines Matching refs:rtattr
33 static struct rtattr *rtattr_add(struct nlmsghdr *nh, unsigned short type,
36 struct rtattr *rta =
37 (struct rtattr *)((uint8_t *)nh + RTA_ALIGN(nh->nlmsg_len));
44 static struct rtattr *rtattr_begin(struct nlmsghdr *nh, unsigned short type)
49 static void rtattr_end(struct nlmsghdr *nh, struct rtattr *attr)
56 static struct rtattr *rtattr_add_str(struct nlmsghdr *nh, unsigned short type,
59 struct rtattr *rta = rtattr_add(nh, type, strlen(s));
65 static struct rtattr *rtattr_add_strsz(struct nlmsghdr *nh, unsigned short type,
68 struct rtattr *rta = rtattr_add(nh, type, strlen(s) + 1);
74 static struct rtattr *rtattr_add_any(struct nlmsghdr *nh, unsigned short type,
77 struct rtattr *rta = rtattr_add(nh, type, len);
92 struct rtattr *link_info, *info_data;