Searched refs:rtattr (Results 1 - 25 of 122) sorted by relevance

12345

/external/iproute2/tc/
H A 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);
83 extern void print_tcstats_attr(FILE *fp, struct rtattr *tb[], char *prefix, struct rtattr **xstats);
84 extern void print_tcstats2_attr(FILE *fp, struct rtattr *rta, char *prefix, struct rtattr **xstat
[all...]
H A Df_cgroup.c29 struct rtattr *tail;
43 tail = (struct rtattr*)(((void*)n)+NLMSG_ALIGN(n->nlmsg_len));
84 struct rtattr *opt, __u32 handle)
86 struct rtattr *tb[TCA_CGROUP_MAX+1];
H A Dq_drr.c55 struct rtattr *tail;
84 static int drr_print_opt(struct qdisc_util *qu, FILE *f, struct rtattr *opt)
86 struct rtattr *tb[TCA_DRR_MAX + 1];
100 static int drr_print_xstats(struct qdisc_util *qu, FILE *f, struct rtattr *xstats)
H A Dq_prio.c36 struct rtattr *nest;
96 int prio_print_opt(struct qdisc_util *qu, FILE *f, struct rtattr *opt)
100 struct rtattr *tb[TCA_PRIO_MAX+1];
H A Dq_qfq.c59 struct rtattr *tail;
94 static int qfq_print_opt(struct qdisc_util *qu, FILE *f, struct rtattr *opt)
96 struct rtattr *tb[TCA_QFQ_MAX + 1];
H A Dq_rr.c37 struct rtattr *nest;
91 int rr_print_opt(struct qdisc_util *qu, FILE *f, struct rtattr *opt)
95 struct rtattr *tb[TCA_PRIO_MAX + 1];
H A Df_basic.c42 struct rtattr *tail;
59 tail = (struct rtattr*)(((void*)n)+NLMSG_ALIGN(n->nlmsg_len));
110 struct rtattr *opt, __u32 handle)
112 struct rtattr *tb[TCA_BASIC_MAX+1];
H A Dq_fifo.c61 static int fifo_print_opt(struct qdisc_util *qu, FILE *f, struct rtattr *opt)
98 extern int prio_print_opt(struct qdisc_util *qu, FILE *f, struct rtattr *opt);
H A Df_fw.c38 struct rtattr *tail;
119 static int fw_print_opt(struct filter_util *qu, FILE *f, struct rtattr *opt, __u32 handle)
121 struct rtattr *tb[TCA_FW_MAX+1];
147 struct rtattr *idev = tb[TCA_FW_INDEV];
H A Dq_dsmark.c32 struct rtattr *tail;
94 struct rtattr *tail;
132 static int dsmark_print_opt(struct qdisc_util *qu, FILE *f, struct rtattr *opt)
134 struct rtattr *tb[TCA_DSMARK_MAX+1];
H A Dq_ingress.c56 static int ingress_print_opt(struct qdisc_util *qu, FILE *f, struct rtattr *opt)
/external/iproute2/include/
H A 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 *data, int len);
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 *rt
[all...]
/external/iproute2/ip/
H A 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_info))))
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_id))))
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_polexpire))))
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 *t
[all...]
H A Dip_common.h46 static inline int rtm_get_table(struct rtmsg *r, struct rtattr **tb)
64 struct rtattr *[]);
66 struct rtattr *);
H A Diplink_vlan.c48 struct rtattr *tail;
144 static void vlan_print_map(FILE *f, char *name, struct rtattr *attr)
147 struct rtattr *i;
176 static void vlan_print_opt(struct link_util *lu, FILE *f, struct rtattr *tb[])
H A Dlink_veth.c32 struct rtattr * data;
/external/wpa_supplicant_8/hostapd/src/drivers/
H A 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))
102 struct rtattr struct
/external/wpa_supplicant_8/src/drivers/
H A 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))
102 struct rtattr struct
/external/wpa_supplicant_8/wpa_supplicant/src/drivers/
H A 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))
102 struct rtattr struct
/external/iproute2/lib/
H A Dlibnetlink.c98 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 *rt
[all...]
/external/iproute2/genl/
H A Dctrl.c76 struct rtattr *tb[CTRL_ATTR_MAX + 1];
79 struct rtattr *attrs;
99 attrs = (struct rtattr *) ((char *) ghdr + GENL_HDRLEN);
136 static int print_ctrl_cmds(FILE *fp, struct rtattr *arg, __u32 ctrl_ver)
138 struct rtattr *tb[CTRL_ATTR_OP_MAX + 1];
157 static int print_ctrl_grp(FILE *fp, struct rtattr *arg, __u32 ctrl_ver)
159 struct rtattr *tb[CTRL_ATTR_MCAST_GRP_MAX + 1];
183 struct rtattr *tb[CTRL_ATTR_MAX + 1];
186 struct rtattr *attrs;
212 attrs = (struct rtattr *) ((cha
[all...]
/external/android-clat/
H A Dgetaddr.c46 struct rtattr *rta_p;
51 rta_p = (struct rtattr *)IFA_RTA(ifa_p);
64 memcpy(&targ_p->ip.ip6, RTA_DATA(rta_p), rta_p->rta_len - sizeof(struct rtattr));
71 memcpy(&targ_p->ip.ip4, RTA_DATA(rta_p), rta_p->rta_len - sizeof(struct rtattr));
/external/iproute2/include/linux/
H A Drtnetlink.h137 struct rtattr { struct
146 #define RTA_OK(rta,len) ((len) >= (int)sizeof(struct rtattr) && \
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))
293 #define RTM_RTA(r) ((struct rtattr*)(((char*)(r)) + NLMSG_ALIGN(sizeof(struct rtmsg))))
327 #define RTNH_DATA(rtnh) ((struct rtattr*)(((char*)(rtnh)) + RTNH_LENGTH(0)))
344 /* RTM_METRICS --- array of struct rtattr with types of RTAX_* */
494 #define TCA_RTA(r) ((struct rtattr*)(((char*)(r)) + NLMSG_ALIGN(sizeof(struct tcmsg))))
600 #define TA_RTA(r) ((struct rtattr*)(((cha
[all...]
H A Dif_addr.h56 #define IFA_RTA(r) ((struct rtattr*)(((char*)(r)) + NLMSG_ALIGN(sizeof(struct ifaddrmsg))))
/external/libnl/include/linux/
H A Drtnetlink.h124 struct rtattr struct
134 #define RTA_OK(rta,len) ((len) >= (int)sizeof(struct rtattr) && \
135 (rta)->rta_len >= sizeof(struct rtattr) && \
138 (struct rtattr*)(((char*)(rta)) + RTA_ALIGN((rta)->rta_len)))
139 #define RTA_LENGTH(len) (RTA_ALIGN(sizeof(struct rtattr)) + (len))
282 #define RTM_RTA(r) ((struct rtattr*)(((char*)(r)) + NLMSG_ALIGN(sizeof(struct rtmsg))))
317 #define RTNH_DATA(rtnh) ((struct rtattr*)(((char*)(rtnh)) + RTNH_LENGTH(0)))
335 /* RTM_METRICS --- array of struct rtattr with types of RTAX_* */
490 #define TCA_RTA(r) ((struct rtattr*)(((char*)(r)) + NLMSG_ALIGN(sizeof(struct tcmsg))))
595 #define TA_RTA(r) ((struct rtattr*)(((cha
[all...]

Completed in 542 milliseconds

12345