Home
last modified time | relevance | path

Searched refs:rtattr (Results 1 – 25 of 95) sorted by relevance

1234

/external/iproute2/include/
Dlibnetlink.h56 extern struct rtattr *addattr_nest(struct nlmsghdr *n, int maxlen, int type);
57 extern int addattr_nest_end(struct nlmsghdr *n, struct rtattr *nest);
58 extern struct rtattr *addattr_nest_compat(struct nlmsghdr *n, int maxlen, int type, const void *dat…
59 extern int addattr_nest_compat_end(struct nlmsghdr *n, struct rtattr *nest);
60 extern int rta_addattr32(struct rtattr *rta, int maxlen, int type, __u32 data);
61 extern int rta_addattr_l(struct rtattr *rta, int maxlen, int type, const void *data, int alen);
63 extern int parse_rtattr(struct rtattr *tb[], int max, struct rtattr *rta, int len);
64 extern int parse_rtattr_byindex(struct rtattr *tb[], int max, struct rtattr *rta, int len);
65 extern int __parse_rtattr_nested_compat(struct rtattr *tb[], int max, struct rtattr *rta, int len);
80 ((struct rtattr *) (((void *) (nmsg)) + NLMSG_ALIGN((nmsg)->nlmsg_len)))
[all …]
/external/iproute2/tc/
Dtc_util.h31 int (*print_qopt)(struct qdisc_util *qu, FILE *f, struct rtattr *opt);
32 int (*print_xstats)(struct qdisc_util *qu, FILE *f, struct rtattr *xstats);
35 int (*print_copt)(struct qdisc_util *qu, FILE *f, struct rtattr *opt);
45 int (*print_fopt)(struct filter_util *qu, FILE *f, struct rtattr *opt, __u32 fhandle);
54 int (*print_aopt)(struct action_util *au, FILE *f, struct rtattr *opt);
55 int (*print_xstats)(struct action_util *au, FILE *f, struct rtattr *xstats);
86 extern void print_tcstats_attr(FILE *fp, struct rtattr *tb[], char *prefix, struct rtattr **xstats);
87 extern void print_tcstats2_attr(FILE *fp, struct rtattr *rta, char *prefix, struct rtattr **xstats);
93 extern int tc_print_police(FILE *f, struct rtattr *tb);
100 struct rtattr *tb);
[all …]
Dq_drr.c56 struct rtattr *tail; in drr_parse_class_opt()
85 static int drr_print_opt(struct qdisc_util *qu, FILE *f, struct rtattr *opt) in drr_print_opt()
87 struct rtattr *tb[TCA_DRR_MAX + 1]; in drr_print_opt()
101 static int drr_print_xstats(struct qdisc_util *qu, FILE *f, struct rtattr *xstats) in drr_print_xstats()
Df_cgroup.c29 struct rtattr *tail; in cgroup_parse_opt()
43 tail = (struct rtattr*)(((void*)n)+NLMSG_ALIGN(n->nlmsg_len)); in cgroup_parse_opt()
85 struct rtattr *opt, __u32 handle) in cgroup_print_opt()
87 struct rtattr *tb[TCA_CGROUP_MAX+1]; in cgroup_print_opt()
Df_basic.c42 struct rtattr *tail; in basic_parse_opt()
59 tail = (struct rtattr*)(((void*)n)+NLMSG_ALIGN(n->nlmsg_len)); in basic_parse_opt()
110 struct rtattr *opt, __u32 handle) in basic_print_opt()
112 struct rtattr *tb[TCA_BASIC_MAX+1]; in basic_print_opt()
Dm_action.c70 static int print_noaopt(struct action_util *au, FILE *f, struct rtattr *opt) in print_noaopt()
172 struct rtattr *tail, *tail2; in parse_action()
258 tc_print_one_action(FILE * f, struct rtattr *arg) in tc_print_one_action()
261 struct rtattr *tb[TCA_ACT_MAX + 1]; in tc_print_one_action()
301 tc_print_action(FILE * f, const struct rtattr *arg) in tc_print_action()
305 struct rtattr *tb[TCA_ACT_MAX_PRIO + 1]; in tc_print_action()
338 struct rtattr * tb[TCAA_MAX+1]; in print_action()
381 struct rtattr *tail; in tc_action_gd()
382 struct rtattr *tail2; in tc_action_gd()
489 struct rtattr *tail; in tc_action_modify()
[all …]
Df_fw.c38 struct rtattr *tail; in fw_parse_opt()
119 static int fw_print_opt(struct filter_util *qu, FILE *f, struct rtattr *opt, __u32 handle) in fw_print_opt()
121 struct rtattr *tb[TCA_FW_MAX+1]; in fw_print_opt()
147 struct rtattr *idev = tb[TCA_FW_INDEV]; in fw_print_opt()
Dq_dsmark.c32 struct rtattr *tail; in dsmark_parse_opt()
94 struct rtattr *tail; in dsmark_parse_class_opt()
132 static int dsmark_print_opt(struct qdisc_util *qu, FILE *f, struct rtattr *opt) in dsmark_print_opt()
134 struct rtattr *tb[TCA_DSMARK_MAX+1]; in dsmark_print_opt()
Dq_rr.c37 struct rtattr *nest; in rr_parse_opt()
91 int rr_print_opt(struct qdisc_util *qu, FILE *f, struct rtattr *opt) in rr_print_opt()
95 struct rtattr *tb[TCA_PRIO_MAX + 1]; in rr_print_opt()
Dq_prio.c36 struct rtattr *nest; in prio_parse_opt()
96 int prio_print_opt(struct qdisc_util *qu, FILE *f, struct rtattr *opt) in prio_print_opt()
100 struct rtattr *tb[TCA_PRIO_MAX+1]; in prio_print_opt()
Dq_red.c44 struct rtattr *tail; in red_parse_opt()
146 static int red_print_opt(struct qdisc_util *qu, FILE *f, struct rtattr *opt) in red_print_opt()
148 struct rtattr *tb[TCA_RED_STAB+1]; in red_print_opt()
179 static int red_print_xstats(struct qdisc_util *qu, FILE *f, struct rtattr *xstats) in red_print_xstats()
Dm_ematch.c179 struct rtattr *tail = NLMSG_TAIL(n); in parse_tree()
339 struct rtattr *tail, *tail_list; in parse_ematch()
366 static int print_ematch_seq(FILE *fd, struct rtattr **tb, int start, in print_ematch_seq()
443 struct rtattr *rta) in print_ematch_list()
446 struct rtattr **tb; in print_ematch_list()
448 tb = malloc((hdr->nmatches + 1) * sizeof(struct rtattr *)); in print_ematch_list()
467 int print_ematch(FILE *fd, const struct rtattr *rta) in print_ematch()
469 struct rtattr *tb[TCA_EMATCH_TREE_MAX+1]; in print_ematch()
Dq_hfsc.c103 hfsc_print_opt(struct qdisc_util *qu, FILE *f, struct rtattr *opt) in hfsc_print_opt()
120 hfsc_print_xstats(struct qdisc_util *qu, FILE *f, struct rtattr *xstats) in hfsc_print_xstats()
147 struct rtattr *tail; in hfsc_parse_class_opt()
234 hfsc_print_class_opt(struct qdisc_util *qu, FILE *f, struct rtattr *opt) in hfsc_print_class_opt()
236 struct rtattr *tb[TCA_HFSC_MAX+1]; in hfsc_print_class_opt()
Df_tcindex.c31 struct rtattr *tail; in tcindex_parse_opt()
122 struct rtattr *opt, __u32 handle) in tcindex_print_opt()
124 struct rtattr *tb[TCA_TCINDEX_MAX+1]; in tcindex_print_opt()
Df_route.c41 struct rtattr *tail; in route_parse_opt()
134 static int route_print_opt(struct filter_util *qu, FILE *f, struct rtattr *opt, __u32 handle) in route_print_opt()
136 struct rtattr *tb[TCA_ROUTE4_MAX+1]; in route_print_opt()
/external/iproute2/ip/
Dxfrm.h42 #define XFRMS_RTA(x) ((struct rtattr*)(((char*)(x)) + NLMSG_ALIGN(sizeof(struct xfrm_usersa_info))…
45 #define XFRMP_RTA(x) ((struct rtattr*)(((char*)(x)) + NLMSG_ALIGN(sizeof(struct xfrm_userpolicy_in…
48 #define XFRMSID_RTA(x) ((struct rtattr*)(((char*)(x)) + NLMSG_ALIGN(sizeof(struct xfrm_usersa_id))…
51 #define XFRMPID_RTA(x) ((struct rtattr*)(((char*)(x)) + NLMSG_ALIGN(sizeof(struct xfrm_userpolicy_…
54 #define XFRMACQ_RTA(x) ((struct rtattr*)(((char*)(x)) + NLMSG_ALIGN(sizeof(struct xfrm_user_acquire…
55 #define XFRMEXP_RTA(x) ((struct rtattr*)(((char*)(x)) + NLMSG_ALIGN(sizeof(struct xfrm_user_expire)…
56 #define XFRMPEXP_RTA(x) ((struct rtattr*)(((char*)(x)) + NLMSG_ALIGN(sizeof(struct xfrm_user_polexp…
58 #define XFRMREP_RTA(x) ((struct rtattr*)(((char*)(x)) + NLMSG_ALIGN(sizeof(struct xfrm_user_report)…
60 #define XFRMSAPD_RTA(x) ((struct rtattr*)(((char*)(x)) + NLMSG_ALIGN(sizeof(__u32))))
141 void xfrm_xfrma_print(struct rtattr *tb[], __u16 family,
[all …]
Dip_common.h43 static inline int rtm_get_table(struct rtmsg *r, struct rtattr **tb) in rtm_get_table()
61 struct rtattr *[]);
63 struct rtattr *);
Diplink_vlan.c48 struct rtattr *tail; in vlan_parse_qos_map()
144 static void vlan_print_map(FILE *f, char *name, struct rtattr *attr) in vlan_print_map()
147 struct rtattr *i; in vlan_print_map()
176 static void vlan_print_opt(struct link_util *lu, FILE *f, struct rtattr *tb[]) in vlan_print_opt()
/external/iproute2/lib/
Dlibnetlink.c531 struct rtattr *rta; in addattr32()
548 struct rtattr *rta; in addattr_l()
575 struct rtattr *addattr_nest(struct nlmsghdr *n, int maxlen, int type) in addattr_nest()
577 struct rtattr *nest = NLMSG_TAIL(n); in addattr_nest()
583 int addattr_nest_end(struct nlmsghdr *n, struct rtattr *nest) in addattr_nest_end()
589 struct rtattr *addattr_nest_compat(struct nlmsghdr *n, int maxlen, int type, in addattr_nest_compat()
592 struct rtattr *start = NLMSG_TAIL(n); in addattr_nest_compat()
599 int addattr_nest_compat_end(struct nlmsghdr *n, struct rtattr *start) in addattr_nest_compat_end()
601 struct rtattr *nest = (void *)start + NLMSG_ALIGN(start->rta_len); in addattr_nest_compat_end()
608 int rta_addattr32(struct rtattr *rta, int maxlen, int type, __u32 data) in rta_addattr32()
[all …]
/external/kernel-headers/original/linux/
Drtnetlink.h137 struct rtattr { struct
146 #define RTA_OK(rta,len) ((len) >= (int)sizeof(struct rtattr) && \ argument
147 (rta)->rta_len >= sizeof(struct rtattr) && \
150 (struct rtattr*)(((char*)(rta)) + RTA_ALIGN((rta)->rta_len)))
151 #define RTA_LENGTH(len) (RTA_ALIGN(sizeof(struct rtattr)) + (len))
291 #define RTM_RTA(r) ((struct rtattr*)(((char*)(r)) + NLMSG_ALIGN(sizeof(struct rtmsg))))
325 #define RTNH_DATA(rtnh) ((struct rtattr*)(((char*)(rtnh)) + RTNH_LENGTH(0)))
492 #define TCA_RTA(r) ((struct rtattr*)(((char*)(r)) + NLMSG_ALIGN(sizeof(struct tcmsg))))
598 #define TA_RTA(r) ((struct rtattr*)(((char*)(r)) + NLMSG_ALIGN(sizeof(struct tcamsg))))
609 static __inline__ int rtattr_strcmp(const struct rtattr *rta, const char *str) in rtattr_strcmp()
[all …]
/external/iproute2/genl/
Dctrl.c76 struct rtattr *tb[CTRL_ATTR_MAX + 1]; in genl_ctrl_resolve_family()
79 struct rtattr *attrs; in genl_ctrl_resolve_family()
99 attrs = (struct rtattr *) ((char *) ghdr + GENL_HDRLEN); in genl_ctrl_resolve_family()
136 static int print_ctrl_cmds(FILE *fp, struct rtattr *arg, __u32 ctrl_ver) in print_ctrl_cmds()
138 struct rtattr *tb[CTRL_ATTR_OP_MAX + 1]; in print_ctrl_cmds()
157 static int print_ctrl_grp(FILE *fp, struct rtattr *arg, __u32 ctrl_ver) in print_ctrl_grp()
159 struct rtattr *tb[CTRL_ATTR_MCAST_GRP_MAX + 1]; in print_ctrl_grp()
183 struct rtattr *tb[CTRL_ATTR_MAX + 1]; in print_ctrl()
186 struct rtattr *attrs; in print_ctrl()
212 attrs = (struct rtattr *) ((char *) ghdr + GENL_HDRLEN); in print_ctrl()
[all …]
/external/wpa_supplicant_6/wpa_supplicant/src/drivers/
Dpriv_netlink.h62 ((len) > 0 && (rta)->rta_len >= sizeof(struct rtattr) && \
66 (struct rtattr *) (((char *)(rta)) + RTA_ALIGN((rta)->rta_len)))
67 #define RTA_LENGTH(len) (RTA_ALIGN(sizeof(struct rtattr)) + (len))
98 struct rtattr struct
/external/iproute2/include/linux/
Drtnetlink.h137 struct rtattr { struct
146 #define RTA_OK(rta,len) ((len) >= (int)sizeof(struct rtattr) && \ argument
147 (rta)->rta_len >= sizeof(struct rtattr) && \
150 (struct rtattr*)(((char*)(rta)) + RTA_ALIGN((rta)->rta_len)))
151 #define RTA_LENGTH(len) (RTA_ALIGN(sizeof(struct rtattr)) + (len))
290 #define RTM_RTA(r) ((struct rtattr*)(((char*)(r)) + NLMSG_ALIGN(sizeof(struct rtmsg))))
324 #define RTNH_DATA(rtnh) ((struct rtattr*)(((char*)(rtnh)) + RTNH_LENGTH(0)))
491 #define TCA_RTA(r) ((struct rtattr*)(((char*)(r)) + NLMSG_ALIGN(sizeof(struct tcmsg))))
595 #define TA_RTA(r) ((struct rtattr*)(((char*)(r)) + NLMSG_ALIGN(sizeof(struct tcamsg))))
/external/wpa_supplicant_8/src/drivers/
Dpriv_netlink.h65 ((len) > 0 && (rta)->rta_len >= sizeof(struct rtattr) && \
69 (struct rtattr *) (((char *)(rta)) + RTA_ALIGN((rta)->rta_len)))
70 #define RTA_LENGTH(len) (RTA_ALIGN(sizeof(struct rtattr)) + (len))
101 struct rtattr struct
/external/dhcpcd/
Dif-linux.c225 struct rtattr *rta; in link_route()
244 rta = (struct rtattr *) ((char *)rtm + NLMSG_ALIGN(sizeof(*rtm))); in link_route()
286 struct rtattr *rta; in link_addr()
308 rta = (struct rtattr *) IFA_RTA(ifa); in link_addr()
336 struct rtattr *rta; in link_netlink()
357 rta = (struct rtattr *) ((char *)ifi + NLMSG_ALIGN(sizeof(*ifi))); in link_netlink()
416 ((struct rtattr *)(((ptrdiff_t)(nmsg))+NLMSG_ALIGN((nmsg)->nlmsg_len)))
423 struct rtattr *rta; in add_attr_l()
443 struct rtattr *rta; in add_attr_32()

1234