/external/libnl/include/linux/ |
H A D | netlink.h | 76 #define NLMSG_ALIGN(len) ( ((len)+NLMSG_ALIGNTO-1) & ~(NLMSG_ALIGNTO-1) ) macro 77 #define NLMSG_HDRLEN ((int) NLMSG_ALIGN(sizeof(struct nlmsghdr))) 78 #define NLMSG_LENGTH(len) ((len)+NLMSG_ALIGN(NLMSG_HDRLEN)) 79 #define NLMSG_SPACE(len) NLMSG_ALIGN(NLMSG_LENGTH(len)) 81 #define NLMSG_NEXT(nlh,len) ((len) -= NLMSG_ALIGN((nlh)->nlmsg_len), \ 82 (struct nlmsghdr*)(((char*)(nlh)) + NLMSG_ALIGN((nlh)->nlmsg_len)))
|
H A D | genetlink.h | 17 #define GENL_HDRLEN NLMSG_ALIGN(sizeof(struct genlmsghdr))
|
H A D | if_addr.h | 58 #define IFA_RTA(r) ((struct rtattr*)(((char*)(r)) + NLMSG_ALIGN(sizeof(struct ifaddrmsg))))
|
/external/wpa_supplicant_8/hostapd/src/drivers/ |
H A 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)))
|
H A D | netlink.c | 31 (u8 *) NLMSG_DATA(h) + NLMSG_ALIGN(sizeof(struct ifinfomsg)), 197 ((char *) &req + NLMSG_ALIGN(req.hdr.nlmsg_len)), 202 req.hdr.nlmsg_len = NLMSG_ALIGN(req.hdr.nlmsg_len) + 207 ((char *) &req + NLMSG_ALIGN(req.hdr.nlmsg_len)), 212 req.hdr.nlmsg_len = NLMSG_ALIGN(req.hdr.nlmsg_len) +
|
/external/wpa_supplicant_8/src/drivers/ |
H A 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)))
|
H A D | netlink.c | 31 (u8 *) NLMSG_DATA(h) + NLMSG_ALIGN(sizeof(struct ifinfomsg)), 197 ((char *) &req + NLMSG_ALIGN(req.hdr.nlmsg_len)), 202 req.hdr.nlmsg_len = NLMSG_ALIGN(req.hdr.nlmsg_len) + 207 ((char *) &req + NLMSG_ALIGN(req.hdr.nlmsg_len)), 212 req.hdr.nlmsg_len = NLMSG_ALIGN(req.hdr.nlmsg_len) +
|
/external/wpa_supplicant_8/wpa_supplicant/src/drivers/ |
H A 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)))
|
H A D | netlink.c | 31 (u8 *) NLMSG_DATA(h) + NLMSG_ALIGN(sizeof(struct ifinfomsg)), 197 ((char *) &req + NLMSG_ALIGN(req.hdr.nlmsg_len)), 202 req.hdr.nlmsg_len = NLMSG_ALIGN(req.hdr.nlmsg_len) + 207 ((char *) &req + NLMSG_ALIGN(req.hdr.nlmsg_len)), 212 req.hdr.nlmsg_len = NLMSG_ALIGN(req.hdr.nlmsg_len) +
|
/external/iproute2/ip/ |
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))))
|
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);
|
/external/iproute2/include/linux/ |
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 | 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))))
|
/external/kernel-headers/original/uapi/linux/ |
H A D | netlink.h | 80 #define NLMSG_ALIGN(len) ( ((len)+NLMSG_ALIGNTO-1) & ~(NLMSG_ALIGNTO-1) ) macro 81 #define NLMSG_HDRLEN ((int) NLMSG_ALIGN(sizeof(struct nlmsghdr))) 83 #define NLMSG_SPACE(len) NLMSG_ALIGN(NLMSG_LENGTH(len)) 85 #define NLMSG_NEXT(nlh,len) ((len) -= NLMSG_ALIGN((nlh)->nlmsg_len), \ 86 (struct nlmsghdr*)(((char*)(nlh)) + NLMSG_ALIGN((nlh)->nlmsg_len)))
|
H A D | genetlink.h | 18 #define GENL_HDRLEN NLMSG_ALIGN(sizeof(struct genlmsghdr))
|
H A D | if_addr.h | 63 #define IFA_RTA(r) ((struct rtattr*)(((char*)(r)) + NLMSG_ALIGN(sizeof(struct ifaddrmsg))))
|
H A D | netfilter_decnet.h | 60 #define NFDN_RTMSG(r) ((unsigned char *)(r) + NLMSG_ALIGN(sizeof(struct nf_dn_rtmsg)))
|
/external/libnl/include/netlink/netfilter/ |
H A D | nfnl.h | 23 #define NFNL_HDRLEN NLMSG_ALIGN(sizeof(struct nfgenmsg))
|
/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/libnl/lib/genl/ |
H A D | genl.c | 17 * <------- NLMSG_ALIGN(hlen) ------> <---- NLMSG_ALIGN(len) ---> 154 if (genlmsg_len(ghdr) < NLMSG_ALIGN(hdrlen)) 213 return genlmsg_data(gnlh) + NLMSG_ALIGN(hdrlen); 223 return genlmsg_len(gnlh) - NLMSG_ALIGN(hdrlen);
|
/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/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/kernel-headers/original/uapi/linux/netfilter/ |
H A D | nfnetlink_compat.h | 59 + NLMSG_ALIGN(sizeof(struct nfgenmsg))))
|
/external/iproute2/tc/ |
H A D | f_cgroup.c | 43 tail = (struct rtattr*)(((void*)n)+NLMSG_ALIGN(n->nlmsg_len));
|