/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))))
|
/external/wpa_supplicant_8/src/drivers/ |
D | priv_netlink.h | 49 #define NLMSG_ALIGN(len) (((len) + NLMSG_ALIGNTO - 1) & ~(NLMSG_ALIGNTO - 1)) macro 50 #define NLMSG_HDRLEN ((int) NLMSG_ALIGN(sizeof(struct nlmsghdr))) 51 #define NLMSG_LENGTH(len) ((len) + NLMSG_ALIGN(sizeof(struct nlmsghdr))) 52 #define NLMSG_SPACE(len) NLMSG_ALIGN(NLMSG_LENGTH(len)) 54 #define NLMSG_NEXT(nlh,len) ((len) -= NLMSG_ALIGN((nlh)->nlmsg_len), \ 56 (((char *)(nlh)) + NLMSG_ALIGN((nlh)->nlmsg_len)))
|
D | netlink.c | 31 (u8 *) NLMSG_DATA(h) + NLMSG_ALIGN(sizeof(struct ifinfomsg)), in netlink_receive_link() 197 ((char *) &req + NLMSG_ALIGN(req.hdr.nlmsg_len)), in netlink_send_oper_ifla() 206 ((char *) &req + NLMSG_ALIGN(req.hdr.nlmsg_len)), in netlink_send_oper_ifla()
|
/external/iputils/ninfod/ |
D | ni_ifaddrs.c | 115 char reqbuf[NLMSG_ALIGN(sizeof(struct nlmsghdr)) + NLMSG_ALIGN(sizeof(struct rtgenmsg))]; in nl_sendreq() 361 ifa = data = calloc(1, NLMSG_ALIGN(sizeof(struct ni_ifaddrs[icnt])) in ni_ifaddrs() 376 data += NLMSG_ALIGN(sizeof(struct ni_ifaddrs)) * icnt; in ni_ifaddrs() 432 rtasize = NLMSG_PAYLOAD(nlh, nlmlen) - NLMSG_ALIGN(nlm_struct_size); in ni_ifaddrs() 434 NLMSG_ALIGN(nlm_struct_size)); in ni_ifaddrs() 465 dlen += NLMSG_ALIGN(rtapayload); in ni_ifaddrs() 469 data += NLMSG_ALIGN(rtapayload); in ni_ifaddrs() 475 xlen += NLMSG_ALIGN(rtapayload); in ni_ifaddrs() 479 xdata += NLMSG_ALIGN(rtapayload); in ni_ifaddrs() 506 dlen += NLMSG_ALIGN(ifamap.address_len); in ni_ifaddrs() [all …]
|
/external/iproute2/include/uapi/linux/ |
D | netlink.h | 90 #define NLMSG_ALIGN(len) ( ((len)+NLMSG_ALIGNTO-1) & ~(NLMSG_ALIGNTO-1) ) macro 91 #define NLMSG_HDRLEN ((int) NLMSG_ALIGN(sizeof(struct nlmsghdr))) 93 #define NLMSG_SPACE(len) NLMSG_ALIGN(NLMSG_LENGTH(len)) 95 #define NLMSG_NEXT(nlh,len) ((len) -= NLMSG_ALIGN((nlh)->nlmsg_len), \ 96 (struct nlmsghdr*)(((char*)(nlh)) + NLMSG_ALIGN((nlh)->nlmsg_len)))
|
/external/libnl/include/linux-private/linux/ |
D | netlink.h | 90 #define NLMSG_ALIGN(len) ( ((len)+NLMSG_ALIGNTO-1) & ~(NLMSG_ALIGNTO-1) ) macro 91 #define NLMSG_HDRLEN ((int) NLMSG_ALIGN(sizeof(struct nlmsghdr))) 93 #define NLMSG_SPACE(len) NLMSG_ALIGN(NLMSG_LENGTH(len)) 95 #define NLMSG_NEXT(nlh,len) ((len) -= NLMSG_ALIGN((nlh)->nlmsg_len), \ 96 (struct nlmsghdr*)(((char*)(nlh)) + NLMSG_ALIGN((nlh)->nlmsg_len)))
|
/external/kernel-headers/original/uapi/linux/ |
D | netlink.h | 90 #define NLMSG_ALIGN(len) ( ((len)+NLMSG_ALIGNTO-1) & ~(NLMSG_ALIGNTO-1) ) macro 91 #define NLMSG_HDRLEN ((int) NLMSG_ALIGN(sizeof(struct nlmsghdr))) 93 #define NLMSG_SPACE(len) NLMSG_ALIGN(NLMSG_LENGTH(len)) 95 #define NLMSG_NEXT(nlh,len) ((len) -= NLMSG_ALIGN((nlh)->nlmsg_len), \ 96 (struct nlmsghdr*)(((char*)(nlh)) + NLMSG_ALIGN((nlh)->nlmsg_len)))
|
/external/iproute2/include/ |
D | libnetlink.h | 195 ((struct rtattr *) (((void *) (nmsg)) + NLMSG_ALIGN((nmsg)->nlmsg_len))) 199 ((struct rtattr *)(((char *)(r)) + NLMSG_ALIGN(sizeof(struct ifaddrmsg)))) 207 ((struct rtattr *)(((char *)(r)) + NLMSG_ALIGN(sizeof(struct ifinfomsg)))) 215 ((struct rtattr *)(((char *)(r)) + NLMSG_ALIGN(sizeof(struct ndmsg)))) 223 ((struct rtattr *)(((char *)(r)) + NLMSG_ALIGN(sizeof(struct ndtmsg)))) 231 ((struct rtattr *)(((char *)(r)) + NLMSG_ALIGN(sizeof(struct rtgenmsg)))) 239 ((struct rtattr *)(((char *)(r)) + NLMSG_ALIGN(sizeof(struct if_stats_msg))))
|
/external/iproute2/lib/ |
D | libnetlink.c | 445 fwrite(buf, 1, NLMSG_ALIGN(status), rth->dump_fp); in rtnl_dump_filter_l() 602 status -= NLMSG_ALIGN(len); in __rtnl_talk() 603 h = (struct nlmsghdr *)((char *)h + NLMSG_ALIGN(len)); in __rtnl_talk() 635 status -= NLMSG_ALIGN(len); in __rtnl_talk() 636 h = (struct nlmsghdr *)((char *)h + NLMSG_ALIGN(len)); in __rtnl_talk() 767 status -= NLMSG_ALIGN(len); in rtnl_listen() 768 h = (struct nlmsghdr *)((char *)h + NLMSG_ALIGN(len)); in rtnl_listen() 813 status = fread(NLMSG_DATA(h), 1, NLMSG_ALIGN(l), rtnl); in rtnl_from_file() 866 if (NLMSG_ALIGN(n->nlmsg_len) + RTA_ALIGN(len) > maxlen) { in addattr_l() 877 n->nlmsg_len = NLMSG_ALIGN(n->nlmsg_len) + RTA_ALIGN(len); in addattr_l() [all …]
|
/external/libnl/lib/genl/ |
D | genl.c | 127 if (genlmsg_len(ghdr) < NLMSG_ALIGN(hdrlen)) in genlmsg_valid_hdr() 263 return (char *) genlmsg_user_hdr(gnlh) + NLMSG_ALIGN(hdrlen); in genlmsg_user_data() 277 return genlmsg_len(gnlh) - NLMSG_ALIGN(hdrlen); in genlmsg_user_datalen() 306 return genlmsg_len(gnlh) - NLMSG_ALIGN(hdrlen); in genlmsg_attrlen()
|
/external/linux-kselftest/tools/testing/selftests/net/ |
D | udpgso.c | 364 char data[NLMSG_ALIGN(sizeof(*nh)) + in set_route_mtu() 365 NLMSG_ALIGN(sizeof(*rt)) + in set_route_mtu() 366 NLMSG_ALIGN(RTA_LENGTH(sizeof(addr6))) + in set_route_mtu() 367 NLMSG_ALIGN(RTA_LENGTH(sizeof(int))) + in set_route_mtu() 368 NLMSG_ALIGN(RTA_LENGTH(0) + RTA_LENGTH(sizeof(int)))]; in set_route_mtu() 382 off += NLMSG_ALIGN(sizeof(*nh)); in set_route_mtu() 391 off += NLMSG_ALIGN(sizeof(*rt)); in set_route_mtu() 400 off += NLMSG_ALIGN(rta->rta_len); in set_route_mtu() 406 off += NLMSG_ALIGN(rta->rta_len); in set_route_mtu() 412 off += NLMSG_ALIGN(rta->rta_len); in set_route_mtu()
|
/external/strace/tests/ |
D | netlink_netfilter.c | 112 char str_buf[NLMSG_ALIGN(sizeof(msg)) + 4]; in test_nfgenmsg() 113 char nla_buf[NLMSG_ALIGN(sizeof(msg)) + sizeof(nla)]; in test_nfgenmsg() 163 memcpy(str_buf + NLMSG_ALIGN(sizeof(msg)), "1234", 4); in test_nfgenmsg() 176 memcpy(nla_buf + NLMSG_ALIGN(sizeof(msg)), &nla, sizeof(nla)); in test_nfgenmsg()
|
D | nlattr_mdba_router_port.c | 96 char buf[NLMSG_ALIGN(ifindex) + NLA_HDRLEN + sizeof(type)]; in main() 112 memcpy(buf + NLMSG_ALIGN(ifindex), &nla, sizeof(nla)); in main() 113 memcpy(buf + NLMSG_ALIGN(ifindex) + NLA_HDRLEN, &type, sizeof(type)); in main()
|
/external/strace/tests-mx32/ |
D | netlink_netfilter.c | 112 char str_buf[NLMSG_ALIGN(sizeof(msg)) + 4]; in test_nfgenmsg() 113 char nla_buf[NLMSG_ALIGN(sizeof(msg)) + sizeof(nla)]; in test_nfgenmsg() 163 memcpy(str_buf + NLMSG_ALIGN(sizeof(msg)), "1234", 4); in test_nfgenmsg() 176 memcpy(nla_buf + NLMSG_ALIGN(sizeof(msg)), &nla, sizeof(nla)); in test_nfgenmsg()
|
D | nlattr_mdba_router_port.c | 96 char buf[NLMSG_ALIGN(ifindex) + NLA_HDRLEN + sizeof(type)]; in main() 112 memcpy(buf + NLMSG_ALIGN(ifindex), &nla, sizeof(nla)); in main() 113 memcpy(buf + NLMSG_ALIGN(ifindex) + NLA_HDRLEN, &type, sizeof(type)); in main()
|
/external/strace/tests-m32/ |
D | netlink_netfilter.c | 112 char str_buf[NLMSG_ALIGN(sizeof(msg)) + 4]; in test_nfgenmsg() 113 char nla_buf[NLMSG_ALIGN(sizeof(msg)) + sizeof(nla)]; in test_nfgenmsg() 163 memcpy(str_buf + NLMSG_ALIGN(sizeof(msg)), "1234", 4); in test_nfgenmsg() 176 memcpy(nla_buf + NLMSG_ALIGN(sizeof(msg)), &nla, sizeof(nla)); in test_nfgenmsg()
|
D | nlattr_mdba_router_port.c | 96 char buf[NLMSG_ALIGN(ifindex) + NLA_HDRLEN + sizeof(type)]; in main() 112 memcpy(buf + NLMSG_ALIGN(ifindex), &nla, sizeof(nla)); in main() 113 memcpy(buf + NLMSG_ALIGN(ifindex) + NLA_HDRLEN, &type, sizeof(type)); in main()
|
D | nlattr_mdba_mdb_entry.c | 158 char buf[NLMSG_ALIGN(sizeof(entry)) + sizeof(nla)]; in main() 160 memcpy(buf + NLMSG_ALIGN(sizeof(entry)), &nla, sizeof(nla)); in main()
|
/external/libnl/include/netlink/ |
D | netlink-kernel.h | 206 #define NLMSG_ALIGN(len) ( ((len)+NLMSG_ALIGNTO-1) & ~(NLMSG_ALIGNTO-1) ) 213 #define NLMSG_HDRLEN ((int) NLMSG_ALIGN(sizeof(struct nlmsghdr)))
|
/external/strace/ |
D | rtnl_mdb.c | 90 const size_t offset = NLMSG_ALIGN(sizeof(entry)); in decode_mdba_mdb_entry_info() 171 const size_t offset = NLMSG_ALIGN(sizeof(ifindex)); in decode_mdba_router_port() 226 offset = NLMSG_ALIGN(sizeof(bpm)); in DECL_NETLINK_ROUTE_DECODER()
|
/external/libpcap/ |
D | pcap-netfilter-linux.c | 70 #define HDR_LENGTH (NLMSG_LENGTH(NLMSG_ALIGN(sizeof(struct nfgenmsg)))) 211 int attr_len = nlh->nlmsg_len - NLMSG_ALIGN(HDR_LENGTH); in netfilter_read_linux() 246 pkth.caplen = pkth.len = nlh->nlmsg_len-NLMSG_ALIGN(sizeof(struct nlmsghdr)); in netfilter_read_linux() 271 msg_len = NLMSG_ALIGN(nlh->nlmsg_len); in netfilter_read_linux() 360 struct nfattr *nfa = (struct nfattr *) (buf + NLMSG_ALIGN(nlh->nlmsg_len)); in netfilter_send_config_msg() 365 nlh->nlmsg_len = NLMSG_ALIGN(nlh->nlmsg_len) + NFA_ALIGN(nfa->nfa_len); in netfilter_send_config_msg() 405 if (nlh->nlmsg_len < NLMSG_ALIGN(sizeof(struct nlmsgerr))) { in netfilter_send_config_msg()
|
/external/libnfnetlink/src/ |
D | libnfnetlink.c | 723 remain -= NLMSG_ALIGN(len); in nfnl_listen() 724 h = (struct nlmsghdr *)((char *)h + NLMSG_ALIGN(len)); in nfnl_listen() 855 status -= NLMSG_ALIGN(len); in nfnl_talk() 856 h = (struct nlmsghdr *)((char *)h + NLMSG_ALIGN(len)); in nfnl_talk() 885 if ((NLMSG_ALIGN(n->nlmsg_len) + len) > maxlen) { in nfnl_addattr_l() 894 n->nlmsg_len = (NLMSG_ALIGN(n->nlmsg_len) + NFA_ALIGN(len)); in nfnl_addattr_l() 1270 int attrlen = nlh->nlmsg_len - NLMSG_ALIGN(min_len); in nfnl_check_attributes() 1305 if (nlh->nlmsg_len < NLMSG_LENGTH(NLMSG_ALIGN(sizeof(struct nfgenmsg)))) in __nfnl_handle_msg() 1334 rlen = NLMSG_ALIGN(nlh->nlmsg_len); in nfnl_handle_packet() 1353 if (nlh->nlmsg_len < NLMSG_ALIGN(sizeof(struct nlmsgerr))) { in nfnl_is_error() [all …]
|
/external/ltp/testcases/kernel/containers/share/ |
D | ns_ifmove.c | 111 NLMSG_ALIGN(req.nh.nlmsg_len)); in main() 114 req.nh.nlmsg_len = NLMSG_ALIGN(req.nh.nlmsg_len) + in main()
|
/external/libnfnetlink/include/libnfnetlink/ |
D | libnfnetlink.h | 40 (((void *) (nlh)) + NLMSG_ALIGN((nlh)->nlmsg_len)) 42 #define NFNL_HEADER_LEN (NLMSG_ALIGN(sizeof(struct nlmsghdr)) \ 43 +NLMSG_ALIGN(sizeof(struct nfgenmsg)))
|
/external/libnl/lib/ |
D | msg.c | 76 return NLMSG_ALIGN(nlmsg_msg_size(payload)); in nlmsg_total_size() 114 return (unsigned char *) nlh + NLMSG_ALIGN(nlh->nlmsg_len); in nlmsg_tail() 148 return (struct nlattr *) (data + NLMSG_ALIGN(hdrlen)); in nlmsg_attrdata() 158 return max_t(int, nlmsg_len(nlh) - NLMSG_ALIGN(hdrlen), 0); in nlmsg_attrlen() 198 int totlen = NLMSG_ALIGN(nlh->nlmsg_len); in nlmsg_next() 390 nm = __nlmsg_alloc(NLMSG_ALIGN(hdr->nlmsg_len)); in nlmsg_convert()
|