Lines Matching refs:rtattr
214 struct rtattr ext_req __attribute__ ((aligned(NLMSG_ALIGNTO))); in rtnl_wilddump_req_filter()
864 struct rtattr *rta; in addattr_l()
896 struct rtattr *addattr_nest(struct nlmsghdr *n, int maxlen, int type) in addattr_nest()
898 struct rtattr *nest = NLMSG_TAIL(n); in addattr_nest()
904 int addattr_nest_end(struct nlmsghdr *n, struct rtattr *nest) in addattr_nest_end()
910 struct rtattr *addattr_nest_compat(struct nlmsghdr *n, int maxlen, int type, in addattr_nest_compat()
913 struct rtattr *start = NLMSG_TAIL(n); in addattr_nest_compat()
920 int addattr_nest_compat_end(struct nlmsghdr *n, struct rtattr *start) in addattr_nest_compat_end()
922 struct rtattr *nest = (void *)start + NLMSG_ALIGN(start->rta_len); in addattr_nest_compat_end()
929 int rta_addattr32(struct rtattr *rta, int maxlen, int type, __u32 data) in rta_addattr32()
932 struct rtattr *subrta; in rta_addattr32()
940 subrta = (struct rtattr *)(((char *)rta) + RTA_ALIGN(rta->rta_len)); in rta_addattr32()
948 int rta_addattr_l(struct rtattr *rta, int maxlen, int type, in rta_addattr_l()
951 struct rtattr *subrta; in rta_addattr_l()
960 subrta = (struct rtattr *)(((char *)rta) + RTA_ALIGN(rta->rta_len)); in rta_addattr_l()
969 int rta_addattr8(struct rtattr *rta, int maxlen, int type, __u8 data) in rta_addattr8()
974 int rta_addattr16(struct rtattr *rta, int maxlen, int type, __u16 data) in rta_addattr16()
979 int rta_addattr64(struct rtattr *rta, int maxlen, int type, __u64 data) in rta_addattr64()
984 struct rtattr *rta_nest(struct rtattr *rta, int maxlen, int type) in rta_nest()
986 struct rtattr *nest = RTA_TAIL(rta); in rta_nest()
993 int rta_nest_end(struct rtattr *rta, struct rtattr *nest) in rta_nest_end()
1000 int parse_rtattr(struct rtattr *tb[], int max, struct rtattr *rta, int len) in parse_rtattr()
1005 int parse_rtattr_flags(struct rtattr *tb[], int max, struct rtattr *rta, in parse_rtattr_flags()
1010 memset(tb, 0, sizeof(struct rtattr *) * (max + 1)); in parse_rtattr_flags()
1023 int parse_rtattr_byindex(struct rtattr *tb[], int max, in parse_rtattr_byindex()
1024 struct rtattr *rta, int len) in parse_rtattr_byindex()
1028 memset(tb, 0, sizeof(struct rtattr *) * max); in parse_rtattr_byindex()
1040 struct rtattr *parse_rtattr_one(int type, struct rtattr *rta, int len) in parse_rtattr_one()
1054 int __parse_rtattr_nested_compat(struct rtattr *tb[], int max, in __parse_rtattr_nested_compat()
1055 struct rtattr *rta, in __parse_rtattr_nested_compat()
1060 if (RTA_PAYLOAD(rta) >= RTA_ALIGN(len) + sizeof(struct rtattr)) { in __parse_rtattr_nested_compat()
1064 memset(tb, 0, sizeof(struct rtattr *) * (max + 1)); in __parse_rtattr_nested_compat()