Lines Matching refs:rtattr
113 struct rtattr ext_req __attribute__ ((aligned(NLMSG_ALIGNTO))); in rtnl_wilddump_req_filter()
654 struct rtattr *rta; in addattr_l()
681 struct rtattr *addattr_nest(struct nlmsghdr *n, int maxlen, int type) in addattr_nest()
683 struct rtattr *nest = NLMSG_TAIL(n); in addattr_nest()
689 int addattr_nest_end(struct nlmsghdr *n, struct rtattr *nest) in addattr_nest_end()
695 struct rtattr *addattr_nest_compat(struct nlmsghdr *n, int maxlen, int type, in addattr_nest_compat()
698 struct rtattr *start = NLMSG_TAIL(n); in addattr_nest_compat()
705 int addattr_nest_compat_end(struct nlmsghdr *n, struct rtattr *start) in addattr_nest_compat_end()
707 struct rtattr *nest = (void *)start + NLMSG_ALIGN(start->rta_len); in addattr_nest_compat_end()
714 int rta_addattr32(struct rtattr *rta, int maxlen, int type, __u32 data) in rta_addattr32()
717 struct rtattr *subrta; in rta_addattr32()
723 subrta = (struct rtattr*)(((char*)rta) + RTA_ALIGN(rta->rta_len)); in rta_addattr32()
731 int rta_addattr_l(struct rtattr *rta, int maxlen, int type, in rta_addattr_l()
734 struct rtattr *subrta; in rta_addattr_l()
741 subrta = (struct rtattr*)(((char*)rta) + RTA_ALIGN(rta->rta_len)); in rta_addattr_l()
749 int rta_addattr8(struct rtattr *rta, int maxlen, int type, __u8 data) in rta_addattr8()
754 int rta_addattr16(struct rtattr *rta, int maxlen, int type, __u16 data) in rta_addattr16()
759 int rta_addattr64(struct rtattr *rta, int maxlen, int type, __u64 data) in rta_addattr64()
764 struct rtattr *rta_nest(struct rtattr *rta, int maxlen, int type) in rta_nest()
766 struct rtattr *nest = RTA_TAIL(rta); in rta_nest()
773 int rta_nest_end(struct rtattr *rta, struct rtattr *nest) in rta_nest_end()
780 int parse_rtattr(struct rtattr *tb[], int max, struct rtattr *rta, int len) in parse_rtattr()
785 int parse_rtattr_flags(struct rtattr *tb[], int max, struct rtattr *rta, in parse_rtattr_flags()
790 memset(tb, 0, sizeof(struct rtattr *) * (max + 1)); in parse_rtattr_flags()
802 int parse_rtattr_byindex(struct rtattr *tb[], int max, struct rtattr *rta, int len) in parse_rtattr_byindex()
806 memset(tb, 0, sizeof(struct rtattr *) * max); in parse_rtattr_byindex()
817 struct rtattr *parse_rtattr_one(int type, struct rtattr *rta, int len) in parse_rtattr_one()
829 int __parse_rtattr_nested_compat(struct rtattr *tb[], int max, struct rtattr *rta, in __parse_rtattr_nested_compat()
834 if (RTA_PAYLOAD(rta) >= RTA_ALIGN(len) + sizeof(struct rtattr)) { in __parse_rtattr_nested_compat()
838 memset(tb, 0, sizeof(struct rtattr *) * (max + 1)); in __parse_rtattr_nested_compat()