/third_party/wpa_supplicant/wpa_supplicant-2.9/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()
|
/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/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()
|
/third_party/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)))
|
D | if_addr.h | 66 #define IFA_RTA(r) ((struct rtattr*)(((char*)(r)) + NLMSG_ALIGN(sizeof(struct ifaddrmsg))))
|
D | genetlink.h | 19 #define GENL_HDRLEN NLMSG_ALIGN(sizeof(struct genlmsghdr))
|
D | rtnetlink.h | 350 #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))))
|
D | if_link.h | 176 #define IFLA_RTA(r) ((struct rtattr*)(((char*)(r)) + NLMSG_ALIGN(sizeof(struct ifinfomsg))))
|
/third_party/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()
|
/third_party/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)))
|
/third_party/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()
|
/third_party/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()
|
D | attr.c | 465 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/ |
D | nfnl.h | 23 #define NFNL_HDRLEN NLMSG_ALIGN(sizeof(struct nfgenmsg))
|
/third_party/libnl/include/linux-private/linux/netfilter/ |
D | nfnetlink_compat.h | 59 + NLMSG_ALIGN(sizeof(struct nfgenmsg))))
|
/third_party/ltp/testcases/kernel/crypto/ |
D | crypto_user01.c | 119 const struct rtattr *rta = (void *)alg + NLMSG_ALIGN(sizeof(*alg)); in validate_one_alg()
|
/third_party/libnl/lib/route/ |
D | act.c | 406 NLMSG_ALIGN(nla_len(tb)), NULL); in rtnl_act_parse()
|
/third_party/ltp/testcases/kernel/controllers/cgroup/ |
D | cgroup_regression_getdelays.c | 144 msg.n.nlmsg_len += NLMSG_ALIGN(na->nla_len); in send_cmd()
|
/third_party/toybox/toys/pending/ |
D | ip.c | 465 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/ |
D | vlan_full.c | 648 nlmsg_len = NLMSG_ALIGN(sizeof(struct ifinfomsg)); in vlan_read_ifnames()
|
/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/src/ap/ |
D | vlan_full.c | 648 nlmsg_len = NLMSG_ALIGN(sizeof(struct ifinfomsg)); in vlan_read_ifnames()
|
/third_party/libnl/lib/route/qdisc/ |
D | netem.c | 330 NLMSG_ALIGN(msg->nm_nlh->nlmsg_len)); in netem_msg_fill_raw()
|
/third_party/libnl/ |
D | ChangeLog | 279 for raw data not aligned to NLMSG_ALIGN
|
/third_party/libnl/doc/ |
D | core.txt | 1228 <---- NLMSG_HDRLEN -----> <- NLMSG_ALIGN(len) -> <---- NLMSG_HDRLEN ---
|