/prebuilts/ndk/current/platforms/android-21/arch-x86_64/usr/include/linux/ |
netlink.h | 62 __u32 nlmsg_len; member in struct:nlmsghdr 94 #define NLMSG_NEXT(nlh,len) ((len) -= NLMSG_ALIGN((nlh)->nlmsg_len), (struct nlmsghdr*)(((char*)(nlh)) + NLMSG_ALIGN((nlh)->nlmsg_len))) 95 #define NLMSG_OK(nlh,len) ((len) >= (int)sizeof(struct nlmsghdr) && (nlh)->nlmsg_len >= sizeof(struct nlmsghdr) && (nlh)->nlmsg_len <= (len)) 96 #define NLMSG_PAYLOAD(nlh,len) ((nlh)->nlmsg_len - NLMSG_SPACE((len)))
|
/prebuilts/ndk/current/platforms/android-23/arch-arm/usr/include/linux/ |
netlink.h | 62 __u32 nlmsg_len; member in struct:nlmsghdr 94 #define NLMSG_NEXT(nlh,len) ((len) -= NLMSG_ALIGN((nlh)->nlmsg_len), (struct nlmsghdr*)(((char*)(nlh)) + NLMSG_ALIGN((nlh)->nlmsg_len))) 95 #define NLMSG_OK(nlh,len) ((len) >= (int)sizeof(struct nlmsghdr) && (nlh)->nlmsg_len >= sizeof(struct nlmsghdr) && (nlh)->nlmsg_len <= (len)) 96 #define NLMSG_PAYLOAD(nlh,len) ((nlh)->nlmsg_len - NLMSG_SPACE((len)))
|
/prebuilts/ndk/current/platforms/android-23/arch-arm64/usr/include/linux/ |
netlink.h | 62 __u32 nlmsg_len; member in struct:nlmsghdr 94 #define NLMSG_NEXT(nlh,len) ((len) -= NLMSG_ALIGN((nlh)->nlmsg_len), (struct nlmsghdr*)(((char*)(nlh)) + NLMSG_ALIGN((nlh)->nlmsg_len))) 95 #define NLMSG_OK(nlh,len) ((len) >= (int)sizeof(struct nlmsghdr) && (nlh)->nlmsg_len >= sizeof(struct nlmsghdr) && (nlh)->nlmsg_len <= (len)) 96 #define NLMSG_PAYLOAD(nlh,len) ((nlh)->nlmsg_len - NLMSG_SPACE((len)))
|
/prebuilts/ndk/current/platforms/android-23/arch-mips/usr/include/linux/ |
netlink.h | 62 __u32 nlmsg_len; member in struct:nlmsghdr 94 #define NLMSG_NEXT(nlh,len) ((len) -= NLMSG_ALIGN((nlh)->nlmsg_len), (struct nlmsghdr*)(((char*)(nlh)) + NLMSG_ALIGN((nlh)->nlmsg_len))) 95 #define NLMSG_OK(nlh,len) ((len) >= (int)sizeof(struct nlmsghdr) && (nlh)->nlmsg_len >= sizeof(struct nlmsghdr) && (nlh)->nlmsg_len <= (len)) 96 #define NLMSG_PAYLOAD(nlh,len) ((nlh)->nlmsg_len - NLMSG_SPACE((len)))
|
/prebuilts/ndk/current/platforms/android-23/arch-mips64/usr/include/linux/ |
netlink.h | 62 __u32 nlmsg_len; member in struct:nlmsghdr 94 #define NLMSG_NEXT(nlh,len) ((len) -= NLMSG_ALIGN((nlh)->nlmsg_len), (struct nlmsghdr*)(((char*)(nlh)) + NLMSG_ALIGN((nlh)->nlmsg_len))) 95 #define NLMSG_OK(nlh,len) ((len) >= (int)sizeof(struct nlmsghdr) && (nlh)->nlmsg_len >= sizeof(struct nlmsghdr) && (nlh)->nlmsg_len <= (len)) 96 #define NLMSG_PAYLOAD(nlh,len) ((nlh)->nlmsg_len - NLMSG_SPACE((len)))
|
/prebuilts/ndk/current/platforms/android-23/arch-x86/usr/include/linux/ |
netlink.h | 62 __u32 nlmsg_len; member in struct:nlmsghdr 94 #define NLMSG_NEXT(nlh,len) ((len) -= NLMSG_ALIGN((nlh)->nlmsg_len), (struct nlmsghdr*)(((char*)(nlh)) + NLMSG_ALIGN((nlh)->nlmsg_len))) 95 #define NLMSG_OK(nlh,len) ((len) >= (int)sizeof(struct nlmsghdr) && (nlh)->nlmsg_len >= sizeof(struct nlmsghdr) && (nlh)->nlmsg_len <= (len)) 96 #define NLMSG_PAYLOAD(nlh,len) ((nlh)->nlmsg_len - NLMSG_SPACE((len)))
|
/prebuilts/ndk/current/platforms/android-23/arch-x86_64/usr/include/linux/ |
netlink.h | 62 __u32 nlmsg_len; member in struct:nlmsghdr 94 #define NLMSG_NEXT(nlh,len) ((len) -= NLMSG_ALIGN((nlh)->nlmsg_len), (struct nlmsghdr*)(((char*)(nlh)) + NLMSG_ALIGN((nlh)->nlmsg_len))) 95 #define NLMSG_OK(nlh,len) ((len) >= (int)sizeof(struct nlmsghdr) && (nlh)->nlmsg_len >= sizeof(struct nlmsghdr) && (nlh)->nlmsg_len <= (len)) 96 #define NLMSG_PAYLOAD(nlh,len) ((nlh)->nlmsg_len - NLMSG_SPACE((len)))
|
/prebuilts/ndk/current/platforms/android-24/arch-arm/usr/include/linux/ |
netlink.h | 62 __u32 nlmsg_len; member in struct:nlmsghdr 94 #define NLMSG_NEXT(nlh,len) ((len) -= NLMSG_ALIGN((nlh)->nlmsg_len), (struct nlmsghdr*)(((char*)(nlh)) + NLMSG_ALIGN((nlh)->nlmsg_len))) 95 #define NLMSG_OK(nlh,len) ((len) >= (int)sizeof(struct nlmsghdr) && (nlh)->nlmsg_len >= sizeof(struct nlmsghdr) && (nlh)->nlmsg_len <= (len)) 96 #define NLMSG_PAYLOAD(nlh,len) ((nlh)->nlmsg_len - NLMSG_SPACE((len)))
|
/prebuilts/ndk/current/platforms/android-24/arch-arm64/usr/include/linux/ |
netlink.h | 62 __u32 nlmsg_len; member in struct:nlmsghdr 94 #define NLMSG_NEXT(nlh,len) ((len) -= NLMSG_ALIGN((nlh)->nlmsg_len), (struct nlmsghdr*)(((char*)(nlh)) + NLMSG_ALIGN((nlh)->nlmsg_len))) 95 #define NLMSG_OK(nlh,len) ((len) >= (int)sizeof(struct nlmsghdr) && (nlh)->nlmsg_len >= sizeof(struct nlmsghdr) && (nlh)->nlmsg_len <= (len)) 96 #define NLMSG_PAYLOAD(nlh,len) ((nlh)->nlmsg_len - NLMSG_SPACE((len)))
|
/prebuilts/ndk/current/platforms/android-24/arch-mips/usr/include/linux/ |
netlink.h | 62 __u32 nlmsg_len; member in struct:nlmsghdr 94 #define NLMSG_NEXT(nlh,len) ((len) -= NLMSG_ALIGN((nlh)->nlmsg_len), (struct nlmsghdr*)(((char*)(nlh)) + NLMSG_ALIGN((nlh)->nlmsg_len))) 95 #define NLMSG_OK(nlh,len) ((len) >= (int)sizeof(struct nlmsghdr) && (nlh)->nlmsg_len >= sizeof(struct nlmsghdr) && (nlh)->nlmsg_len <= (len)) 96 #define NLMSG_PAYLOAD(nlh,len) ((nlh)->nlmsg_len - NLMSG_SPACE((len)))
|
/prebuilts/ndk/current/platforms/android-24/arch-mips64/usr/include/linux/ |
netlink.h | 62 __u32 nlmsg_len; member in struct:nlmsghdr 94 #define NLMSG_NEXT(nlh,len) ((len) -= NLMSG_ALIGN((nlh)->nlmsg_len), (struct nlmsghdr*)(((char*)(nlh)) + NLMSG_ALIGN((nlh)->nlmsg_len))) 95 #define NLMSG_OK(nlh,len) ((len) >= (int)sizeof(struct nlmsghdr) && (nlh)->nlmsg_len >= sizeof(struct nlmsghdr) && (nlh)->nlmsg_len <= (len)) 96 #define NLMSG_PAYLOAD(nlh,len) ((nlh)->nlmsg_len - NLMSG_SPACE((len)))
|
/prebuilts/ndk/current/platforms/android-24/arch-x86/usr/include/linux/ |
netlink.h | 62 __u32 nlmsg_len; member in struct:nlmsghdr 94 #define NLMSG_NEXT(nlh,len) ((len) -= NLMSG_ALIGN((nlh)->nlmsg_len), (struct nlmsghdr*)(((char*)(nlh)) + NLMSG_ALIGN((nlh)->nlmsg_len))) 95 #define NLMSG_OK(nlh,len) ((len) >= (int)sizeof(struct nlmsghdr) && (nlh)->nlmsg_len >= sizeof(struct nlmsghdr) && (nlh)->nlmsg_len <= (len)) 96 #define NLMSG_PAYLOAD(nlh,len) ((nlh)->nlmsg_len - NLMSG_SPACE((len)))
|
/prebuilts/ndk/current/platforms/android-24/arch-x86_64/usr/include/linux/ |
netlink.h | 62 __u32 nlmsg_len; member in struct:nlmsghdr 94 #define NLMSG_NEXT(nlh,len) ((len) -= NLMSG_ALIGN((nlh)->nlmsg_len), (struct nlmsghdr*)(((char*)(nlh)) + NLMSG_ALIGN((nlh)->nlmsg_len))) 95 #define NLMSG_OK(nlh,len) ((len) >= (int)sizeof(struct nlmsghdr) && (nlh)->nlmsg_len >= sizeof(struct nlmsghdr) && (nlh)->nlmsg_len <= (len)) 96 #define NLMSG_PAYLOAD(nlh,len) ((nlh)->nlmsg_len - NLMSG_SPACE((len)))
|
/external/iproute2/include/ |
libgenl.h | 15 .nlmsg_len = NLMSG_LENGTH(GENL_HDRLEN + (_hdrsiz)), \
|
/external/wpa_supplicant_8/src/drivers/ |
netlink.c | 183 req.hdr.nlmsg_len = NLMSG_LENGTH(sizeof(struct ifinfomsg)); 197 ((char *) &req + NLMSG_ALIGN(req.hdr.nlmsg_len)), 202 req.hdr.nlmsg_len += RTA_SPACE(sizeof(char)); 206 ((char *) &req + NLMSG_ALIGN(req.hdr.nlmsg_len)), 211 req.hdr.nlmsg_len += RTA_SPACE(sizeof(char)); 218 ret = send(netlink->sock, &req, req.hdr.nlmsg_len, 0);
|
/system/connectivity/shill/net/ |
netlink_packet.cc | 35 if (len < header_.nlmsg_len || header_.nlmsg_len < sizeof(header_)) { 52 return GetNlMsgHeader().nlmsg_len;
|
rtnl_message.cc | 82 msg.GetLength() < hdr->hdr.nlmsg_len) 168 if (hdr->hdr.nlmsg_len < NLMSG_LENGTH(sizeof(hdr->ifi))) { 189 if (hdr->hdr.nlmsg_len < NLMSG_LENGTH(sizeof(hdr->ifa))) { 209 if (hdr->hdr.nlmsg_len < NLMSG_LENGTH(sizeof(hdr->rtm))) { 232 if (hdr->hdr.nlmsg_len < NLMSG_LENGTH(sizeof(hdr->nd_user_opt))) { 308 if (hdr->hdr.nlmsg_len < NLMSG_LENGTH(sizeof(hdr->ndm))) { 352 hdr.hdr.nlmsg_len = NLMSG_LENGTH(sizeof(hdr.gen)); 386 size_t header_length = hdr.hdr.nlmsg_len; 391 hdr.hdr.nlmsg_len = NLMSG_ALIGN(hdr.hdr.nlmsg_len) + RTA_ALIGN(len) [all...] |
/external/libnl/lib/ |
msg.c | 71 * <---------------------- nlmsg_len(nlh) ---------------------> 225 return (unsigned char *) nlh + NLMSG_ALIGN(nlh->nlmsg_len); 232 int nlmsg_len(const struct nlmsghdr *nlh) function 234 return nlh->nlmsg_len - NLMSG_HDRLEN; 262 return nlmsg_len(nlh) - NLMSG_ALIGN(hdrlen); 274 if (nlh->nlmsg_len < nlmsg_msg_size(hdrlen)) 288 nlh->nlmsg_len >= sizeof(struct nlmsghdr) && 289 nlh->nlmsg_len <= remaining); 302 int totlen = NLMSG_ALIGN(nlh->nlmsg_len); 385 nm->nm_nlh->nlmsg_len = nlmsg_total_size(0) 518 size_t nlmsg_len = n->nm_nlh->nlmsg_len; local [all...] |
/external/iproute2/lib/ |
libgenl.c | 16 int len = nlh->nlmsg_len; 20 fprintf(stderr, "Not a controller message, nlmsg_len=%d " 21 "nlmsg_type=0x%x\n", nlh->nlmsg_len, nlh->nlmsg_type);
|
/external/iproute2/ip/ |
ipnetconf.c | 48 int len = n->nlmsg_len; 55 n->nlmsg_len, n->nlmsg_type, n->nlmsg_flags); 168 req.n.nlmsg_len = NLMSG_LENGTH(sizeof(struct netconfmsg)); 176 if (rtnl_send(&rth, &req.n, req.n.nlmsg_len) < 0) {
|
ipprefix.c | 42 int len = n->nlmsg_len; 48 n->nlmsg_len, n->nlmsg_type, n->nlmsg_flags);
|
/external/libnl/include/netlink/ |
netlink-kernel.h | 32 uint32_t nlmsg_len; member in struct:nlmsghdr
|
/external/iproute2/tc/ |
f_cgroup.c | 43 tail = (struct rtattr*)(((void*)n)+NLMSG_ALIGN(n->nlmsg_len)); 79 tail->rta_len = (((void*)n)+n->nlmsg_len) - (void*)tail;
|
/frameworks/base/services/tests/servicestests/src/android/net/netlink/ |
NetlinkErrorMessageTest.java | 66 assertEquals(36, hdr.nlmsg_len); 76 assertEquals(48, err.msg.nlmsg_len);
|
/external/libpcap/ |
pcap-netfilter-linux.c | 114 if (nlh->nlmsg_len < sizeof(struct nlmsghdr) || len < nlh->nlmsg_len) { 115 snprintf(handle->errbuf, PCAP_ERRBUF_SIZE, "Message truncated: (got: %d) (nlmsg_len: %u)", len, nlh->nlmsg_len); 136 if (nlh->nlmsg_len < HDR_LENGTH) { 137 snprintf(handle->errbuf, PCAP_ERRBUF_SIZE, "Malformed message: (nlmsg_len: %u)", nlh->nlmsg_len); 142 if (nlh->nlmsg_len > HDR_LENGTH) { 144 int attr_len = nlh->nlmsg_len - NLMSG_ALIGN(HDR_LENGTH); 179 pkth.caplen = pkth.len = nlh->nlmsg_len-NLMSG_ALIGN(sizeof(struct nlmsghdr)) [all...] |