Searched refs:nm_nlh (Results 1 – 11 of 11) sorted by relevance
/external/libnl/lib/ |
D | attr.c | 464 tlen = NLMSG_ALIGN(msg->nm_nlh->nlmsg_len) + nla_total_size(attrlen); in nla_reserve() 469 nla = (struct nlattr *) nlmsg_tail(msg->nm_nlh); in nla_reserve() 475 msg->nm_nlh->nlmsg_len = tlen; in nla_reserve() 480 (void *) nla - nlmsg_data(msg->nm_nlh), in nla_reserve() 481 msg->nm_nlh->nlmsg_len); in nla_reserve() 515 (void *) nla - nlmsg_data(msg->nm_nlh)); in nla_put() 783 return nla_put(msg, attrtype, nlmsg_datalen(nested->nm_nlh), in nla_put_nested() 784 nlmsg_data(nested->nm_nlh)); in nla_put_nested() 797 struct nlattr *start = (struct nlattr *) nlmsg_tail(msg->nm_nlh); in nla_nest_start() 821 len = (void *) nlmsg_tail(msg->nm_nlh) - (void *) start; in nla_nest_end() [all …]
|
D | msg.c | 274 nm->nm_nlh = calloc(1, len); in __nlmsg_alloc() 275 if (!nm->nm_nlh) in __nlmsg_alloc() 280 nm->nm_nlh->nlmsg_len = nlmsg_total_size(0); in __nlmsg_alloc() 328 struct nlmsghdr *new = nm->nm_nlh; in nlmsg_inherit() 390 memcpy(nm->nm_nlh, hdr, hdr->nlmsg_len); in nlmsg_convert() 409 void *buf = n->nm_nlh; in nlmsg_reserve() 410 size_t nlmsg_len = n->nm_nlh->nlmsg_len; in nlmsg_reserve() 422 n->nm_nlh->nlmsg_len += tlen; in nlmsg_reserve() 428 n, tlen, len, pad, n->nm_nlh->nlmsg_len); in nlmsg_reserve() 480 tmp = realloc(n->nm_nlh, newlen); in nlmsg_expand() [all …]
|
D | nl.c | 1103 return pp->parser(NULL, &msg->nm_src, msg->nm_nlh, &parse_arg); in __pickup_answer()
|
D | cache.c | 668 ret = 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/qdisc/ |
D | netem.c | 169 msg->nm_nlh->nlmsg_flags |= NLM_F_REQUEST; in netem_msg_fill_raw() 221 msg->nm_nlh = (struct nlmsghdr *) realloc(msg->nm_nlh, new_msg_len); in netem_msg_fill_raw() 222 if ( msg->nm_nlh == NULL ) in netem_msg_fill_raw() 270 struct nlattr* head = (struct nlattr *)(NLMSG_DATA(msg->nm_nlh) + in netem_msg_fill_raw() 273 struct nlattr* tail = (struct nlattr *)(((void *) (msg->nm_nlh)) + in netem_msg_fill_raw() 274 NLMSG_ALIGN(msg->nm_nlh->nlmsg_len)); in netem_msg_fill_raw() 278 msg->nm_nlh->nlmsg_len += (head->nla_len - old_len); in netem_msg_fill_raw()
|
/external/libnl/ |
D | make.log | 130 len = (void *) nlmsg_tail(msg->nm_nlh) - (void *) start; 133 len = (void *) nlmsg_tail(msg->nm_nlh) - (void *) attr; 278 len = (void *) nlmsg_tail(msg->nm_nlh) - (void *) start; 281 len = (void *) nlmsg_tail(msg->nm_nlh) - (void *) attr;
|
/external/nfacct/ |
D | nfacct.c | 148 struct nlmsghdr *hdr = msg->nm_nlh; in message_received()
|
/external/libnl/include/netlink-private/ |
D | types.h | 140 struct nlmsghdr * nm_nlh; member
|
/external/libnl/lib/route/ |
D | link.c | 1520 if (err == -NLE_OPNOTSUPP && msg->nm_nlh->nlmsg_type == RTM_NEWLINK) { in rtnl_link_change() 1521 msg->nm_nlh->nlmsg_type = RTM_SETLINK; in rtnl_link_change()
|
D | route_obj.c | 1280 rtnh->rtnh_len = nlmsg_tail(msg->nm_nlh) - in rtnl_route_build_msg()
|