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

123

/external/libnl/include/linux/
H A Dnetlink.h76 #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 Dgenetlink.h17 #define GENL_HDRLEN NLMSG_ALIGN(sizeof(struct genlmsghdr))
H A Dif_addr.h58 #define IFA_RTA(r) ((struct rtattr*)(((char*)(r)) + NLMSG_ALIGN(sizeof(struct ifaddrmsg))))
/external/wpa_supplicant_8/hostapd/src/drivers/
H A Dpriv_netlink.h49 #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 Dnetlink.c31 (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 Dpriv_netlink.h49 #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 Dnetlink.c31 (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 Dpriv_netlink.h49 #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 Dnetlink.c31 (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 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))))
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);
/external/iproute2/include/linux/
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 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))))
/external/kernel-headers/original/uapi/linux/
H A Dnetlink.h80 #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 Dgenetlink.h18 #define GENL_HDRLEN NLMSG_ALIGN(sizeof(struct genlmsghdr))
H A Dif_addr.h63 #define IFA_RTA(r) ((struct rtattr*)(((char*)(r)) + NLMSG_ALIGN(sizeof(struct ifaddrmsg))))
H A Dnetfilter_decnet.h60 #define NFDN_RTMSG(r) ((unsigned char *)(r) + NLMSG_ALIGN(sizeof(struct nf_dn_rtmsg)))
/external/libnl/include/netlink/netfilter/
H A Dnfnl.h23 #define NFNL_HDRLEN NLMSG_ALIGN(sizeof(struct nfgenmsg))
/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/libnl/lib/genl/
H A Dgenl.c17 * <------- 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 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/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/kernel-headers/original/uapi/linux/netfilter/
H A Dnfnetlink_compat.h59 + NLMSG_ALIGN(sizeof(struct nfgenmsg))))
/external/iproute2/tc/
H A Df_cgroup.c43 tail = (struct rtattr*)(((void*)n)+NLMSG_ALIGN(n->nlmsg_len));

Completed in 197 milliseconds

123