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