/external/iproute2/genl/ |
ctrl.c | 56 nlh->nlmsg_len = NLMSG_LENGTH(GENL_HDRLEN); 78 int len = nlh->nlmsg_len; 82 fprintf(stderr, "Not a controller message, nlmsg_len=%d " 83 "nlmsg_type=0x%x\n", nlh->nlmsg_len, nlh->nlmsg_type); 186 int len = n->nlmsg_len; 192 fprintf(stderr, "Not a controller message, nlmsg_len=%d " 193 "nlmsg_type=0x%x\n", n->nlmsg_len, n->nlmsg_type); 306 nlh->nlmsg_len = NLMSG_LENGTH(GENL_HDRLEN); 360 if (rtnl_send(&rth, nlh, nlh->nlmsg_len) < 0) {
|
/external/avahi/avahi-autoipd/ |
iface-linux.c | 225 if (!NLMSG_OK(p, bytes) || bytes < sizeof(struct nlmsghdr) || bytes < p->nlmsg_len) { 262 n->nlmsg_len = NLMSG_LENGTH(sizeof(*ifi)); 272 if (send(fd, n, n->nlmsg_len, 0) < 0) { 281 n->nlmsg_len = NLMSG_LENGTH(sizeof(*ifa)); 288 if (send(fd, n, n->nlmsg_len, 0) < 0) {
|
/external/iproute2/lib/ |
libnetlink.c | 118 req.nlh.nlmsg_len = sizeof(req); 159 if (h->nlmsg_len < NLMSG_LENGTH(sizeof(struct nlmsgerr))) 185 nlh.nlmsg_len = NLMSG_LENGTH(len); 199 .iov_len = n->nlmsg_len 278 if (h->nlmsg_len < NLMSG_LENGTH(sizeof(struct nlmsgerr))) { 343 .iov_len = n->nlmsg_len 390 int len = h->nlmsg_len; 418 MIN(maxlen, h->nlmsg_len)); 432 MIN(maxlen, h->nlmsg_len)); 536 int len = h->nlmsg_len; [all...] |
/external/iproute2/ip/ |
rtmon.c | 41 n1->nlmsg_len = NLMSG_LENGTH(4*2); 45 fwrite((void*)n1, 1, NLMSG_ALIGN(n1->nlmsg_len), fp); 54 fwrite((void*)n, 1, NLMSG_ALIGN(n->nlmsg_len), fp);
|
ipneigh.c | 112 req.n.nlmsg_len = NLMSG_LENGTH(sizeof(struct ndmsg)); 197 int len = n->nlmsg_len; 205 n->nlmsg_len, n->nlmsg_type, n->nlmsg_flags); 236 parse_rtattr(tb, NDA_MAX, NDA_RTA(r), n->nlmsg_len - NLMSG_LENGTH(sizeof(*r))); 256 if (NLMSG_ALIGN(filter.flushp) + n->nlmsg_len > filter.flushe) { 261 memcpy(fn, n, n->nlmsg_len); 265 filter.flushp = (((char*)fn) + n->nlmsg_len) - filter.flushb; 354 req.n.nlmsg_len = NLMSG_LENGTH(sizeof(struct ndmsg));
|
xfrm_policy.c | 270 req.n.nlmsg_len = NLMSG_LENGTH(sizeof(req.xpinfo)); 469 int len = n->nlmsg_len; 476 n->nlmsg_len, n->nlmsg_type, n->nlmsg_flags); 582 req.n.nlmsg_len = NLMSG_LENGTH(sizeof(req.xpid)); 713 int len = n->nlmsg_len; 721 n->nlmsg_len, n->nlmsg_type, n->nlmsg_flags); 753 new_n->nlmsg_len = NLMSG_LENGTH(sizeof(*xpid)); 763 xb->offset += new_n->nlmsg_len; 854 .n.nlmsg_len = NLMSG_HDRLEN, 866 if (rtnl_send(&rth, (void *)&req, req.n.nlmsg_len) < 0) [all...] |
tcp_metrics.c | 97 int len = n->nlmsg_len; 179 if (NLMSG_ALIGN(f.flushp) + req2.n.nlmsg_len > f.flushe) { 184 memcpy(fn, &req2.n, req2.n.nlmsg_len); 186 f.flushp = (((char *) fn) + req2.n.nlmsg_len) - f.flushb; 439 if (rtnl_send(&grth, &req, req.n.nlmsg_len) < 0) { 481 if (rtnl_send(&grth, &req, req.n.nlmsg_len) < 0) {
|
iptoken.c | 51 int len = n->nlmsg_len; 139 req.n.nlmsg_len = NLMSG_LENGTH(sizeof(struct ifinfomsg));
|
link_veth.c | 59 hdr->nlmsg_len += sizeof(struct ifinfomsg);
|
xfrm_state.c | 300 req.n.nlmsg_len = NLMSG_LENGTH(sizeof(req.xsinfo)); 717 req.n.nlmsg_len = NLMSG_LENGTH(sizeof(req.xspi)); 877 int len = n->nlmsg_len; 884 n->nlmsg_len, n->nlmsg_type, n->nlmsg_flags); 969 req.n.nlmsg_len = NLMSG_LENGTH(sizeof(req.xsid)); 1050 int len = n->nlmsg_len; 1056 n->nlmsg_len, n->nlmsg_type, n->nlmsg_flags); 1075 new_n->nlmsg_len = NLMSG_LENGTH(sizeof(*xsid)); 1089 xb->offset += new_n->nlmsg_len; 1154 .n.nlmsg_len = NLMSG_HDRLEN [all...] |
/system/connectivity/shill/net/ |
netlink_packet_unittest.cc | 44 // A packet that contains an invalid nlmsg_len (should be at least 52 hdr.nlmsg_len = sizeof(hdr); 62 // A packet that contains an nlmsg_len that is larger than the 64 hdr.nlmsg_len = sizeof(hdr) + 1; 105 hdr.nlmsg_len = sizeof(data);
|
generic_netlink_message.cc | 51 pheader->nlmsg_len += genlmsghdr_with_pad; 69 pheader->nlmsg_len += attribute_string.GetLength();
|
/system/core/logd/ |
libaudit.c | 98 req.nlh.nlmsg_len = NLMSG_SPACE(size); 136 rc = TEMP_FAILURE_RETRY(sendto(fd, &req, req.nlh.nlmsg_len, 0, 144 } else if ((uint32_t) rc != req.nlh.nlmsg_len) {
|
/external/iproute2/tc/ |
f_basic.c | 59 tail = (struct rtattr*)(((void*)n)+NLMSG_ALIGN(n->nlmsg_len)); 105 tail->rta_len = (((void*)n)+n->nlmsg_len) - (void*)tail;
|
f_bpf.c | 84 tail = (struct rtattr *)(((void *)n) + NLMSG_ALIGN(n->nlmsg_len)); 142 tail->rta_len = (((void *)n) + n->nlmsg_len) - (void *)tail;
|
tc_monitor.c | 67 n->nlmsg_len, n->nlmsg_type, n->nlmsg_flags);
|
/external/dhcpcd-6.8.2/ |
if-linux.c | 308 len = nlm->nlmsg_len - sizeof(*nlm); 402 len = nlm->nlmsg_len - sizeof(*nlm); 467 len = nlm->nlmsg_len - sizeof(*nlm); 546 len = nlm->nlmsg_len - sizeof(*nlm); 594 len = nlm->nlmsg_len - sizeof(*nlm); 701 if (nlm->nlmsg_len < sizeof(*r)) 757 len = nlm->nlmsg_len - sizeof(*nlm); 854 iov.iov_len = hdr->nlmsg_len; 873 ((struct rtattr *)(((ptrdiff_t)(nmsg))+NLMSG_ALIGN((nmsg)->nlmsg_len))) 882 if (NLMSG_ALIGN(n->nlmsg_len) + RTA_ALIGN(len) > maxlen) [all...] |
/bionic/libc/bionic/ |
bionic_netlink.cpp | 74 request.hdr.nlmsg_len = sizeof(request);
|
/external/iproute2/bridge/ |
mdb.c | 90 int len = n->nlmsg_len; 95 n->nlmsg_len, n->nlmsg_type, n->nlmsg_flags); 109 parse_rtattr(tb, MDBA_MAX, MDBA_RTA(r), n->nlmsg_len - NLMSG_LENGTH(sizeof(*r))); 193 req.n.nlmsg_len = NLMSG_LENGTH(sizeof(struct br_port_msg));
|
/frameworks/base/services/net/java/android/net/netlink/ |
NetlinkMessage.java | 52 int payloadLength = NetlinkConstants.alignedLengthOf(nlmsghdr.nlmsg_len);
|
/external/libnl/lib/ |
attr.c | 803 tlen = NLMSG_ALIGN(msg->nm_nlh->nlmsg_len) + nla_total_size(attrlen); 805 if ((tlen + msg->nm_nlh->nlmsg_len) > msg->nm_size) 813 msg->nm_nlh->nlmsg_len = tlen; 816 "nlmsg_len=%d\n", msg, attrlen, 818 attrtype, msg->nm_nlh->nlmsg_len); 1110 return nla_put(msg, attrtype, nlmsg_len(nested->nm_nlh), [all...] |
/frameworks/base/services/tests/servicestests/src/android/net/netlink/ |
RtNetlinkNeighborMessageTest.java | 148 assertEquals(76, hdr.nlmsg_len); 174 assertEquals(88, hdr.nlmsg_len);
|
/system/core/libnetutils/ |
ifc_utils.c | 313 req.n.nlmsg_len = NLMSG_LENGTH(sizeof(req.r)); 324 rta = (struct rtattr *) (((char *) &req) + NLMSG_ALIGN(req.n.nlmsg_len)); 327 req.n.nlmsg_len = NLMSG_ALIGN(req.n.nlmsg_len) + RTA_LENGTH(addrlen); 332 rta = (struct rtattr *) (((char *) &req) + NLMSG_ALIGN(req.n.nlmsg_len)); 335 req.n.nlmsg_len = NLMSG_ALIGN(req.n.nlmsg_len) + RTA_LENGTH(addrlen); 345 if (send(s, &req, req.n.nlmsg_len, 0) < 0) {
|
/external/iptables/libipq/ |
libipq.c | 186 if (nlh->nlmsg_flags & MSG_TRUNC || nlh->nlmsg_len > status) { 277 req.nlh.nlmsg_len = NLMSG_LENGTH(sizeof(req)); 283 return ipq_netlink_sendto(h, (void *)&req, req.nlh.nlmsg_len); 353 nlh.nlmsg_len = tlen;
|
/external/libnl/include/netlink/ |
msg.h | 54 extern int nlmsg_len(const struct nlmsghdr *);
|