Searched refs:nm_nlh (Results 1 – 8 of 8) sorted by relevance
/external/libnl/lib/ |
D | attr.c | 803 tlen = NLMSG_ALIGN(msg->nm_nlh->nlmsg_len) + nla_total_size(attrlen); in nla_reserve() 805 if ((tlen + msg->nm_nlh->nlmsg_len) > msg->nm_size) in nla_reserve() 808 nla = (struct nlattr *) nlmsg_tail(msg->nm_nlh); in nla_reserve() 813 msg->nm_nlh->nlmsg_len = tlen; in nla_reserve() 817 (void *) nla - nlmsg_data(msg->nm_nlh), in nla_reserve() 818 attrtype, msg->nm_nlh->nlmsg_len); in nla_reserve() 847 msg, datalen, (void *) nla - nlmsg_data(msg->nm_nlh), attrtype); in nla_put() 1110 return nla_put(msg, attrtype, nlmsg_len(nested->nm_nlh), in nla_put_nested() 1111 nlmsg_data(nested->nm_nlh)); in nla_put_nested() 1124 struct nlattr *start = (struct nlattr *) nlmsg_tail(msg->nm_nlh); in nla_nest_start() [all …]
|
D | msg.c | 377 nm->nm_nlh = malloc(len); in __nlmsg_alloc() 378 if (!nm->nm_nlh) in __nlmsg_alloc() 381 memset(nm->nm_nlh, 0, sizeof(struct nlmsghdr)); in __nlmsg_alloc() 385 nm->nm_nlh->nlmsg_len = nlmsg_total_size(0); in __nlmsg_alloc() 433 struct nlmsghdr *new = nm->nm_nlh; in nlmsg_inherit() 495 memcpy(nm->nm_nlh, hdr, hdr->nlmsg_len); in nlmsg_convert() 517 void *buf = n->nm_nlh; in nlmsg_reserve() 518 size_t nlmsg_len = n->nm_nlh->nlmsg_len; in nlmsg_reserve() 527 n->nm_nlh->nlmsg_len += tlen; in nlmsg_reserve() 533 n, len, pad, n->nm_nlh->nlmsg_len); in nlmsg_reserve() [all …]
|
D | cache.c | 460 return nl_cache_parse(x->ops, &msg->nm_src, msg->nm_nlh, x->params); in update_msg_parser()
|
/external/android-clat/ |
D | netlink_msg.c | 68 msg->nm_nlh->nlmsg_len = NLMSG_LENGTH(payload_len); in nlmsg_alloc_generic() 69 msg->nm_nlh->nlmsg_flags = flags; in nlmsg_alloc_generic() 70 msg->nm_nlh->nlmsg_type = type; in nlmsg_alloc_generic() 72 memcpy(nlmsg_data(msg->nm_nlh), payload_struct, payload_len); in nlmsg_alloc_generic()
|
/external/libnl/lib/route/sch/ |
D | netem.c | 192 msg->nm_nlh->nlmsg_flags |= NLM_F_REQUEST; in netem_build_msg() 244 msg->nm_nlh = (struct nlmsghdr *) realloc(msg->nm_nlh, new_msg_len); in netem_build_msg() 245 if ( msg->nm_nlh == NULL ) in netem_build_msg() 293 struct nlattr* head = (struct nlattr *)(NLMSG_DATA(msg->nm_nlh) + in netem_build_msg() 296 struct nlattr* tail = (struct nlattr *)(((void *) (msg->nm_nlh)) + in netem_build_msg() 297 NLMSG_ALIGN(msg->nm_nlh->nlmsg_len)); in netem_build_msg() 301 msg->nm_nlh->nlmsg_len += (head->nla_len - old_len); in netem_build_msg()
|
/external/nfacct/ |
D | nfacct.c | 144 struct nlmsghdr *hdr = msg->nm_nlh; in message_received()
|
/external/libnl/include/ |
D | netlink-types.h | 132 struct nlmsghdr * nm_nlh; member
|
/external/libnl/lib/route/ |
D | route_obj.c | 1164 rtnh->rtnh_len = nlmsg_tail(msg->nm_nlh) - in rtnl_route_build_msg()
|