HomeSort by relevance Sort by last modified time
    Searched refs:rtattr (Results 1 - 25 of 318) sorted by null

1 2 3 4 5 6 7 8 91011>>

  /external/iproute2/ip/
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);
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_info))))
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_id))))
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_polexpire))))
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...]
iproute_lwtunnel.c 58 static void print_encap_mpls(FILE *fp, struct rtattr *encap)
60 struct rtattr *tb[MPLS_IPTUNNEL_MAX+1];
72 static void print_encap_ip(FILE *fp, struct rtattr *encap)
74 struct rtattr *tb[LWTUNNEL_IP_MAX+1];
103 static void print_encap_ila(FILE *fp, struct rtattr *encap)
105 struct rtattr *tb[ILA_ATTR_MAX+1];
118 static void print_encap_ip6(FILE *fp, struct rtattr *encap)
120 struct rtattr *tb[LWTUNNEL_IP6_MAX+1];
149 void lwt_print_encap(FILE *fp, struct rtattr *encap_type,
150 struct rtattr *encap
    [all...]
iplink_bond_slave.c 25 static void print_slave_state(FILE *f, struct rtattr *tb)
42 static void print_slave_mii_status(FILE *f, struct rtattr *tb)
52 static void bond_slave_print_opt(struct link_util *lu, FILE *f, struct rtattr *tb[])
  /external/iproute2/include/
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/
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)
    [all...]
f_cgroup.c 29 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];
q_clsact.c 25 static int clsact_print_opt(struct qdisc_util *qu, FILE *f, struct rtattr *opt)
q_drr.c 55 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)
f_flower.c 167 struct rtattr *tail;
179 tail = (struct rtattr *) (((void *) n) + NLMSG_ALIGN(n->nlmsg_len));
333 struct rtattr *addr_attr,
334 struct rtattr *mask_attr)
354 struct rtattr *eth_type_attr)
373 struct rtattr *ip_proto_attr)
392 struct rtattr *addr4_attr,
393 struct rtattr *mask4_attr,
394 struct rtattr *addr6_attr,
395 struct rtattr *mask6_attr
    [all...]
q_prio.c 36 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];
q_qfq.c 59 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];
q_rr.c 37 struct rtattr *nest;
91 static int rr_print_opt(struct qdisc_util *qu, FILE *f, struct rtattr *opt)
95 struct rtattr *tb[TCA_PRIO_MAX + 1];
f_basic.c 43 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];
q_ingress.c 42 struct rtattr *opt)
  /external/libnfnetlink/src/
rtnl.h 28 int rtnl_parse_rtattr(struct rtattr *tb[], int max, struct rtattr *rta, int len);
  /external/wpa_supplicant_8/src/drivers/
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/lib/
libgenl.c 14 struct rtattr *tb[CTRL_ATTR_MAX + 1];
17 struct rtattr *attrs;
37 attrs = (struct rtattr *) ((char *) ghdr + GENL_HDRLEN);
libnetlink.c 113 struct rtattr ext_req __attribute__ ((aligned(NLMSG_ALIGNTO)));
654 struct rtattr *rta;
681 struct rtattr *addattr_nest(struct nlmsghdr *n, int maxlen, int type)
683 struct rtattr *nest = NLMSG_TAIL(n);
689 int addattr_nest_end(struct nlmsghdr *n, struct rtattr *nest)
695 struct rtattr *addattr_nest_compat(struct nlmsghdr *n, int maxlen, int type,
698 struct rtattr *start = NLMSG_TAIL(n);
705 int addattr_nest_compat_end(struct nlmsghdr *n, struct rtattr *start)
707 struct rtattr *nest = (void *)start + NLMSG_ALIGN(start->rta_len);
714 int rta_addattr32(struct rtattr *rta, int maxlen, int type, __u32 data
    [all...]
  /external/iproute2/genl/
ctrl.c 76 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];
184 struct rtattr *tb[CTRL_ATTR_MAX + 1];
187 struct rtattr *attrs;
213 attrs = (struct rtattr *) ((char *) ghdr + GENL_HDRLEN)
    [all...]
  /external/android-clat/
getaddr.c 47 struct rtattr *rta_p;
52 rta_p = (struct rtattr *)IFA_RTA(ifa_p);
65 memcpy(&targ_p->ip.ip6, RTA_DATA(rta_p), rta_p->rta_len - sizeof(struct rtattr));
72 memcpy(&targ_p->ip.ip4, RTA_DATA(rta_p), rta_p->rta_len - sizeof(struct rtattr));
  /development/ndk/platforms/android-9/include/linux/
rtnetlink.h 112 struct rtattr struct
120 #define RTA_OK(rta,len) ((len) >= (int)sizeof(struct rtattr) && (rta)->rta_len >= sizeof(struct rtattr) && (rta)->rta_len <= (len))
121 #define RTA_NEXT(rta,attrlen) ((attrlen) -= RTA_ALIGN((rta)->rta_len), (struct rtattr*)(((char*)(rta)) + RTA_ALIGN((rta)->rta_len)))
122 #define RTA_LENGTH(len) (RTA_ALIGN(sizeof(struct rtattr)) + (len))
224 #define RTM_RTA(r) ((struct rtattr*)(((char*)(r)) + NLMSG_ALIGN(sizeof(struct rtmsg))))
245 #define RTNH_DATA(rtnh) ((struct rtattr*)(((char*)(rtnh)) + RTNH_LENGTH(0)))
360 #define IFA_RTA(r) ((struct rtattr*)(((char*)(r)) + NLMSG_ALIGN(sizeof(struct ifaddrmsg))))
386 #define NDA_RTA(r) ((struct rtattr*)(((char*)(r)) + NLMSG_ALIGN(sizeof(struct ndmsg))))
480 #define NDTA_RTA(r) ((struct rtattr*)(((char*)(r)) + NLMSG_ALIGN(sizeof(struct ndtmsg)))
    [all...]
  /prebuilts/ndk/r10/platforms/android-12/arch-arm/usr/include/linux/
rtnetlink.h 112 struct rtattr struct
120 #define RTA_OK(rta,len) ((len) >= (int)sizeof(struct rtattr) && (rta)->rta_len >= sizeof(struct rtattr) && (rta)->rta_len <= (len))
121 #define RTA_NEXT(rta,attrlen) ((attrlen) -= RTA_ALIGN((rta)->rta_len), (struct rtattr*)(((char*)(rta)) + RTA_ALIGN((rta)->rta_len)))
122 #define RTA_LENGTH(len) (RTA_ALIGN(sizeof(struct rtattr)) + (len))
224 #define RTM_RTA(r) ((struct rtattr*)(((char*)(r)) + NLMSG_ALIGN(sizeof(struct rtmsg))))
245 #define RTNH_DATA(rtnh) ((struct rtattr*)(((char*)(rtnh)) + RTNH_LENGTH(0)))
360 #define IFA_RTA(r) ((struct rtattr*)(((char*)(r)) + NLMSG_ALIGN(sizeof(struct ifaddrmsg))))
386 #define NDA_RTA(r) ((struct rtattr*)(((char*)(r)) + NLMSG_ALIGN(sizeof(struct ndmsg))))
480 #define NDTA_RTA(r) ((struct rtattr*)(((char*)(r)) + NLMSG_ALIGN(sizeof(struct ndtmsg)))
    [all...]
  /prebuilts/ndk/r10/platforms/android-12/arch-mips/usr/include/linux/
rtnetlink.h 112 struct rtattr struct
120 #define RTA_OK(rta,len) ((len) >= (int)sizeof(struct rtattr) && (rta)->rta_len >= sizeof(struct rtattr) && (rta)->rta_len <= (len))
121 #define RTA_NEXT(rta,attrlen) ((attrlen) -= RTA_ALIGN((rta)->rta_len), (struct rtattr*)(((char*)(rta)) + RTA_ALIGN((rta)->rta_len)))
122 #define RTA_LENGTH(len) (RTA_ALIGN(sizeof(struct rtattr)) + (len))
224 #define RTM_RTA(r) ((struct rtattr*)(((char*)(r)) + NLMSG_ALIGN(sizeof(struct rtmsg))))
245 #define RTNH_DATA(rtnh) ((struct rtattr*)(((char*)(rtnh)) + RTNH_LENGTH(0)))
360 #define IFA_RTA(r) ((struct rtattr*)(((char*)(r)) + NLMSG_ALIGN(sizeof(struct ifaddrmsg))))
386 #define NDA_RTA(r) ((struct rtattr*)(((char*)(r)) + NLMSG_ALIGN(sizeof(struct ndmsg))))
480 #define NDTA_RTA(r) ((struct rtattr*)(((char*)(r)) + NLMSG_ALIGN(sizeof(struct ndtmsg)))
    [all...]
  /prebuilts/ndk/r10/platforms/android-12/arch-x86/usr/include/linux/
rtnetlink.h 112 struct rtattr struct
120 #define RTA_OK(rta,len) ((len) >= (int)sizeof(struct rtattr) && (rta)->rta_len >= sizeof(struct rtattr) && (rta)->rta_len <= (len))
121 #define RTA_NEXT(rta,attrlen) ((attrlen) -= RTA_ALIGN((rta)->rta_len), (struct rtattr*)(((char*)(rta)) + RTA_ALIGN((rta)->rta_len)))
122 #define RTA_LENGTH(len) (RTA_ALIGN(sizeof(struct rtattr)) + (len))
224 #define RTM_RTA(r) ((struct rtattr*)(((char*)(r)) + NLMSG_ALIGN(sizeof(struct rtmsg))))
245 #define RTNH_DATA(rtnh) ((struct rtattr*)(((char*)(rtnh)) + RTNH_LENGTH(0)))
360 #define IFA_RTA(r) ((struct rtattr*)(((char*)(r)) + NLMSG_ALIGN(sizeof(struct ifaddrmsg))))
386 #define NDA_RTA(r) ((struct rtattr*)(((char*)(r)) + NLMSG_ALIGN(sizeof(struct ndmsg))))
480 #define NDTA_RTA(r) ((struct rtattr*)(((char*)(r)) + NLMSG_ALIGN(sizeof(struct ndtmsg)))
    [all...]

Completed in 7349 milliseconds

1 2 3 4 5 6 7 8 91011>>