Home
last modified time | relevance | path

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

/third_party/wpa_supplicant/wpa_supplicant-2.9/src/drivers/
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)))
Dnetlink.c31 (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()
/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/src/drivers/
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)))
Dnetlink.c31 (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()
/third_party/libnl/include/linux-private/linux/
Dnetlink.h90 #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)))
Dif_addr.h66 #define IFA_RTA(r) ((struct rtattr*)(((char*)(r)) + NLMSG_ALIGN(sizeof(struct ifaddrmsg))))
Dgenetlink.h19 #define GENL_HDRLEN NLMSG_ALIGN(sizeof(struct genlmsghdr))
Drtnetlink.h350 #define RTM_RTA(r) ((struct rtattr*)(((char*)(r)) + NLMSG_ALIGN(sizeof(struct rtmsg))))
593 #define TCA_RTA(r) ((struct rtattr*)(((char*)(r)) + NLMSG_ALIGN(sizeof(struct tcmsg))))
728 #define TA_RTA(r) ((struct rtattr*)(((char*)(r)) + NLMSG_ALIGN(sizeof(struct tcamsg))))
Dif_link.h176 #define IFLA_RTA(r) ((struct rtattr*)(((char*)(r)) + NLMSG_ALIGN(sizeof(struct ifinfomsg))))
/third_party/libnl/lib/genl/
Dgenl.c127 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()
/third_party/libnl/include/netlink/
Dnetlink-kernel.h206 #define NLMSG_ALIGN(len) ( ((len)+NLMSG_ALIGNTO-1) & ~(NLMSG_ALIGNTO-1) )
213 #define NLMSG_HDRLEN ((int) NLMSG_ALIGN(sizeof(struct nlmsghdr)))
/third_party/ltp/testcases/kernel/containers/share/
Dns_ifmove.c111 NLMSG_ALIGN(req.nh.nlmsg_len)); in main()
114 req.nh.nlmsg_len = NLMSG_ALIGN(req.nh.nlmsg_len) + in main()
/third_party/libnl/lib/
Dmsg.c76 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()
Dattr.c465 tlen = NLMSG_ALIGN(msg->nm_nlh->nlmsg_len) + nla_total_size(attrlen); in nla_reserve()
936 pad = NLMSG_ALIGN(msg->nm_nlh->nlmsg_len) - msg->nm_nlh->nlmsg_len; in _nest_end()
/third_party/libnl/include/netlink/netfilter/
Dnfnl.h23 #define NFNL_HDRLEN NLMSG_ALIGN(sizeof(struct nfgenmsg))
/third_party/libnl/include/linux-private/linux/netfilter/
Dnfnetlink_compat.h59 + NLMSG_ALIGN(sizeof(struct nfgenmsg))))
/third_party/ltp/testcases/kernel/crypto/
Dcrypto_user01.c119 const struct rtattr *rta = (void *)alg + NLMSG_ALIGN(sizeof(*alg)); in validate_one_alg()
/third_party/libnl/lib/route/
Dact.c406 NLMSG_ALIGN(nla_len(tb)), NULL); in rtnl_act_parse()
/third_party/ltp/testcases/kernel/controllers/cgroup/
Dcgroup_regression_getdelays.c144 msg.n.nlmsg_len += NLMSG_ALIGN(na->nla_len); in send_cmd()
/third_party/toybox/toys/pending/
Dip.c465 rta->rta_len = NLMSG_ALIGN(rta->rta_len) + RTA_ALIGN(len); in add_varlen_rtattr_to_buffer()
482 if ((int)(NLMSG_ALIGN(n->nlmsg_len) + len) > maxlen) return; in add_string_to_rtattr()
483 rta = (struct rtattr*)(((char*)n) + NLMSG_ALIGN(n->nlmsg_len)); in add_string_to_rtattr()
487 n->nlmsg_len = NLMSG_ALIGN(n->nlmsg_len) + len; in add_string_to_rtattr()
497 ((struct rtattr *) (((void *) (nmsg)) + NLMSG_ALIGN((nmsg)->nlmsg_len)))
/third_party/wpa_supplicant/wpa_supplicant-2.9/src/ap/
Dvlan_full.c648 nlmsg_len = NLMSG_ALIGN(sizeof(struct ifinfomsg)); in vlan_read_ifnames()
/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/src/ap/
Dvlan_full.c648 nlmsg_len = NLMSG_ALIGN(sizeof(struct ifinfomsg)); in vlan_read_ifnames()
/third_party/libnl/lib/route/qdisc/
Dnetem.c330 NLMSG_ALIGN(msg->nm_nlh->nlmsg_len)); in netem_msg_fill_raw()
/third_party/libnl/
DChangeLog279 for raw data not aligned to NLMSG_ALIGN
/third_party/libnl/doc/
Dcore.txt1228 <---- NLMSG_HDRLEN -----> <- NLMSG_ALIGN(len) -> <---- NLMSG_HDRLEN ---