Lines Matching defs:msg
21 #include "netlink/msg.h"
75 struct nlattr *nla_nest_start(struct nl_msg *msg, int attrtype)
77 struct nlattr *start = (struct nlattr *)nlmsg_tail(msg->nm_nlh);
80 rc = nla_put(msg, attrtype, 0, NULL);
88 int nla_nest_end(struct nl_msg *msg, struct nlattr *start)
91 start->nla_len = (unsigned char *)nlmsg_tail(nlmsg_hdr(msg)) -
151 int nla_put(struct nl_msg *msg, int attrtype, int datalen, const void *data)
156 nla = nla_reserve(msg, attrtype, datalen);
169 * to the message msg nested in a container of the type attrtype. The
171 int nla_put_nested(struct nl_msg *msg, int attrtype, struct nl_msg *nested)
175 rc = nla_put(msg, attrtype, nlmsg_attrlen(nlmsg_hdr(nested), 0),
189 struct nlattr *nla_reserve(struct nl_msg *msg, int attrtype, int data_len)
193 const unsigned int NEW_SIZE = NLMSG_ALIGN(msg->nm_nlh->nlmsg_len) +
197 if (NEW_SIZE > msg->nm_size)
200 nla = (struct nlattr *)nlmsg_tail(msg->nm_nlh);
204 msg->nm_nlh->nlmsg_len = NEW_SIZE;