Lines Matching refs:nlmsg
242 struct nl_msg *nlmsg = nlmsg_alloc(); in get_multicast_id() local
244 if (!nlmsg) { in get_multicast_id()
248 genlmsg_put(nlmsg, 0, 0, ctx->nlctrl_familyid, 0, 0, in get_multicast_id()
250 nla_put_string(nlmsg, CTRL_ATTR_FAMILY_NAME, "cld80211"); in get_multicast_id()
252 cld80211_send_recv_msg(ctx, nlmsg, family_handler, &res); in get_multicast_id()
255 nlmsg_free(nlmsg); in get_multicast_id()
312 struct nl_msg *nlmsg; in cld80211_msg_alloc() local
319 nlmsg = nlmsg_alloc(); in cld80211_msg_alloc()
320 if (nlmsg == NULL) { in cld80211_msg_alloc()
325 genlmsg_put(nlmsg, pid, /* seq = */ 0, ctx->netlink_familyid, in cld80211_msg_alloc()
328 *nla_data = nla_nest_start(nlmsg, CLD80211_ATTR_VENDOR_DATA); in cld80211_msg_alloc()
332 return nlmsg; in cld80211_msg_alloc()
335 if (nlmsg) in cld80211_msg_alloc()
336 nlmsg_free(nlmsg); in cld80211_msg_alloc()
341 int cld80211_send_msg(struct cld80211_ctx *ctx, struct nl_msg *nlmsg) in cld80211_send_msg() argument
345 if (!ctx || !ctx->sock || !nlmsg) { in cld80211_send_msg()
350 err = nl_send_auto_complete(ctx->sock, nlmsg); /* send message */ in cld80211_send_msg()
360 int cld80211_send_recv_msg(struct cld80211_ctx *ctx, struct nl_msg *nlmsg, in cld80211_send_recv_msg() argument
366 if (!ctx || !ctx->sock || !nlmsg) { in cld80211_send_recv_msg()
375 err = nl_send_auto_complete(ctx->sock, nlmsg); /* send message */ in cld80211_send_recv_msg()