/external/iproute2/ip/ |
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_in… 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_… 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_polexp… 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))))
|
D | rtmon.c | 45 fwrite((void*)n1, 1, NLMSG_ALIGN(n1->nlmsg_len), fp); in write_stamp() 54 fwrite((void*)n, 1, NLMSG_ALIGN(n->nlmsg_len), fp); in dump_msg()
|
D | ipneigh.c | 236 if (NLMSG_ALIGN(filter.flushp) + n->nlmsg_len > filter.flushe) { in print_neigh() 240 fn = (struct nlmsghdr*)(filter.flushb + NLMSG_ALIGN(filter.flushp)); in print_neigh()
|
/external/iproute2/include/linux/ |
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)))
|
D | rtnetlink.h | 290 #define RTM_RTA(r) ((struct rtattr*)(((char*)(r)) + NLMSG_ALIGN(sizeof(struct rtmsg)))) 491 #define TCA_RTA(r) ((struct rtattr*)(((char*)(r)) + NLMSG_ALIGN(sizeof(struct tcmsg)))) 595 #define TA_RTA(r) ((struct rtattr*)(((char*)(r)) + NLMSG_ALIGN(sizeof(struct tcamsg))))
|
D | if_addr.h | 56 #define IFA_RTA(r) ((struct rtattr*)(((char*)(r)) + NLMSG_ALIGN(sizeof(struct ifaddrmsg))))
|
D | genetlink.h | 18 #define GENL_HDRLEN NLMSG_ALIGN(sizeof(struct genlmsghdr))
|
D | if_link.h | 125 #define IFLA_RTA(r) ((struct rtattr*)(((char*)(r)) + NLMSG_ALIGN(sizeof(struct ifinfomsg))))
|
/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() 168 ((char *) &req + NLMSG_ALIGN(req.hdr.nlmsg_len)), in netlink_send_oper_ifla() 173 req.hdr.nlmsg_len = NLMSG_ALIGN(req.hdr.nlmsg_len) + in netlink_send_oper_ifla() 178 ((char *) &req + NLMSG_ALIGN(req.hdr.nlmsg_len)), in netlink_send_oper_ifla() 183 req.hdr.nlmsg_len = NLMSG_ALIGN(req.hdr.nlmsg_len) + in netlink_send_oper_ifla()
|
/external/kernel-headers/original/linux/ |
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))) 241 nlh = (struct nlmsghdr*)skb_put(skb, NLMSG_ALIGN(size)); in __nlmsg_put() 247 if (!__builtin_constant_p(size) || NLMSG_ALIGN(size) - size != 0) in __nlmsg_put() 248 memset(NLMSG_DATA(nlh) + len, 0, NLMSG_ALIGN(size) - size); in __nlmsg_put()
|
D | if_addr.h | 60 #define IFA_RTA(r) ((struct rtattr*)(((char*)(r)) + NLMSG_ALIGN(sizeof(struct ifaddrmsg))))
|
D | genetlink.h | 18 #define GENL_HDRLEN NLMSG_ALIGN(sizeof(struct genlmsghdr))
|
D | rtnetlink.h | 291 #define RTM_RTA(r) ((struct rtattr*)(((char*)(r)) + NLMSG_ALIGN(sizeof(struct rtmsg)))) 492 #define TCA_RTA(r) ((struct rtattr*)(((char*)(r)) + NLMSG_ALIGN(sizeof(struct tcmsg)))) 598 #define TA_RTA(r) ((struct rtattr*)(((char*)(r)) + NLMSG_ALIGN(sizeof(struct tcamsg)))) 686 ({ struct rtattr *__nest = (void *)(start) + NLMSG_ALIGN((start)->rta_len); \
|
D | if_link.h | 127 #define IFLA_RTA(r) ((struct rtattr*)(((char*)(r)) + NLMSG_ALIGN(sizeof(struct ifinfomsg))))
|
/external/iproute2/lib/ |
D | libnetlink.c | 357 status -= NLMSG_ALIGN(len); in rtnl_talk() 358 h = (struct nlmsghdr*)((char*)h + NLMSG_ALIGN(len)); in rtnl_talk() 384 status -= NLMSG_ALIGN(len); in rtnl_talk() 385 h = (struct nlmsghdr*)((char*)h + NLMSG_ALIGN(len)); in rtnl_talk() 459 status -= NLMSG_ALIGN(len); in rtnl_listen() 460 h = (struct nlmsghdr*)((char*)h + NLMSG_ALIGN(len)); in rtnl_listen() 511 status = fread(NLMSG_DATA(h), 1, NLMSG_ALIGN(l), rtnl); in rtnl_from_file() 532 if (NLMSG_ALIGN(n->nlmsg_len) + len > maxlen) { in addattr32() 540 n->nlmsg_len = NLMSG_ALIGN(n->nlmsg_len) + len; in addattr32() 550 if (NLMSG_ALIGN(n->nlmsg_len) + RTA_ALIGN(len) > maxlen) { in addattr_l() [all …]
|
/external/iproute2/include/ |
D | libnetlink.h | 80 ((struct rtattr *) (((void *) (nmsg)) + NLMSG_ALIGN((nmsg)->nlmsg_len))) 84 ((struct rtattr*)(((char*)(r)) + NLMSG_ALIGN(sizeof(struct ifaddrmsg)))) 92 ((struct rtattr*)(((char*)(r)) + NLMSG_ALIGN(sizeof(struct ifinfomsg)))) 100 ((struct rtattr*)(((char*)(r)) + NLMSG_ALIGN(sizeof(struct ndmsg)))) 108 ((struct rtattr*)(((char*)(r)) + NLMSG_ALIGN(sizeof(struct ndtmsg))))
|
/external/wpa_supplicant_6/wpa_supplicant/src/drivers/ |
D | priv_netlink.h | 55 #define NLMSG_ALIGN(len) (((len) + NLMSG_ALIGNTO - 1) & ~(NLMSG_ALIGNTO - 1)) macro 56 #define NLMSG_LENGTH(len) ((len) + NLMSG_ALIGN(sizeof(struct nlmsghdr)))
|
D | driver_wext.c | 73 ((char *) &req + NLMSG_ALIGN(req.hdr.nlmsg_len)), in wpa_driver_wext_send_oper_ifla() 78 req.hdr.nlmsg_len = NLMSG_ALIGN(req.hdr.nlmsg_len) + in wpa_driver_wext_send_oper_ifla() 83 ((char *) &req + NLMSG_ALIGN(req.hdr.nlmsg_len)); in wpa_driver_wext_send_oper_ifla() 87 req.hdr.nlmsg_len = NLMSG_ALIGN(req.hdr.nlmsg_len) + in wpa_driver_wext_send_oper_ifla() 660 nlmsg_len = NLMSG_ALIGN(sizeof(struct ifinfomsg)); in wpa_driver_wext_own_ifname() 739 nlmsg_len = NLMSG_ALIGN(sizeof(struct ifinfomsg)); in wpa_driver_wext_event_rtm_newlink() 776 nlmsg_len = NLMSG_ALIGN(sizeof(struct ifinfomsg)); in wpa_driver_wext_event_rtm_dellink() 840 len = NLMSG_ALIGN(len); in wpa_driver_wext_event_receive()
|
D | driver_nl80211.c | 245 ((char *) &req + NLMSG_ALIGN(req.hdr.nlmsg_len)), in wpa_driver_nl80211_send_oper_ifla() 250 req.hdr.nlmsg_len = NLMSG_ALIGN(req.hdr.nlmsg_len) + in wpa_driver_nl80211_send_oper_ifla() 255 ((char *) &req + NLMSG_ALIGN(req.hdr.nlmsg_len)); in wpa_driver_nl80211_send_oper_ifla() 259 req.hdr.nlmsg_len = NLMSG_ALIGN(req.hdr.nlmsg_len) + in wpa_driver_nl80211_send_oper_ifla() 754 _nlmsg_len = NLMSG_ALIGN(sizeof(struct ifinfomsg)); in wpa_driver_nl80211_own_ifname() 833 _nlmsg_len = NLMSG_ALIGN(sizeof(struct ifinfomsg)); in wpa_driver_nl80211_event_rtm_newlink() 871 _nlmsg_len = NLMSG_ALIGN(sizeof(struct ifinfomsg)); in wpa_driver_nl80211_event_rtm_dellink() 936 len = NLMSG_ALIGN(len); in wpa_driver_nl80211_event_receive_wext()
|
/external/dhcpcd/ |
D | if-linux.c | 244 rta = (struct rtattr *) ((char *)rtm + NLMSG_ALIGN(sizeof(*rtm))); in link_route() 357 rta = (struct rtattr *) ((char *)ifi + NLMSG_ALIGN(sizeof(*ifi))); in link_netlink() 416 ((struct rtattr *)(((ptrdiff_t)(nmsg))+NLMSG_ALIGN((nmsg)->nlmsg_len))) 425 if (NLMSG_ALIGN(n->nlmsg_len) + RTA_ALIGN(len) > maxlen) { in add_attr_l() 434 n->nlmsg_len = NLMSG_ALIGN(n->nlmsg_len) + RTA_ALIGN(len); in add_attr_l() 445 if (NLMSG_ALIGN(n->nlmsg_len) + len > maxlen) { in add_attr_32() 454 n->nlmsg_len = NLMSG_ALIGN(n->nlmsg_len) + len; in add_attr_32()
|
/external/iproute2/tc/ |
D | f_cgroup.c | 43 tail = (struct rtattr*)(((void*)n)+NLMSG_ALIGN(n->nlmsg_len)); in cgroup_parse_opt()
|
D | m_action.c | 567 msg_size = NLMSG_ALIGN(req.n.nlmsg_len) - NLMSG_ALIGN(sizeof(struct nlmsghdr)); in tc_act_list_or_flush() 578 req.n.nlmsg_len = NLMSG_ALIGN(req.n.nlmsg_len); in tc_act_list_or_flush()
|
D | f_basic.c | 59 tail = (struct rtattr*)(((void*)n)+NLMSG_ALIGN(n->nlmsg_len)); in basic_parse_opt()
|
/external/kernel-headers/original/linux/netfilter/ |
D | nfnetlink.h | 87 + NLMSG_ALIGN(sizeof(struct nfgenmsg))))
|