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

1 2 3 4 5

  /external/iproute2/include/
libnetlink.h 56 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 *rta, int len)
    [all...]
  /external/iproute2/tc/
tc_util.h 31 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)
    [all...]
f_cgroup.c 29 struct rtattr *tail;
43 tail = (struct rtattr*)(((void*)n)+NLMSG_ALIGN(n->nlmsg_len));
85 struct rtattr *opt, __u32 handle)
87 struct rtattr *tb[TCA_CGROUP_MAX+1];
q_drr.c 57 struct rtattr *tail;
86 static int drr_print_opt(struct qdisc_util *qu, FILE *f, struct rtattr *opt)
88 struct rtattr *tb[TCA_DRR_MAX + 1];
102 static int drr_print_xstats(struct qdisc_util *qu, FILE *f, struct rtattr *xstats)
q_prio.c 39 struct rtattr *nest;
100 int prio_print_opt(struct qdisc_util *qu, FILE *f, struct rtattr *opt)
104 struct rtattr *tb[TCA_PRIO_MAX+1];
q_rr.c 39 struct rtattr *nest;
94 int rr_print_opt(struct qdisc_util *qu, FILE *f, struct rtattr *opt)
98 struct rtattr *tb[TCA_PRIO_MAX + 1];
f_basic.c 42 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_fifo.c 63 static int fifo_print_opt(struct qdisc_util *qu, FILE *f, struct rtattr *opt)
94 extern int prio_print_opt(struct qdisc_util *qu, FILE *f, struct rtattr *opt);
  /external/iproute2/ip/
xfrm.h 42 #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))))
140 void xfrm_xfrma_print(struct rtattr *tb[], __u16 family
    [all...]
ip_common.h 41 static inline int rtm_get_table(struct rtmsg *r, struct rtattr **tb)
59 struct rtattr *[]);
61 struct rtattr *);
  /external/wpa_supplicant/
priv_netlink.h 62 ((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/wpa_supplicant_6/wpa_supplicant/src/drivers/
priv_netlink.h 62 ((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/lib/
libnetlink.c 531 struct rtattr *rta;
548 struct rtattr *rta;
575 struct rtattr *addattr_nest(struct nlmsghdr *n, int maxlen, int type)
577 struct rtattr *nest = NLMSG_TAIL(n);
583 int addattr_nest_end(struct nlmsghdr *n, struct rtattr *nest)
589 struct rtattr *addattr_nest_compat(struct nlmsghdr *n, int maxlen, int type,
592 struct rtattr *start = NLMSG_TAIL(n);
599 int addattr_nest_compat_end(struct nlmsghdr *n, struct rtattr *start)
601 struct rtattr *nest = (void *)start + NLMSG_ALIGN(start->rta_len);
608 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];
183 struct rtattr *tb[CTRL_ATTR_MAX + 1];
186 struct rtattr *attrs;
212 attrs = (struct rtattr *) ((char *) ghdr + GENL_HDRLEN)
    [all...]
  /external/kernel-headers/original/linux/
rtnetlink.h 130 struct rtattr struct
140 #define RTA_OK(rta,len) ((len) >= (int)sizeof(struct rtattr) && \
141 (rta)->rta_len >= sizeof(struct rtattr) && \
144 (struct rtattr*)(((char*)(rta)) + RTA_ALIGN((rta)->rta_len)))
145 #define RTA_LENGTH(len) (RTA_ALIGN(sizeof(struct rtattr)) + (len))
289 #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)))
342 /* RTM_METRICS --- array of struct rtattr with types of RTAX_* */
498 #define TCA_RTA(r) ((struct rtattr*)(((char*)(r)) + NLMSG_ALIGN(sizeof(struct tcmsg))))
607 #define TA_RTA(r) ((struct rtattr*)(((char*)(r)) + NLMSG_ALIGN(sizeof(struct tcamsg)))
    [all...]
  /development/ndk/platforms/android-3/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...]
  /prebuilt/ndk/android-ndk-r4/platforms/android-3/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...]
  /prebuilt/ndk/android-ndk-r4/platforms/android-4/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...]
  /prebuilt/ndk/android-ndk-r4/platforms/android-5/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...]
  /prebuilt/ndk/android-ndk-r4/platforms/android-5/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...]
  /prebuilt/ndk/android-ndk-r4/platforms/android-8/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...]
  /prebuilt/ndk/android-ndk-r4/platforms/android-8/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...]
  /bionic/libc/kernel/common/linux/
rtnetlink.h 129 struct rtattr struct
137 #define RTA_OK(rta,len) ((len) >= (int)sizeof(struct rtattr) && (rta)->rta_len >= sizeof(struct rtattr) && (rta)->rta_len <= (len))
138 #define RTA_NEXT(rta,attrlen) ((attrlen) -= RTA_ALIGN((rta)->rta_len), (struct rtattr*)(((char*)(rta)) + RTA_ALIGN((rta)->rta_len)))
139 #define RTA_LENGTH(len) (RTA_ALIGN(sizeof(struct rtattr)) + (len))
243 #define RTM_RTA(r) ((struct rtattr*)(((char*)(r)) + NLMSG_ALIGN(sizeof(struct rtmsg))))
264 #define RTNH_DATA(rtnh) ((struct rtattr*)(((char*)(rtnh)) + RTNH_LENGTH(0)))
412 #define TCA_RTA(r) ((struct rtattr*)(((char*)(r)) + NLMSG_ALIGN(sizeof(struct tcmsg))))
512 #define TA_RTA(r) ((struct rtattr*)(((char*)(r)) + NLMSG_ALIGN(sizeof(struct tcamsg))))
  /external/iproute2/include/linux/
rtnetlink.h 130 struct rtattr struct
140 #define RTA_OK(rta,len) ((len) >= (int)sizeof(struct rtattr) && \
141 (rta)->rta_len >= sizeof(struct rtattr) && \
144 (struct rtattr*)(((char*)(rta)) + RTA_ALIGN((rta)->rta_len)))
145 #define RTA_LENGTH(len) (RTA_ALIGN(sizeof(struct rtattr)) + (len))
289 #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)))
342 /* RTM_METRICS --- array of struct rtattr with types of RTAX_* */
498 #define TCA_RTA(r) ((struct rtattr*)(((char*)(r)) + NLMSG_ALIGN(sizeof(struct tcmsg))))
605 #define TA_RTA(r) ((struct rtattr*)(((char*)(r)) + NLMSG_ALIGN(sizeof(struct tcamsg)))
    [all...]
  /prebuilt/linux-x86/toolchain/i686-linux-glibc2.7-4.4.3/sysroot/usr/include/linux/
rtnetlink.h 117 struct rtattr struct
127 #define RTA_OK(rta,len) ((len) >= (int)sizeof(struct rtattr) && \
128 (rta)->rta_len >= sizeof(struct rtattr) && \
131 (struct rtattr*)(((char*)(rta)) + RTA_ALIGN((rta)->rta_len)))
132 #define RTA_LENGTH(len) (RTA_ALIGN(sizeof(struct rtattr)) + (len))
274 #define RTM_RTA(r) ((struct rtattr*)(((char*)(r)) + NLMSG_ALIGN(sizeof(struct rtmsg))))
309 #define RTNH_DATA(rtnh) ((struct rtattr*)(((char*)(rtnh)) + RTNH_LENGTH(0)))
327 /* RTM_METRICS --- array of struct rtattr with types of RTAX_* */
482 #define TCA_RTA(r) ((struct rtattr*)(((char*)(r)) + NLMSG_ALIGN(sizeof(struct tcmsg))))
585 #define TA_RTA(r) ((struct rtattr*)(((char*)(r)) + NLMSG_ALIGN(sizeof(struct tcamsg)))
    [all...]

Completed in 257 milliseconds

1 2 3 4 5