/external/iproute2/include/ |
D | libnetlink.h | 119 struct rtattr *addattr_nest(struct nlmsghdr *n, int maxlen, int type); 120 int addattr_nest_end(struct nlmsghdr *n, struct rtattr *nest); 121 struct rtattr *addattr_nest_compat(struct nlmsghdr *n, int maxlen, int type, 123 int addattr_nest_compat_end(struct nlmsghdr *n, struct rtattr *nest); 124 int rta_addattr8(struct rtattr *rta, int maxlen, int type, __u8 data); 125 int rta_addattr16(struct rtattr *rta, int maxlen, int type, __u16 data); 126 int rta_addattr32(struct rtattr *rta, int maxlen, int type, __u32 data); 127 int rta_addattr64(struct rtattr *rta, int maxlen, int type, __u64 data); 128 int rta_addattr_l(struct rtattr *rta, int maxlen, int type, 131 int parse_rtattr(struct rtattr *tb[], int max, struct rtattr *rta, int len); [all …]
|
/external/iproute2/tc/ |
D | tc_util.h | 29 FILE *f, struct rtattr *opt); 31 FILE *f, struct rtattr *xstats); 35 int (*print_copt)(struct qdisc_util *qu, FILE *f, struct rtattr *opt); 45 FILE *f, struct rtattr *opt, __u32 fhandle); 53 int (*print_aopt)(struct action_util *au, FILE *f, struct rtattr *opt); 55 FILE *f, struct rtattr *xstats); 91 void print_tcstats_attr(FILE *fp, struct rtattr *tb[], 92 char *prefix, struct rtattr **xstats); 93 void print_tcstats2_attr(FILE *fp, struct rtattr *rta, 94 char *prefix, struct rtattr **xstats); [all …]
|
D | f_flower.c | 581 struct rtattr *tail; in flower_parse_opt() 597 tail = (struct rtattr *) (((void *) n) + NLMSG_ALIGN(n->nlmsg_len)); in flower_parse_opt() 954 struct rtattr *addr_attr, in flower_print_eth_addr() 955 struct rtattr *mask_attr) in flower_print_eth_addr() 975 struct rtattr *eth_type_attr) in flower_print_eth_type() 998 struct rtattr *ip_proto_attr) in flower_print_ip_proto() 1023 struct rtattr *key_attr, in flower_print_ip_attr() 1024 struct rtattr *mask_attr) in flower_print_ip_attr() 1037 struct rtattr *attr, in flower_print_matching_flags() 1038 struct rtattr *mask_attr) in flower_print_matching_flags() [all …]
|
D | m_tunnel_key.c | 90 struct rtattr *tail; in parse_tunnel_key() 208 struct rtattr *attr) in tunnel_key_print_ip_addr() 229 struct rtattr *attr) in tunnel_key_print_key_id() 237 struct rtattr *attr) in tunnel_key_print_dst_port() 246 struct rtattr *attr) in tunnel_key_print_flag() 253 static int print_tunnel_key(struct action_util *au, FILE *f, struct rtattr *arg) in print_tunnel_key() 255 struct rtattr *tb[TCA_TUNNEL_KEY_MAX + 1]; in print_tunnel_key()
|
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() 101 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 | m_action.c | 65 static int print_noaopt(struct action_util *au, FILE *f, struct rtattr *opt) in print_noaopt() 158 struct rtattr *tail, *tail2; in parse_action() 278 static int tc_print_one_action(FILE *f, struct rtattr *arg) in tc_print_one_action() 281 struct rtattr *tb[TCA_ACT_MAX + 1]; in tc_print_one_action() 324 tc_print_action_flush(FILE *f, const struct rtattr *arg) in tc_print_action_flush() 327 struct rtattr *tb[TCA_MAX + 1]; in tc_print_action_flush() 350 tc_print_action(FILE *f, const struct rtattr *arg, unsigned short tot_acts) in tc_print_action() 361 struct rtattr *tb[tot_acts + 1]; in tc_print_action() 389 struct rtattr *tb[TCA_ROOT_MAX+1]; in print_action() 443 struct rtattr *tail; in tc_action_gd() [all …]
|
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() 111 struct rtattr *opt, __u32 handle) in basic_print_opt() 113 struct rtattr *tb[TCA_BASIC_MAX+1]; in basic_print_opt()
|
D | f_matchall.c | 42 struct rtattr *tail; in matchall_parse_opt() 59 tail = (struct rtattr *)(((void *)n)+NLMSG_ALIGN(n->nlmsg_len)); in matchall_parse_opt() 115 struct rtattr *opt, __u32 handle) in matchall_print_opt() 117 struct rtattr *tb[TCA_MATCHALL_MAX+1]; in matchall_print_opt()
|
D | f_fw.c | 46 struct rtattr *tail; in fw_parse_opt() 127 static int fw_print_opt(struct filter_util *qu, FILE *f, struct rtattr *opt, __u32 handle) in fw_print_opt() 129 struct rtattr *tb[TCA_FW_MAX+1]; in fw_print_opt() 156 struct rtattr *idev = tb[TCA_FW_INDEV]; in fw_print_opt()
|
/external/iproute2/ip/ |
D | xfrm.h | 50 #define XFRMS_RTA(x) ((struct rtattr*)(((char*)(x)) + NLMSG_ALIGN(sizeof(struct xfrm_usersa_info))… 53 #define XFRMP_RTA(x) ((struct rtattr*)(((char*)(x)) + NLMSG_ALIGN(sizeof(struct xfrm_userpolicy_in… 56 #define XFRMSID_RTA(x) ((struct rtattr*)(((char*)(x)) + NLMSG_ALIGN(sizeof(struct xfrm_usersa_id))… 59 #define XFRMPID_RTA(x) ((struct rtattr*)(((char*)(x)) + NLMSG_ALIGN(sizeof(struct xfrm_userpolicy_… 62 #define XFRMACQ_RTA(x) ((struct rtattr*)(((char*)(x)) + NLMSG_ALIGN(sizeof(struct xfrm_user_acquire… 63 #define XFRMEXP_RTA(x) ((struct rtattr*)(((char*)(x)) + NLMSG_ALIGN(sizeof(struct xfrm_user_expire)… 64 #define XFRMPEXP_RTA(x) ((struct rtattr*)(((char*)(x)) + NLMSG_ALIGN(sizeof(struct xfrm_user_polexp… 66 #define XFRMREP_RTA(x) ((struct rtattr*)(((char*)(x)) + NLMSG_ALIGN(sizeof(struct xfrm_user_report)… 68 #define XFRMSAPD_RTA(x) ((struct rtattr*)(((char*)(x)) + NLMSG_ALIGN(sizeof(__u32)))) 150 void xfrm_xfrma_print(struct rtattr *tb[], __u16 family, [all …]
|
D | iproute_lwtunnel.c | 139 static void print_encap_seg6(FILE *fp, struct rtattr *encap) in print_encap_seg6() 141 struct rtattr *tb[SEG6_IPTUNNEL_MAX+1]; in print_encap_seg6() 195 static void print_encap_seg6local(FILE *fp, struct rtattr *encap) in print_encap_seg6local() 197 struct rtattr *tb[SEG6_LOCAL_MAX + 1]; in print_encap_seg6local() 243 static void print_encap_mpls(FILE *fp, struct rtattr *encap) in print_encap_mpls() 245 struct rtattr *tb[MPLS_IPTUNNEL_MAX+1]; in print_encap_mpls() 257 static void print_encap_ip(FILE *fp, struct rtattr *encap) in print_encap_ip() 259 struct rtattr *tb[LWTUNNEL_IP_MAX+1]; in print_encap_ip() 308 static void print_encap_ila(FILE *fp, struct rtattr *encap) in print_encap_ila() 310 struct rtattr *tb[ILA_ATTR_MAX+1]; in print_encap_ila() [all …]
|
D | ipmacsec.c | 377 struct rtattr *attr_sa; in do_modify_nl() 383 struct rtattr *attr_rxsc; in do_modify_nl() 537 static int validate_dump(struct rtattr **attrs) in validate_dump() 545 static int validate_secy_dump(struct rtattr **attrs) in validate_secy_dump() 561 static void print_flag(FILE *f, struct rtattr *attrs[], const char *desc, in print_flag() 593 static void print_attrs(const char *prefix, struct rtattr *attrs[]) in print_attrs() 626 static void print_one_stat(const char **names, struct rtattr **attr, int idx, in print_one_stat() 648 static void print_txsc_stats(const char *prefix, struct rtattr *attr) in print_txsc_stats() 650 struct rtattr *stats[MACSEC_TXSC_STATS_ATTR_MAX + 1]; in print_txsc_stats() 687 static void print_secy_stats(const char *prefix, struct rtattr *attr) in print_secy_stats() [all …]
|
D | iplink_vrf.c | 59 static void vrf_print_opt(struct link_util *lu, FILE *f, struct rtattr *tb[]) in vrf_print_opt() 72 struct rtattr *tb[]) in vrf_slave_print_opt() 126 struct rtattr *tb[IFLA_MAX+1]; in ipvrf_get_table() 127 struct rtattr *li[IFLA_INFO_MAX+1]; in ipvrf_get_table() 128 struct rtattr *vrf_attr[IFLA_VRF_MAX + 1]; in ipvrf_get_table() 196 struct rtattr *tb[IFLA_MAX+1]; in name_is_vrf() 197 struct rtattr *li[IFLA_INFO_MAX+1]; in name_is_vrf()
|
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 | iplink_xdp.c | 32 struct rtattr *xdp_attr; in xdp_ebpf_cb() 85 static void xdp_dump_json(struct rtattr *tb[IFLA_XDP_MAX + 1]) in xdp_dump_json() 101 void xdp_dump(FILE *fp, struct rtattr *xdp, bool link, bool details) in xdp_dump() 103 struct rtattr *tb[IFLA_XDP_MAX + 1]; in xdp_dump()
|
/external/iproute2/lib/ |
D | libnetlink.c | 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() [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/genl/ |
D | ctrl.c | 72 struct rtattr *tb[CTRL_ATTR_MAX + 1]; in genl_ctrl_resolve_family() 74 struct rtattr *attrs; in genl_ctrl_resolve_family() 94 attrs = (struct rtattr *) ((char *) ghdr + GENL_HDRLEN); in genl_ctrl_resolve_family() 131 static int print_ctrl_cmds(FILE *fp, struct rtattr *arg, __u32 ctrl_ver) in print_ctrl_cmds() 133 struct rtattr *tb[CTRL_ATTR_OP_MAX + 1]; in print_ctrl_cmds() 152 static int print_ctrl_grp(FILE *fp, struct rtattr *arg, __u32 ctrl_ver) in print_ctrl_grp() 154 struct rtattr *tb[CTRL_ATTR_MCAST_GRP_MAX + 1]; in print_ctrl_grp() 179 struct rtattr *tb[CTRL_ATTR_MAX + 1]; in print_ctrl() 182 struct rtattr *attrs; in print_ctrl() 208 attrs = (struct rtattr *) ((char *) ghdr + GENL_HDRLEN); in print_ctrl() [all …]
|
/external/iproute2/bridge/ |
D | br_common.h | 2 ((struct rtattr *)(((char *)(r)) + RTA_ALIGN(sizeof(struct br_mdb_entry)))) 5 ((struct rtattr *)(((char *)(r)) + RTA_ALIGN(sizeof(__u32)))) 7 extern void print_vlan_info(FILE *fp, struct rtattr *tb, int ifindex);
|
D | mdb.c | 25 ((struct rtattr *)(((char *)(r)) + NLMSG_ALIGN(sizeof(struct br_port_msg)))) 45 static void __print_router_port_stats(FILE *f, struct rtattr *pattr) in __print_router_port_stats() 47 struct rtattr *tb[MDBA_ROUTER_PATTR_MAX + 1]; in __print_router_port_stats() 79 static void br_print_router_ports(FILE *f, struct rtattr *attr, __u32 brifidx) in br_print_router_ports() 82 struct rtattr *i; in br_print_router_ports() 132 struct nlmsghdr *n, struct rtattr **tb) in print_mdb_entry() 203 static void br_print_mdb_entry(FILE *f, int ifindex, struct rtattr *attr, in br_print_mdb_entry() 206 struct rtattr *etb[MDBA_MDB_EATTR_MAX + 1]; in br_print_mdb_entry() 208 struct rtattr *i; in br_print_mdb_entry() 225 struct rtattr *tb[MDBA_MAX+1], *i; in print_mdb()
|
/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/iproute2/include/uapi/linux/ |
D | rtnetlink.h | 167 struct rtattr { struct 176 #define RTA_OK(rta,len) ((len) >= (int)sizeof(struct rtattr) && \ argument 177 (rta)->rta_len >= sizeof(struct rtattr) && \ 180 (struct rtattr*)(((char*)(rta)) + RTA_ALIGN((rta)->rta_len))) 181 #define RTA_LENGTH(len) (RTA_ALIGN(sizeof(struct rtattr)) + (len)) 335 #define RTM_RTA(r) ((struct rtattr*)(((char*)(r)) + NLMSG_ALIGN(sizeof(struct rtmsg)))) 374 #define RTNH_DATA(rtnh) ((struct rtattr*)(((char*)(rtnh)) + RTNH_LENGTH(0))) 563 #define TCA_RTA(r) ((struct rtattr*)(((char*)(r)) + NLMSG_ALIGN(sizeof(struct tcmsg)))) 698 #define TA_RTA(r) ((struct rtattr*)(((char*)(r)) + NLMSG_ALIGN(sizeof(struct tcamsg))))
|
/external/android-clat/ |
D | getaddr.c | 47 struct rtattr *rta_p; in getaddr_cb() 52 rta_p = (struct rtattr *)IFA_RTA(ifa_p); in getaddr_cb() 63 memcpy(&targ_p->ip.ip6, RTA_DATA(rta_p), rta_p->rta_len - sizeof(struct rtattr)); in getaddr_cb() 70 memcpy(&targ_p->ip.ip4, RTA_DATA(rta_p), rta_p->rta_len - sizeof(struct rtattr)); in getaddr_cb()
|
/external/libnl/include/linux-private/linux/ |
D | rtnetlink.h | 174 struct rtattr { struct 183 #define RTA_OK(rta,len) ((len) >= (int)sizeof(struct rtattr) && \ argument 184 (rta)->rta_len >= sizeof(struct rtattr) && \ 187 (struct rtattr*)(((char*)(rta)) + RTA_ALIGN((rta)->rta_len))) 188 #define RTA_LENGTH(len) (RTA_ALIGN(sizeof(struct rtattr)) + (len)) 350 #define RTM_RTA(r) ((struct rtattr*)(((char*)(r)) + NLMSG_ALIGN(sizeof(struct rtmsg)))) 389 #define RTNH_DATA(rtnh) ((struct rtattr*)(((char*)(rtnh)) + RTNH_LENGTH(0))) 593 #define TCA_RTA(r) ((struct rtattr*)(((char*)(r)) + NLMSG_ALIGN(sizeof(struct tcmsg)))) 728 #define TA_RTA(r) ((struct rtattr*)(((char*)(r)) + NLMSG_ALIGN(sizeof(struct tcamsg))))
|