Home | History | Annotate | Download | only in lib

Lines Matching refs:rtattr

98 		struct rtattr ext_req;
557 struct rtattr *rta;
584 struct rtattr *addattr_nest(struct nlmsghdr *n, int maxlen, int type)
586 struct rtattr *nest = NLMSG_TAIL(n);
592 int addattr_nest_end(struct nlmsghdr *n, struct rtattr *nest)
598 struct rtattr *addattr_nest_compat(struct nlmsghdr *n, int maxlen, int type,
601 struct rtattr *start = NLMSG_TAIL(n);
608 int addattr_nest_compat_end(struct nlmsghdr *n, struct rtattr *start)
610 struct rtattr *nest = (void *)start + NLMSG_ALIGN(start->rta_len);
617 int rta_addattr32(struct rtattr *rta, int maxlen, int type, __u32 data)
620 struct rtattr *subrta;
626 subrta = (struct rtattr*)(((char*)rta) + RTA_ALIGN(rta->rta_len));
634 int rta_addattr_l(struct rtattr *rta, int maxlen, int type,
637 struct rtattr *subrta;
644 subrta = (struct rtattr*)(((char*)rta) + RTA_ALIGN(rta->rta_len));
652 int parse_rtattr(struct rtattr *tb[], int max, struct rtattr *rta, int len)
654 memset(tb, 0, sizeof(struct rtattr *) * (max + 1));
665 int parse_rtattr_byindex(struct rtattr *tb[], int max, struct rtattr *rta, int len)
669 memset(tb, 0, sizeof(struct rtattr *) * max);
680 int __parse_rtattr_nested_compat(struct rtattr *tb[], int max, struct rtattr *rta,
685 if (RTA_PAYLOAD(rta) >= RTA_ALIGN(len) + sizeof(struct rtattr)) {
689 memset(tb, 0, sizeof(struct rtattr *) * (max + 1));