Searched refs:NLMSG_ALIGN (Results 1 - 25 of 52) sorted by path

123

/external/chromium_org/net/base/
H A Daddress_tracker_linux_unittest.cc123 CHECK_EQ(NLMSG_ALIGN(output->size()), output->size());
136 buffer_.insert(buffer_.end(), NLMSG_ALIGN(buffer_.size()) - buffer_.size(),
/external/chromium_org/third_party/webrtc/test/channel_transport/
H A Dudp_transport_impl.cc2524 rta = (struct rtattr*)(((char*)&req) + NLMSG_ALIGN(req.n.nlmsg_len));
/external/dhcpcd/
H A Dif-linux.c251 rta = (struct rtattr *) ((char *)rtm + NLMSG_ALIGN(sizeof(*rtm)));
364 rta = (struct rtattr *) ((char *)ifi + NLMSG_ALIGN(sizeof(*ifi)));
435 ((struct rtattr *)(((ptrdiff_t)(nmsg))+NLMSG_ALIGN((nmsg)->nlmsg_len)))
444 if (NLMSG_ALIGN(n->nlmsg_len) + RTA_ALIGN(len) > maxlen) {
453 n->nlmsg_len = NLMSG_ALIGN(n->nlmsg_len) + RTA_ALIGN(len);
464 if (NLMSG_ALIGN(n->nlmsg_len) + len > maxlen) {
473 n->nlmsg_len = NLMSG_ALIGN(n->nlmsg_len) + len;
/external/dnsmasq/src/
H A Dnetlink.c28 ((struct rtattr*)(((char*)(r)) + NLMSG_ALIGN(sizeof(struct ifaddrmsg))))
/external/iproute2/include/
H A Dlibnetlink.h103 ((struct rtattr *) (((void *) (nmsg)) + NLMSG_ALIGN((nmsg)->nlmsg_len)))
107 ((struct rtattr*)(((char*)(r)) + NLMSG_ALIGN(sizeof(struct ifaddrmsg))))
115 ((struct rtattr*)(((char*)(r)) + NLMSG_ALIGN(sizeof(struct ifinfomsg))))
123 ((struct rtattr*)(((char*)(r)) + NLMSG_ALIGN(sizeof(struct ndmsg))))
131 ((struct rtattr*)(((char*)(r)) + NLMSG_ALIGN(sizeof(struct ndtmsg))))
/external/iproute2/include/linux/
H A Dgenetlink.h18 #define GENL_HDRLEN NLMSG_ALIGN(sizeof(struct genlmsghdr))
H A Dif_addr.h56 #define IFA_RTA(r) ((struct rtattr*)(((char*)(r)) + NLMSG_ALIGN(sizeof(struct ifaddrmsg))))
H A Dif_link.h148 #define IFLA_RTA(r) ((struct rtattr*)(((char*)(r)) + NLMSG_ALIGN(sizeof(struct ifinfomsg))))
H A Dnetlink.h79 #define NLMSG_ALIGN(len) ( ((len)+NLMSG_ALIGNTO-1) & ~(NLMSG_ALIGNTO-1) ) macro
80 #define NLMSG_HDRLEN ((int) NLMSG_ALIGN(sizeof(struct nlmsghdr)))
81 #define NLMSG_LENGTH(len) ((len)+NLMSG_ALIGN(NLMSG_HDRLEN))
82 #define NLMSG_SPACE(len) NLMSG_ALIGN(NLMSG_LENGTH(len))
84 #define NLMSG_NEXT(nlh,len) ((len) -= NLMSG_ALIGN((nlh)->nlmsg_len), \
85 (struct nlmsghdr*)(((char*)(nlh)) + NLMSG_ALIGN((nlh)->nlmsg_len)))
H A Drtnetlink.h293 #define RTM_RTA(r) ((struct rtattr*)(((char*)(r)) + NLMSG_ALIGN(sizeof(struct rtmsg))))
494 #define TCA_RTA(r) ((struct rtattr*)(((char*)(r)) + NLMSG_ALIGN(sizeof(struct tcmsg))))
600 #define TA_RTA(r) ((struct rtattr*)(((char*)(r)) + NLMSG_ALIGN(sizeof(struct tcamsg))))
/external/iproute2/ip/
H A Dipaddress.c567 if (NLMSG_ALIGN(filter.flushp) + n->nlmsg_len > filter.flushe) {
571 fn = (struct nlmsghdr*)(filter.flushb + NLMSG_ALIGN(filter.flushp));
H A Dipaddrlabel.c44 #define IFAL_RTA(r) ((struct rtattr*)(((char*)(r)) + NLMSG_ALIGN(sizeof(struct ifaddrlblmsg))))
H A Dipneigh.c237 if (NLMSG_ALIGN(filter.flushp) + n->nlmsg_len > filter.flushe) {
241 fn = (struct nlmsghdr*)(filter.flushb + NLMSG_ALIGN(filter.flushp));
H A Diproute.c315 if (NLMSG_ALIGN(filter.flushp) + n->nlmsg_len > filter.flushe) {
319 fn = (struct nlmsghdr*)(filter.flushb + NLMSG_ALIGN(filter.flushp));
621 len -= NLMSG_ALIGN(nh->rtnh_len);
H A Drtmon.c45 fwrite((void*)n1, 1, NLMSG_ALIGN(n1->nlmsg_len), fp);
54 fwrite((void*)n, 1, NLMSG_ALIGN(n->nlmsg_len), fp);
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))))
/external/iproute2/lib/
H A Dlibnetlink.c353 status -= NLMSG_ALIGN(len);
354 h = (struct nlmsghdr*)((char*)h + NLMSG_ALIGN(len));
380 status -= NLMSG_ALIGN(len);
381 h = (struct nlmsghdr*)((char*)h + NLMSG_ALIGN(len));
455 status -= NLMSG_ALIGN(len);
456 h = (struct nlmsghdr*)((char*)h + NLMSG_ALIGN(len));
506 status = fread(NLMSG_DATA(h), 1, NLMSG_ALIGN(l), rtnl);
559 if (NLMSG_ALIGN(n->nlmsg_len) + RTA_ALIGN(len) > maxlen) {
567 n->nlmsg_len = NLMSG_ALIGN(n->nlmsg_len) + RTA_ALIGN(len);
573 if (NLMSG_ALIGN(
[all...]
/external/iproute2/misc/
H A Darpd.c474 status -= NLMSG_ALIGN(len);
475 h = (struct nlmsghdr*)((char*)h + NLMSG_ALIGN(len));
H A Dss.c1585 fwrite(buf, 1, NLMSG_ALIGN(status), dump_fp);
1667 status = fread(h+1, 1, NLMSG_ALIGN(h->nlmsg_len-sizeof(*h)), fp);
2126 fwrite(buf, 1, NLMSG_ALIGN(status), dump_fp);
/external/iproute2/tc/
H A Df_basic.c59 tail = (struct rtattr*)(((void*)n)+NLMSG_ALIGN(n->nlmsg_len));
H A Df_cgroup.c43 tail = (struct rtattr*)(((void*)n)+NLMSG_ALIGN(n->nlmsg_len));
H A Dm_action.c567 msg_size = NLMSG_ALIGN(req.n.nlmsg_len) - NLMSG_ALIGN(sizeof(struct nlmsghdr));
578 req.n.nlmsg_len = NLMSG_ALIGN(req.n.nlmsg_len);
H A Dq_htb.c96 addattr_l(n, 2024, TCA_HTB_INIT, &opt, NLMSG_ALIGN(sizeof(opt)));
/external/iputils/ninfod/
H A Dni_ifaddrs.c115 char reqbuf[NLMSG_ALIGN(sizeof(struct nlmsghdr)) + NLMSG_ALIGN(sizeof(struct rtgenmsg))];
361 ifa = data = calloc(1, NLMSG_ALIGN(sizeof(struct ni_ifaddrs[icnt]))
376 data += NLMSG_ALIGN(sizeof(struct ni_ifaddrs)) * icnt;
432 rtasize = NLMSG_PAYLOAD(nlh, nlmlen) - NLMSG_ALIGN(nlm_struct_size);
434 NLMSG_ALIGN(nlm_struct_size));
465 dlen += NLMSG_ALIGN(rtapayload);
469 data += NLMSG_ALIGN(rtapayload);
475 xlen += NLMSG_ALIGN(rtapayload);
479 xdata += NLMSG_ALIGN(rtapayloa
[all...]
/external/kernel-headers/original/uapi/linux/
H A Dgenetlink.h18 #define GENL_HDRLEN NLMSG_ALIGN(sizeof(struct genlmsghdr))

Completed in 339 milliseconds

123