/external/iproute2/include/ |
D | libnetlink.h | 91 struct rtattr *addattr_nest(struct nlmsghdr *n, int maxlen, int type); 92 int addattr_nest_end(struct nlmsghdr *n, struct rtattr *nest); 93 struct rtattr *addattr_nest_compat(struct nlmsghdr *n, int maxlen, int type, 95 int addattr_nest_compat_end(struct nlmsghdr *n, struct rtattr *nest); 96 int rta_addattr8(struct rtattr *rta, int maxlen, int type, __u8 data); 97 int rta_addattr16(struct rtattr *rta, int maxlen, int type, __u16 data); 98 int rta_addattr32(struct rtattr *rta, int maxlen, int type, __u32 data); 99 int rta_addattr64(struct rtattr *rta, int maxlen, int type, __u64 data); 100 int rta_addattr_l(struct rtattr *rta, int maxlen, int type, 103 int parse_rtattr(struct rtattr *tb[], int max, struct rtattr *rta, int len); [all …]
|
/external/iproute2/tc/ |
D | tc_util.h | 26 int (*print_qopt)(struct qdisc_util *qu, FILE *f, struct rtattr *opt); 27 int (*print_xstats)(struct qdisc_util *qu, FILE *f, struct rtattr *xstats); 30 int (*print_copt)(struct qdisc_util *qu, FILE *f, struct rtattr *opt); 39 int (*print_fopt)(struct filter_util *qu, FILE *f, struct rtattr *opt, __u32 fhandle); 47 int (*print_aopt)(struct action_util *au, FILE *f, struct rtattr *opt); 48 int (*print_xstats)(struct action_util *au, FILE *f, struct rtattr *xstats); 84 extern void print_tcstats_attr(FILE *fp, struct rtattr *tb[], char *prefix, struct rtattr **xstats); 85 extern void print_tcstats2_attr(FILE *fp, struct rtattr *rta, char *prefix, struct rtattr **xstats); 91 extern int tc_print_police(FILE *f, struct rtattr *tb); 98 struct rtattr *tb); [all …]
|
D | f_flower.c | 167 struct rtattr *tail; in flower_parse_opt() 179 tail = (struct rtattr *) (((void *) n) + NLMSG_ALIGN(n->nlmsg_len)); in flower_parse_opt() 333 struct rtattr *addr_attr, in flower_print_eth_addr() 334 struct rtattr *mask_attr) in flower_print_eth_addr() 354 struct rtattr *eth_type_attr) in flower_print_eth_type() 373 struct rtattr *ip_proto_attr) in flower_print_ip_proto() 392 struct rtattr *addr4_attr, in flower_print_ip_addr() 393 struct rtattr *mask4_attr, in flower_print_ip_addr() 394 struct rtattr *addr6_attr, in flower_print_ip_addr() 395 struct rtattr *mask6_attr) in flower_print_ip_addr() [all …]
|
D | m_action.c | 69 static int print_noaopt(struct action_util *au, FILE *f, struct rtattr *opt) in print_noaopt() 172 struct rtattr *tail, *tail2; in parse_action() 262 tc_print_one_action(FILE * f, struct rtattr *arg) in tc_print_one_action() 265 struct rtattr *tb[TCA_ACT_MAX + 1]; in tc_print_one_action() 299 tc_print_action_flush(FILE *f, const struct rtattr *arg) in tc_print_action_flush() 302 struct rtattr *tb[TCA_MAX + 1]; in tc_print_action_flush() 325 tc_print_action(FILE *f, const struct rtattr *arg) in tc_print_action() 329 struct rtattr *tb[TCA_ACT_MAX_PRIO + 1]; in tc_print_action() 359 struct rtattr * tb[TCAA_MAX+1]; in print_action() 402 struct rtattr *tail; in tc_action_gd() [all …]
|
D | q_drr.c | 55 struct rtattr *tail; in drr_parse_class_opt() 84 static int drr_print_opt(struct qdisc_util *qu, FILE *f, struct rtattr *opt) in drr_print_opt() 86 struct rtattr *tb[TCA_DRR_MAX + 1]; in drr_print_opt() 100 static int drr_print_xstats(struct qdisc_util *qu, FILE *f, struct rtattr *xstats) in drr_print_xstats()
|
D | f_cgroup.c | 29 struct rtattr *tail; in cgroup_parse_opt() 43 tail = (struct rtattr*)(((void*)n)+NLMSG_ALIGN(n->nlmsg_len)); in cgroup_parse_opt() 84 struct rtattr *opt, __u32 handle) in cgroup_print_opt() 86 struct rtattr *tb[TCA_CGROUP_MAX+1]; in cgroup_print_opt()
|
D | f_basic.c | 43 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()
|
D | f_fw.c | 38 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()
|
D | q_dsmark.c | 32 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()
|
D | q_qfq.c | 59 struct rtattr *tail; in qfq_parse_class_opt() 94 static int qfq_print_opt(struct qdisc_util *qu, FILE *f, struct rtattr *opt) in qfq_print_opt() 96 struct rtattr *tb[TCA_QFQ_MAX + 1]; in qfq_print_opt()
|
D | q_prio.c | 36 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()
|
D | q_rr.c | 37 struct rtattr *nest; in rr_parse_opt() 91 static 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()
|
/external/iproute2/lib/ |
D | libnetlink.c | 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() [all …]
|
D | libgenl.c | 14 struct rtattr *tb[CTRL_ATTR_MAX + 1]; in genl_parse_getfamily() 17 struct rtattr *attrs; in genl_parse_getfamily() 37 attrs = (struct rtattr *) ((char *) ghdr + GENL_HDRLEN); in genl_parse_getfamily()
|
/external/iproute2/ip/ |
D | xfrm.h | 41 #define XFRMS_RTA(x) ((struct rtattr*)(((char*)(x)) + NLMSG_ALIGN(sizeof(struct xfrm_usersa_info))… 44 #define XFRMP_RTA(x) ((struct rtattr*)(((char*)(x)) + NLMSG_ALIGN(sizeof(struct xfrm_userpolicy_in… 47 #define XFRMSID_RTA(x) ((struct rtattr*)(((char*)(x)) + NLMSG_ALIGN(sizeof(struct xfrm_usersa_id))… 50 #define XFRMPID_RTA(x) ((struct rtattr*)(((char*)(x)) + NLMSG_ALIGN(sizeof(struct xfrm_userpolicy_… 53 #define XFRMACQ_RTA(x) ((struct rtattr*)(((char*)(x)) + NLMSG_ALIGN(sizeof(struct xfrm_user_acquire… 54 #define XFRMEXP_RTA(x) ((struct rtattr*)(((char*)(x)) + NLMSG_ALIGN(sizeof(struct xfrm_user_expire)… 55 #define XFRMPEXP_RTA(x) ((struct rtattr*)(((char*)(x)) + NLMSG_ALIGN(sizeof(struct xfrm_user_polexp… 57 #define XFRMREP_RTA(x) ((struct rtattr*)(((char*)(x)) + NLMSG_ALIGN(sizeof(struct xfrm_user_report)… 59 #define XFRMSAPD_RTA(x) ((struct rtattr*)(((char*)(x)) + NLMSG_ALIGN(sizeof(__u32)))) 140 void xfrm_xfrma_print(struct rtattr *tb[], __u16 family, [all …]
|
D | iproute_lwtunnel.c | 58 static void print_encap_mpls(FILE *fp, struct rtattr *encap) in print_encap_mpls() 60 struct rtattr *tb[MPLS_IPTUNNEL_MAX+1]; in print_encap_mpls() 72 static void print_encap_ip(FILE *fp, struct rtattr *encap) in print_encap_ip() 74 struct rtattr *tb[LWTUNNEL_IP_MAX+1]; in print_encap_ip() 103 static void print_encap_ila(FILE *fp, struct rtattr *encap) in print_encap_ila() 105 struct rtattr *tb[ILA_ATTR_MAX+1]; in print_encap_ila() 118 static void print_encap_ip6(FILE *fp, struct rtattr *encap) in print_encap_ip6() 120 struct rtattr *tb[LWTUNNEL_IP6_MAX+1]; in print_encap_ip6() 149 void lwt_print_encap(FILE *fp, struct rtattr *encap_type, in lwt_print_encap() 150 struct rtattr *encap) in lwt_print_encap() [all …]
|
D | iproute_lwtunnel.h | 4 int lwt_parse_encap(struct rtattr *rta, size_t len, int *argcp, char ***argvp); 5 void lwt_print_encap(FILE *fp, struct rtattr *encap_type, 6 struct rtattr *encap);
|
D | ipaddress.c | 170 static void print_queuelen(FILE *f, struct rtattr *tb[IFLA_MAX + 1]) in print_queuelen() 201 static void print_linkmode(FILE *f, struct rtattr *tb) in print_linkmode() 211 static char *parse_link_kind(struct rtattr *tb) in parse_link_kind() 213 struct rtattr *linkinfo[IFLA_INFO_MAX+1]; in parse_link_kind() 223 static void print_linktype(FILE *fp, struct rtattr *tb) in print_linktype() 225 struct rtattr *linkinfo[IFLA_INFO_MAX+1]; in print_linktype() 241 struct rtattr *attr[lu->maxattr+1], **data = NULL; in print_linktype() 264 struct rtattr *attr[slave_lu->maxattr+1], **data = NULL; in print_linktype() 276 static void print_af_spec(FILE *fp, struct rtattr *af_spec_attr) in print_af_spec() 278 struct rtattr *inet6_attr; in print_af_spec() [all …]
|
/external/iproute2/genl/ |
D | ctrl.c | 76 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() 184 struct rtattr *tb[CTRL_ATTR_MAX + 1]; in print_ctrl() 187 struct rtattr *attrs; in print_ctrl() 213 attrs = (struct rtattr *) ((char *) ghdr + GENL_HDRLEN); in print_ctrl() [all …]
|
/external/libnl/include/linux/ |
D | rtnetlink.h | 124 struct rtattr struct 134 #define RTA_OK(rta,len) ((len) >= (int)sizeof(struct rtattr) && \ argument 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))) 490 #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/ |
D | priv_netlink.h | 65 ((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)) 103 struct rtattr struct
|
/external/kernel-headers/original/uapi/linux/ |
D | rtnetlink.h | 156 struct rtattr { struct 165 #define RTA_OK(rta,len) ((len) >= (int)sizeof(struct rtattr) && \ argument 166 (rta)->rta_len >= sizeof(struct rtattr) && \ 169 (struct rtattr*)(((char*)(rta)) + RTA_ALIGN((rta)->rta_len))) 170 #define RTA_LENGTH(len) (RTA_ALIGN(sizeof(struct rtattr)) + (len)) 319 #define RTM_RTA(r) ((struct rtattr*)(((char*)(r)) + NLMSG_ALIGN(sizeof(struct rtmsg)))) 357 #define RTNH_DATA(rtnh) ((struct rtattr*)(((char*)(rtnh)) + RTNH_LENGTH(0))) 543 #define TCA_RTA(r) ((struct rtattr*)(((char*)(r)) + NLMSG_ALIGN(sizeof(struct tcmsg)))) 661 #define TA_RTA(r) ((struct rtattr*)(((char*)(r)) + NLMSG_ALIGN(sizeof(struct tcamsg))))
|
/external/iproute2/include/linux/ |
D | rtnetlink.h | 156 struct rtattr { struct 165 #define RTA_OK(rta,len) ((len) >= (int)sizeof(struct rtattr) && \ argument 166 (rta)->rta_len >= sizeof(struct rtattr) && \ 169 (struct rtattr*)(((char*)(rta)) + RTA_ALIGN((rta)->rta_len))) 170 #define RTA_LENGTH(len) (RTA_ALIGN(sizeof(struct rtattr)) + (len)) 321 #define RTM_RTA(r) ((struct rtattr*)(((char*)(r)) + NLMSG_ALIGN(sizeof(struct rtmsg)))) 359 #define RTNH_DATA(rtnh) ((struct rtattr*)(((char*)(rtnh)) + RTNH_LENGTH(0))) 545 #define TCA_RTA(r) ((struct rtattr*)(((char*)(r)) + NLMSG_ALIGN(sizeof(struct tcmsg)))) 661 #define TA_RTA(r) ((struct rtattr*)(((char*)(r)) + NLMSG_ALIGN(sizeof(struct tcamsg))))
|
/external/android-clat/ |
D | getaddr.c | 46 struct rtattr *rta_p; in getaddr_cb() 51 rta_p = (struct rtattr *)IFA_RTA(ifa_p); in getaddr_cb() 64 memcpy(&targ_p->ip.ip6, RTA_DATA(rta_p), rta_p->rta_len - sizeof(struct rtattr)); in getaddr_cb() 71 memcpy(&targ_p->ip.ip4, RTA_DATA(rta_p), rta_p->rta_len - sizeof(struct rtattr)); in getaddr_cb()
|
/external/iproute2/bridge/ |
D | mdb.c | 24 ((struct rtattr*)(((char*)(r)) + NLMSG_ALIGN(sizeof(struct br_port_msg)))) 36 static void br_print_router_ports(FILE *f, struct rtattr *attr) in br_print_router_ports() 39 struct rtattr *i; in br_print_router_ports() 72 static void br_print_mdb_entry(FILE *f, int ifindex, struct rtattr *attr, in br_print_mdb_entry() 75 struct rtattr *i; in br_print_mdb_entry() 91 struct rtattr *tb[MDBA_MAX+1], *i; in print_mdb()
|