Searched refs:NLMSG_ALIGN (Results 1 - 25 of 52) sorted by path
123
/external/chromium_org/net/base/ |
H A D | address_tracker_linux_unittest.cc | 123 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 D | udp_transport_impl.cc | 2524 rta = (struct rtattr*)(((char*)&req) + NLMSG_ALIGN(req.n.nlmsg_len));
|
/external/dhcpcd/ |
H A D | if-linux.c | 251 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 D | netlink.c | 28 ((struct rtattr*)(((char*)(r)) + NLMSG_ALIGN(sizeof(struct ifaddrmsg))))
|
/external/iproute2/include/ |
H A D | libnetlink.h | 103 ((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 D | genetlink.h | 18 #define GENL_HDRLEN NLMSG_ALIGN(sizeof(struct genlmsghdr))
|
H A D | if_addr.h | 56 #define IFA_RTA(r) ((struct rtattr*)(((char*)(r)) + NLMSG_ALIGN(sizeof(struct ifaddrmsg))))
|
H A D | if_link.h | 148 #define IFLA_RTA(r) ((struct rtattr*)(((char*)(r)) + NLMSG_ALIGN(sizeof(struct ifinfomsg))))
|
H A D | netlink.h | 79 #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 D | rtnetlink.h | 293 #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 D | ipaddress.c | 567 if (NLMSG_ALIGN(filter.flushp) + n->nlmsg_len > filter.flushe) { 571 fn = (struct nlmsghdr*)(filter.flushb + NLMSG_ALIGN(filter.flushp));
|
H A D | ipaddrlabel.c | 44 #define IFAL_RTA(r) ((struct rtattr*)(((char*)(r)) + NLMSG_ALIGN(sizeof(struct ifaddrlblmsg))))
|
H A D | ipneigh.c | 237 if (NLMSG_ALIGN(filter.flushp) + n->nlmsg_len > filter.flushe) { 241 fn = (struct nlmsghdr*)(filter.flushb + NLMSG_ALIGN(filter.flushp));
|
H A D | iproute.c | 315 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 D | rtmon.c | 45 fwrite((void*)n1, 1, NLMSG_ALIGN(n1->nlmsg_len), fp); 54 fwrite((void*)n, 1, NLMSG_ALIGN(n->nlmsg_len), fp);
|
H A D | 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))))
|
/external/iproute2/lib/ |
H A D | libnetlink.c | 353 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 D | arpd.c | 474 status -= NLMSG_ALIGN(len); 475 h = (struct nlmsghdr*)((char*)h + NLMSG_ALIGN(len));
|
H A D | ss.c | 1585 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 D | f_basic.c | 59 tail = (struct rtattr*)(((void*)n)+NLMSG_ALIGN(n->nlmsg_len));
|
H A D | f_cgroup.c | 43 tail = (struct rtattr*)(((void*)n)+NLMSG_ALIGN(n->nlmsg_len));
|
H A D | m_action.c | 567 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 D | q_htb.c | 96 addattr_l(n, 2024, TCA_HTB_INIT, &opt, NLMSG_ALIGN(sizeof(opt)));
|
/external/iputils/ninfod/ |
H A D | ni_ifaddrs.c | 115 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 D | genetlink.h | 18 #define GENL_HDRLEN NLMSG_ALIGN(sizeof(struct genlmsghdr))
|
Completed in 339 milliseconds
123