Searched refs:NLMSG_LENGTH (Results 1 - 25 of 46) sorted by relevance

12

/external/libnl/include/linux/
H A Dnetlink.h78 #define NLMSG_LENGTH(len) ((len)+NLMSG_ALIGN(NLMSG_HDRLEN)) macro
79 #define NLMSG_SPACE(len) NLMSG_ALIGN(NLMSG_LENGTH(len))
80 #define NLMSG_DATA(nlh) ((void*)(((char*)nlh) + NLMSG_LENGTH(0)))
/external/wpa_supplicant_8/hostapd/src/drivers/
H A Dpriv_netlink.h51 #define NLMSG_LENGTH(len) ((len) + NLMSG_ALIGN(sizeof(struct nlmsghdr))) macro
52 #define NLMSG_SPACE(len) NLMSG_ALIGN(NLMSG_LENGTH(len))
53 #define NLMSG_DATA(nlh) ((void*) (((char*) nlh) + NLMSG_LENGTH(0)))
H A Dnetlink.c183 req.hdr.nlmsg_len = NLMSG_LENGTH(sizeof(struct ifinfomsg));
/external/wpa_supplicant_8/src/drivers/
H A Dpriv_netlink.h51 #define NLMSG_LENGTH(len) ((len) + NLMSG_ALIGN(sizeof(struct nlmsghdr))) macro
52 #define NLMSG_SPACE(len) NLMSG_ALIGN(NLMSG_LENGTH(len))
53 #define NLMSG_DATA(nlh) ((void*) (((char*) nlh) + NLMSG_LENGTH(0)))
H A Dnetlink.c183 req.hdr.nlmsg_len = NLMSG_LENGTH(sizeof(struct ifinfomsg));
/external/wpa_supplicant_8/wpa_supplicant/src/drivers/
H A Dpriv_netlink.h51 #define NLMSG_LENGTH(len) ((len) + NLMSG_ALIGN(sizeof(struct nlmsghdr))) macro
52 #define NLMSG_SPACE(len) NLMSG_ALIGN(NLMSG_LENGTH(len))
53 #define NLMSG_DATA(nlh) ((void*) (((char*) nlh) + NLMSG_LENGTH(0)))
H A Dnetlink.c183 req.hdr.nlmsg_len = NLMSG_LENGTH(sizeof(struct ifinfomsg));
/external/iproute2/include/linux/
H A Dnetlink.h81 #define NLMSG_LENGTH(len) ((len)+NLMSG_ALIGN(NLMSG_HDRLEN)) macro
82 #define NLMSG_SPACE(len) NLMSG_ALIGN(NLMSG_LENGTH(len))
83 #define NLMSG_DATA(nlh) ((void*)(((char*)nlh) + NLMSG_LENGTH(0)))
/external/kernel-headers/original/uapi/linux/
H A Dnetlink.h82 #define NLMSG_LENGTH(len) ((len) + NLMSG_HDRLEN) macro
83 #define NLMSG_SPACE(len) NLMSG_ALIGN(NLMSG_LENGTH(len))
84 #define NLMSG_DATA(nlh) ((void*)(((char*)nlh) + NLMSG_LENGTH(0)))
/external/iproute2/genl/
H A Dctrl.c56 nlh->nlmsg_len = NLMSG_LENGTH(GENL_HDRLEN);
92 len -= NLMSG_LENGTH(GENL_HDRLEN);
205 len -= NLMSG_LENGTH(GENL_HDRLEN);
299 nlh->nlmsg_len = NLMSG_LENGTH(GENL_HDRLEN);
/external/iproute2/ip/
H A Dipprefix.c50 len -= NLMSG_LENGTH(sizeof(*prefix));
H A Dipaddrlabel.c68 len -= NLMSG_LENGTH(sizeof(*ifal));
143 req.n.nlmsg_len = NLMSG_LENGTH(sizeof(struct ifaddrlblmsg));
200 len -= NLMSG_LENGTH(sizeof(*r));
H A Dipl2tp.c104 req.n.nlmsg_len = NLMSG_LENGTH(GENL_HDRLEN);
137 req.n.nlmsg_len = NLMSG_LENGTH(GENL_HDRLEN);
160 req.n.nlmsg_len = NLMSG_LENGTH(GENL_HDRLEN);
202 req.n.nlmsg_len = NLMSG_LENGTH(GENL_HDRLEN);
281 len = n->nlmsg_len - NLMSG_LENGTH(sizeof(*ghdr));
377 req.n.nlmsg_len = NLMSG_LENGTH(GENL_HDRLEN);
420 req.n.nlmsg_len = NLMSG_LENGTH(GENL_HDRLEN);
737 len -= NLMSG_LENGTH(GENL_HDRLEN);
764 req.n.nlmsg_len = NLMSG_LENGTH(GENL_HDRLEN);
H A Dxfrm_policy.c274 req.n.nlmsg_len = NLMSG_LENGTH(sizeof(req.xpinfo));
586 req.n.nlmsg_len = NLMSG_LENGTH(sizeof(req.xpid));
729 len -= NLMSG_LENGTH(sizeof(*xpinfo));
757 new_n->nlmsg_len = NLMSG_LENGTH(sizeof(*xpid));
911 len -= NLMSG_LENGTH(sizeof(__u32));
973 req.n.nlmsg_len = NLMSG_LENGTH(sizeof(__u32));
1004 req.n.nlmsg_len = NLMSG_LENGTH(0); /* nlmsg data is nothing */
H A Dipneigh.c110 req.n.nlmsg_len = NLMSG_LENGTH(sizeof(struct ndmsg));
198 len -= NLMSG_LENGTH(sizeof(*r));
217 parse_rtattr(tb, NDA_MAX, NDA_RTA(r), n->nlmsg_len - NLMSG_LENGTH(sizeof(*r)));
H A Diprule.c60 len -= NLMSG_LENGTH(sizeof(*r));
249 req.n.nlmsg_len = NLMSG_LENGTH(sizeof(struct rtmsg));
392 len -= NLMSG_LENGTH(sizeof(*r));
H A Drtmon.c41 n1->nlmsg_len = NLMSG_LENGTH(4*2);
H A Dlink_gre.c69 req.n.nlmsg_len = NLMSG_LENGTH(sizeof(*ifi));
83 len -= NLMSG_LENGTH(sizeof(*ifi));
H A Dxfrm_state.c262 req.n.nlmsg_len = NLMSG_LENGTH(sizeof(req.xsinfo));
578 req.n.nlmsg_len = NLMSG_LENGTH(sizeof(req.xspi));
830 req.n.nlmsg_len = NLMSG_LENGTH(sizeof(req.xsid));
921 len -= NLMSG_LENGTH(sizeof(*xsinfo));
936 new_n->nlmsg_len = NLMSG_LENGTH(sizeof(*xsid));
1070 len -= NLMSG_LENGTH(sizeof(__u32));
1119 req.n.nlmsg_len = NLMSG_LENGTH(sizeof(req.flags));
1148 req.n.nlmsg_len = NLMSG_LENGTH(sizeof(req.xsf));
/external/android-clat/
H A Dnetlink_msg.c68 msg->nm_nlh->nlmsg_len = NLMSG_LENGTH(payload_len);
/external/iproute2/lib/
H A Dll_map.c58 if (n->nlmsg_len < NLMSG_LENGTH(sizeof(ifi)))
/external/iproute2/tc/
H A Dm_action.c340 len -= NLMSG_LENGTH(sizeof(*t));
398 req.n.nlmsg_len = NLMSG_LENGTH(sizeof(struct tcamsg));
500 req.n.nlmsg_len = NLMSG_LENGTH(sizeof(struct tcamsg));
539 req.n.nlmsg_len = NLMSG_LENGTH(sizeof(struct tcamsg));
H A Dtc_class.c60 req.n.nlmsg_len = NLMSG_LENGTH(sizeof(struct tcmsg));
165 len -= NLMSG_LENGTH(sizeof(*t));
H A Dtc_filter.c70 req.n.nlmsg_len = NLMSG_LENGTH(sizeof(struct tcmsg));
199 len -= NLMSG_LENGTH(sizeof(*t));
H A Dtc_qdisc.c69 req.n.nlmsg_len = NLMSG_LENGTH(sizeof(struct tcmsg));
212 len -= NLMSG_LENGTH(sizeof(*t));

Completed in 187 milliseconds

12