nlh               159 crypto/crypto_user_base.c 	struct nlmsghdr *nlh;
nlh               163 crypto/crypto_user_base.c 	nlh = nlmsg_put(skb, NETLINK_CB(in_skb).portid, info->nlmsg_seq,
nlh               165 crypto/crypto_user_base.c 	if (!nlh) {
nlh               170 crypto/crypto_user_base.c 	ualg = nlmsg_data(nlh);
nlh               174 crypto/crypto_user_base.c 		nlmsg_cancel(skb, nlh);
nlh               178 crypto/crypto_user_base.c 	nlmsg_end(skb, nlh);
nlh               234 crypto/crypto_user_base.c 	info.nlmsg_seq = cb->nlh->nlmsg_seq;
nlh               260 crypto/crypto_user_base.c static int crypto_update_alg(struct sk_buff *skb, struct nlmsghdr *nlh,
nlh               264 crypto/crypto_user_base.c 	struct crypto_user_alg *p = nlmsg_data(nlh);
nlh               296 crypto/crypto_user_base.c static int crypto_del_alg(struct sk_buff *skb, struct nlmsghdr *nlh,
nlh               300 crypto/crypto_user_base.c 	struct crypto_user_alg *p = nlmsg_data(nlh);
nlh               333 crypto/crypto_user_base.c static int crypto_add_alg(struct sk_buff *skb, struct nlmsghdr *nlh,
nlh               339 crypto/crypto_user_base.c 	struct crypto_user_alg *p = nlmsg_data(nlh);
nlh               381 crypto/crypto_user_base.c static int crypto_del_rng(struct sk_buff *skb, struct nlmsghdr *nlh,
nlh               421 crypto/crypto_user_base.c static int crypto_user_rcv_msg(struct sk_buff *skb, struct nlmsghdr *nlh,
nlh               429 crypto/crypto_user_base.c 	type = nlh->nlmsg_type;
nlh               437 crypto/crypto_user_base.c 	    (nlh->nlmsg_flags & NLM_F_DUMP))) {
nlh               455 crypto/crypto_user_base.c 			err = netlink_dump_start(net->crypto_nlsk, skb, nlh, &c);
nlh               461 crypto/crypto_user_base.c 	err = nlmsg_parse_deprecated(nlh, crypto_msg_min[type], attrs,
nlh               469 crypto/crypto_user_base.c 	return link->doit(skb, nlh, attrs);
nlh               274 crypto/crypto_user_stat.c 	struct nlmsghdr *nlh;
nlh               278 crypto/crypto_user_stat.c 	nlh = nlmsg_put(skb, NETLINK_CB(in_skb).portid, info->nlmsg_seq,
nlh               280 crypto/crypto_user_stat.c 	if (!nlh) {
nlh               285 crypto/crypto_user_stat.c 	ualg = nlmsg_data(nlh);
nlh               289 crypto/crypto_user_stat.c 		nlmsg_cancel(skb, nlh);
nlh               293 crypto/crypto_user_stat.c 	nlmsg_end(skb, nlh);
nlh              3290 drivers/block/drbd/drbd_nl.c static struct nlattr *find_cfg_context_attr(const struct nlmsghdr *nlh, int attr)
nlh              3296 drivers/block/drbd/drbd_nl.c 	nla = nla_find(nlmsg_attrdata(nlh, hdrlen), nlmsg_attrlen(nlh, hdrlen),
nlh              3333 drivers/block/drbd/drbd_nl.c 			cb->nlh->nlmsg_seq, &drbd_genl_family,
nlh              3435 drivers/block/drbd/drbd_nl.c 		resource_filter = find_cfg_context_attr(cb->nlh, T_ctx_resource_name);
nlh              3462 drivers/block/drbd/drbd_nl.c 			cb->nlh->nlmsg_seq, &drbd_genl_family,
nlh              3524 drivers/block/drbd/drbd_nl.c 		resource_filter = find_cfg_context_attr(cb->nlh, T_ctx_resource_name);
nlh              3588 drivers/block/drbd/drbd_nl.c 			cb->nlh->nlmsg_seq, &drbd_genl_family,
nlh              3685 drivers/block/drbd/drbd_nl.c 		resource_filter = find_cfg_context_attr(cb->nlh, T_ctx_resource_name);
nlh              3730 drivers/block/drbd/drbd_nl.c 			cb->nlh->nlmsg_seq, &drbd_genl_family,
nlh              3992 drivers/block/drbd/drbd_nl.c 				cb->nlh->nlmsg_seq, &drbd_genl_family,
nlh              4073 drivers/block/drbd/drbd_nl.c 	nla = nla_find(nlmsg_attrdata(cb->nlh, hdrlen),
nlh              4074 drivers/block/drbd/drbd_nl.c 			nlmsg_attrlen(cb->nlh, hdrlen),
nlh              5021 drivers/block/drbd/drbd_nl.c 	cb->args[2] = cb->nlh->nlmsg_seq;
nlh                67 drivers/connector/connector.c 	struct nlmsghdr *nlh;
nlh               100 drivers/connector/connector.c 	nlh = nlmsg_put(skb, 0, msg->seq, NLMSG_DONE, size, 0);
nlh               101 drivers/connector/connector.c 	if (!nlh) {
nlh               106 drivers/connector/connector.c 	data = nlmsg_data(nlh);
nlh               133 drivers/connector/connector.c 	struct nlmsghdr *nlh;
nlh               141 drivers/connector/connector.c 	nlh = nlmsg_hdr(skb);
nlh               142 drivers/connector/connector.c 	if (nlh->nlmsg_len < NLMSG_HDRLEN + sizeof(struct cn_msg) + msg->len)
nlh               172 drivers/connector/connector.c 	struct nlmsghdr *nlh;
nlh               176 drivers/connector/connector.c 		nlh = nlmsg_hdr(skb);
nlh               177 drivers/connector/connector.c 		len = nlmsg_len(nlh);
nlh               180 drivers/connector/connector.c 		    skb->len < nlh->nlmsg_len ||
nlh                82 drivers/infiniband/core/addr.c static inline bool ib_nl_is_good_ip_resp(const struct nlmsghdr *nlh)
nlh                87 drivers/infiniband/core/addr.c 	if (nlh->nlmsg_flags & RDMA_NL_LS_F_ERR)
nlh                90 drivers/infiniband/core/addr.c 	ret = nla_parse_deprecated(tb, LS_NLA_TYPE_MAX - 1, nlmsg_data(nlh),
nlh                91 drivers/infiniband/core/addr.c 				   nlmsg_len(nlh), ib_nl_addr_policy, NULL);
nlh                98 drivers/infiniband/core/addr.c static void ib_nl_process_good_ip_rsep(const struct nlmsghdr *nlh)
nlh               106 drivers/infiniband/core/addr.c 	head = (const struct nlattr *)nlmsg_data(nlh);
nlh               107 drivers/infiniband/core/addr.c 	len = nlmsg_len(nlh);
nlh               116 drivers/infiniband/core/addr.c 		if (nlh->nlmsg_seq != req->seq)
nlh               132 drivers/infiniband/core/addr.c 			     struct nlmsghdr *nlh,
nlh               135 drivers/infiniband/core/addr.c 	if ((nlh->nlmsg_flags & NLM_F_REQUEST) ||
nlh               139 drivers/infiniband/core/addr.c 	if (ib_nl_is_good_ip_resp(nlh))
nlh               140 drivers/infiniband/core/addr.c 		ib_nl_process_good_ip_rsep(nlh);
nlh               150 drivers/infiniband/core/addr.c 	struct nlmsghdr *nlh;
nlh               172 drivers/infiniband/core/addr.c 	data = ibnl_put_msg(skb, &nlh, seq, 0, RDMA_NL_LS,
nlh               185 drivers/infiniband/core/addr.c 	nlmsg_end(skb, nlh);
nlh               207 drivers/infiniband/core/core_priv.h 			      struct nlmsghdr *nlh,
nlh               210 drivers/infiniband/core/core_priv.h 			     struct nlmsghdr *nlh,
nlh               213 drivers/infiniband/core/core_priv.h 			     struct nlmsghdr *nlh,
nlh                67 drivers/infiniband/core/iwpm_msg.c 	struct nlmsghdr *nlh;
nlh                79 drivers/infiniband/core/iwpm_msg.c 	skb = iwpm_create_nlmsg(RDMA_NL_IWPM_REG_PID, &nlh, nl_client);
nlh                84 drivers/infiniband/core/iwpm_msg.c 	nlh->nlmsg_seq = iwpm_get_nlmsg_seq();
nlh                85 drivers/infiniband/core/iwpm_msg.c 	nlmsg_request = iwpm_get_nlmsg_request(nlh->nlmsg_seq, nl_client, GFP_KERNEL);
nlh                94 drivers/infiniband/core/iwpm_msg.c 	ret = ibnl_put_attr(skb, nlh, sizeof(u32), &msg_seq, IWPM_NLA_REG_PID_SEQ);
nlh                97 drivers/infiniband/core/iwpm_msg.c 	ret = ibnl_put_attr(skb, nlh, IFNAMSIZ,
nlh               101 drivers/infiniband/core/iwpm_msg.c 	ret = ibnl_put_attr(skb, nlh, IWPM_DEVNAME_SIZE,
nlh               105 drivers/infiniband/core/iwpm_msg.c 	ret = ibnl_put_attr(skb, nlh, IWPM_ULIBNAME_SIZE,
nlh               110 drivers/infiniband/core/iwpm_msg.c 	nlmsg_end(skb, nlh);
nlh               151 drivers/infiniband/core/iwpm_msg.c 	struct nlmsghdr *nlh;
nlh               166 drivers/infiniband/core/iwpm_msg.c 	skb = iwpm_create_nlmsg(RDMA_NL_IWPM_ADD_MAPPING, &nlh, nl_client);
nlh               171 drivers/infiniband/core/iwpm_msg.c 	nlh->nlmsg_seq = iwpm_get_nlmsg_seq();
nlh               172 drivers/infiniband/core/iwpm_msg.c 	nlmsg_request = iwpm_get_nlmsg_request(nlh->nlmsg_seq, nl_client, GFP_KERNEL);
nlh               180 drivers/infiniband/core/iwpm_msg.c 	ret = ibnl_put_attr(skb, nlh, sizeof(u32), &msg_seq,
nlh               184 drivers/infiniband/core/iwpm_msg.c 	ret = ibnl_put_attr(skb, nlh, sizeof(struct sockaddr_storage),
nlh               195 drivers/infiniband/core/iwpm_msg.c 		ret = ibnl_put_attr(skb, nlh, sizeof(u32), &pm_msg->flags,
nlh               201 drivers/infiniband/core/iwpm_msg.c 	nlmsg_end(skb, nlh);
nlh               238 drivers/infiniband/core/iwpm_msg.c 	struct nlmsghdr *nlh;
nlh               254 drivers/infiniband/core/iwpm_msg.c 	skb = iwpm_create_nlmsg(RDMA_NL_IWPM_QUERY_MAPPING, &nlh, nl_client);
nlh               259 drivers/infiniband/core/iwpm_msg.c 	nlh->nlmsg_seq = iwpm_get_nlmsg_seq();
nlh               260 drivers/infiniband/core/iwpm_msg.c 	nlmsg_request = iwpm_get_nlmsg_request(nlh->nlmsg_seq,
nlh               270 drivers/infiniband/core/iwpm_msg.c 	ret = ibnl_put_attr(skb, nlh, sizeof(u32), &msg_seq,
nlh               274 drivers/infiniband/core/iwpm_msg.c 	ret = ibnl_put_attr(skb, nlh, sizeof(struct sockaddr_storage),
nlh               278 drivers/infiniband/core/iwpm_msg.c 	ret = ibnl_put_attr(skb, nlh, sizeof(struct sockaddr_storage),
nlh               289 drivers/infiniband/core/iwpm_msg.c 		ret = ibnl_put_attr(skb, nlh, sizeof(u32), &pm_msg->flags,
nlh               295 drivers/infiniband/core/iwpm_msg.c 	nlmsg_end(skb, nlh);
nlh               329 drivers/infiniband/core/iwpm_msg.c 	struct nlmsghdr *nlh;
nlh               344 drivers/infiniband/core/iwpm_msg.c 	skb = iwpm_create_nlmsg(RDMA_NL_IWPM_REMOVE_MAPPING, &nlh, nl_client);
nlh               351 drivers/infiniband/core/iwpm_msg.c 	nlh->nlmsg_seq = iwpm_get_nlmsg_seq();
nlh               353 drivers/infiniband/core/iwpm_msg.c 	ret = ibnl_put_attr(skb, nlh, sizeof(u32), &msg_seq,
nlh               357 drivers/infiniband/core/iwpm_msg.c 	ret = ibnl_put_attr(skb, nlh, sizeof(struct sockaddr_storage),
nlh               362 drivers/infiniband/core/iwpm_msg.c 	nlmsg_end(skb, nlh);
nlh               439 drivers/infiniband/core/iwpm_msg.c 	iwpm_user_pid = cb->nlh->nlmsg_pid;
nlh               444 drivers/infiniband/core/iwpm_msg.c 	atomic_set(&echo_nlmsg_seq, cb->nlh->nlmsg_seq);
nlh               489 drivers/infiniband/core/iwpm_msg.c 	atomic_set(&echo_nlmsg_seq, cb->nlh->nlmsg_seq);
nlh               567 drivers/infiniband/core/iwpm_msg.c 	atomic_set(&echo_nlmsg_seq, cb->nlh->nlmsg_seq);
nlh               589 drivers/infiniband/core/iwpm_msg.c 			__func__, cb->nlh->nlmsg_pid, msg_seq);
nlh               650 drivers/infiniband/core/iwpm_msg.c 	nl_client = RDMA_NL_GET_CLIENT(cb->nlh->nlmsg_type);
nlh               656 drivers/infiniband/core/iwpm_msg.c 	atomic_set(&echo_nlmsg_seq, cb->nlh->nlmsg_seq);
nlh               737 drivers/infiniband/core/iwpm_msg.c 	nl_client = RDMA_NL_GET_CLIENT(cb->nlh->nlmsg_type);
nlh               744 drivers/infiniband/core/iwpm_msg.c 	atomic_set(&echo_nlmsg_seq, cb->nlh->nlmsg_seq);
nlh               745 drivers/infiniband/core/iwpm_msg.c 	iwpm_user_pid = cb->nlh->nlmsg_pid;
nlh               786 drivers/infiniband/core/iwpm_msg.c 	atomic_set(&echo_nlmsg_seq, cb->nlh->nlmsg_seq);
nlh               805 drivers/infiniband/core/iwpm_msg.c 	int nl_client = RDMA_NL_GET_CLIENT(cb->nlh->nlmsg_type);
nlh               826 drivers/infiniband/core/iwpm_msg.c 	atomic_set(&echo_nlmsg_seq, cb->nlh->nlmsg_seq);
nlh               864 drivers/infiniband/core/iwpm_msg.c 	nl_client = RDMA_NL_GET_CLIENT(cb->nlh->nlmsg_type);
nlh               871 drivers/infiniband/core/iwpm_msg.c 	atomic_set(&echo_nlmsg_seq, cb->nlh->nlmsg_seq);
nlh               874 drivers/infiniband/core/iwpm_msg.c 	iwpm_user_pid = cb->nlh->nlmsg_pid;
nlh               482 drivers/infiniband/core/iwpm_util.c struct sk_buff *iwpm_create_nlmsg(u32 nl_op, struct nlmsghdr **nlh,
nlh               491 drivers/infiniband/core/iwpm_util.c 	if (!(ibnl_put_msg(skb, nlh, 0, 0, nl_client, nl_op,
nlh               509 drivers/infiniband/core/iwpm_util.c 	ret = nlmsg_validate_deprecated(cb->nlh, nlh_len, policy_max - 1,
nlh               515 drivers/infiniband/core/iwpm_util.c 	ret = nlmsg_parse_deprecated(cb->nlh, nlh_len, nltb, policy_max - 1,
nlh               625 drivers/infiniband/core/iwpm_util.c 	struct nlmsghdr *nlh;
nlh               630 drivers/infiniband/core/iwpm_util.c 	skb = iwpm_create_nlmsg(RDMA_NL_IWPM_MAPINFO_NUM, &nlh, nl_client);
nlh               635 drivers/infiniband/core/iwpm_util.c 	nlh->nlmsg_seq = iwpm_get_nlmsg_seq();
nlh               638 drivers/infiniband/core/iwpm_util.c 	ret = ibnl_put_attr(skb, nlh, sizeof(u32), &msg_seq, IWPM_NLA_MAPINFO_SEQ);
nlh               641 drivers/infiniband/core/iwpm_util.c 	ret = ibnl_put_attr(skb, nlh, sizeof(u32),
nlh               646 drivers/infiniband/core/iwpm_util.c 	nlmsg_end(skb, nlh);
nlh               664 drivers/infiniband/core/iwpm_util.c 	struct nlmsghdr *nlh = NULL;
nlh               669 drivers/infiniband/core/iwpm_util.c 	if (!(ibnl_put_msg(skb, &nlh, 0, 0, nl_client,
nlh               675 drivers/infiniband/core/iwpm_util.c 	nlh->nlmsg_type = NLMSG_DONE;
nlh               686 drivers/infiniband/core/iwpm_util.c 	struct nlmsghdr *nlh;
nlh               707 drivers/infiniband/core/iwpm_util.c 			nlh = NULL;
nlh               708 drivers/infiniband/core/iwpm_util.c 			if (!(ibnl_put_msg(skb, &nlh, 0, 0, nl_client,
nlh               715 drivers/infiniband/core/iwpm_util.c 			ret = ibnl_put_attr(skb, nlh,
nlh               722 drivers/infiniband/core/iwpm_util.c 			ret = ibnl_put_attr(skb, nlh,
nlh               730 drivers/infiniband/core/iwpm_util.c 				ret = ibnl_put_attr(skb, nlh, sizeof(u32),
nlh               737 drivers/infiniband/core/iwpm_util.c 			nlmsg_end(skb, nlh);
nlh               744 drivers/infiniband/core/iwpm_util.c 			nlmsg_bytes += nlh->nlmsg_len;
nlh               747 drivers/infiniband/core/iwpm_util.c 			if (NLMSG_GOODSIZE - nlmsg_bytes < nlh->nlmsg_len * 2) {
nlh               808 drivers/infiniband/core/iwpm_util.c 	struct nlmsghdr *nlh;
nlh               812 drivers/infiniband/core/iwpm_util.c 	skb = iwpm_create_nlmsg(RDMA_NL_IWPM_HELLO, &nlh, nl_client);
nlh               817 drivers/infiniband/core/iwpm_util.c 	nlh->nlmsg_seq = iwpm_get_nlmsg_seq();
nlh               819 drivers/infiniband/core/iwpm_util.c 	ret = ibnl_put_attr(skb, nlh, sizeof(u16), &abi_version,
nlh               823 drivers/infiniband/core/iwpm_util.c 	nlmsg_end(skb, nlh);
nlh               247 drivers/infiniband/core/iwpm_util.h struct sk_buff *iwpm_create_nlmsg(u32 nl_op, struct nlmsghdr **nlh,
nlh               131 drivers/infiniband/core/netlink.c void *ibnl_put_msg(struct sk_buff *skb, struct nlmsghdr **nlh, int seq,
nlh               134 drivers/infiniband/core/netlink.c 	*nlh = nlmsg_put(skb, 0, seq, RDMA_NL_GET_TYPE(client, op), len, flags);
nlh               135 drivers/infiniband/core/netlink.c 	if (!*nlh)
nlh               137 drivers/infiniband/core/netlink.c 	return nlmsg_data(*nlh);
nlh               141 drivers/infiniband/core/netlink.c int ibnl_put_attr(struct sk_buff *skb, struct nlmsghdr *nlh,
nlh               145 drivers/infiniband/core/netlink.c 		nlmsg_cancel(skb, nlh);
nlh               152 drivers/infiniband/core/netlink.c static int rdma_nl_rcv_msg(struct sk_buff *skb, struct nlmsghdr *nlh,
nlh               155 drivers/infiniband/core/netlink.c 	int type = nlh->nlmsg_type;
nlh               181 drivers/infiniband/core/netlink.c 			err = cb_table[op].doit(skb, nlh, extack);
nlh               185 drivers/infiniband/core/netlink.c 	if ((nlh->nlmsg_flags & NLM_F_DUMP) || index == RDMA_NL_IWCM) {
nlh               190 drivers/infiniband/core/netlink.c 			err = netlink_dump_start(skb->sk, skb, nlh, &c);
nlh               195 drivers/infiniband/core/netlink.c 		err = cb_table[op].doit(skb, nlh, extack);
nlh               212 drivers/infiniband/core/netlink.c 	struct nlmsghdr *nlh;
nlh               218 drivers/infiniband/core/netlink.c 		nlh = nlmsg_hdr(skb);
nlh               221 drivers/infiniband/core/netlink.c 		if (nlh->nlmsg_len < NLMSG_HDRLEN || skb->len < nlh->nlmsg_len)
nlh               231 drivers/infiniband/core/netlink.c 		if (!(nlh->nlmsg_flags & NLM_F_REQUEST) &&
nlh               232 drivers/infiniband/core/netlink.c 		    (RDMA_NL_GET_CLIENT(nlh->nlmsg_type) != RDMA_NL_LS))
nlh               236 drivers/infiniband/core/netlink.c 		if (nlh->nlmsg_type < NLMSG_MIN_TYPE)
nlh               239 drivers/infiniband/core/netlink.c 		err = cb(skb, nlh, &extack);
nlh               244 drivers/infiniband/core/netlink.c 		if (nlh->nlmsg_flags & NLM_F_ACK || err)
nlh               245 drivers/infiniband/core/netlink.c 			netlink_ack(skb, nlh, err, &extack);
nlh               248 drivers/infiniband/core/netlink.c 		msglen = NLMSG_ALIGN(nlh->nlmsg_len);
nlh               797 drivers/infiniband/core/nldev.c static int nldev_get_doit(struct sk_buff *skb, struct nlmsghdr *nlh,
nlh               806 drivers/infiniband/core/nldev.c 	err = nlmsg_parse_deprecated(nlh, 0, tb, RDMA_NLDEV_ATTR_MAX - 1,
nlh               823 drivers/infiniband/core/nldev.c 	nlh = nlmsg_put(msg, NETLINK_CB(skb).portid, nlh->nlmsg_seq,
nlh               831 drivers/infiniband/core/nldev.c 	nlmsg_end(msg, nlh);
nlh               843 drivers/infiniband/core/nldev.c static int nldev_set_doit(struct sk_buff *skb, struct nlmsghdr *nlh,
nlh               851 drivers/infiniband/core/nldev.c 	err = nlmsg_parse_deprecated(nlh, 0, tb, RDMA_NLDEV_ATTR_MAX - 1,
nlh               902 drivers/infiniband/core/nldev.c 	struct nlmsghdr *nlh;
nlh               907 drivers/infiniband/core/nldev.c 	nlh = nlmsg_put(skb, NETLINK_CB(cb->skb).portid, cb->nlh->nlmsg_seq,
nlh               912 drivers/infiniband/core/nldev.c 		nlmsg_cancel(skb, nlh);
nlh               916 drivers/infiniband/core/nldev.c 	nlmsg_end(skb, nlh);
nlh               933 drivers/infiniband/core/nldev.c static int nldev_port_get_doit(struct sk_buff *skb, struct nlmsghdr *nlh,
nlh               943 drivers/infiniband/core/nldev.c 	err = nlmsg_parse_deprecated(nlh, 0, tb, RDMA_NLDEV_ATTR_MAX - 1,
nlh               967 drivers/infiniband/core/nldev.c 	nlh = nlmsg_put(msg, NETLINK_CB(skb).portid, nlh->nlmsg_seq,
nlh               975 drivers/infiniband/core/nldev.c 	nlmsg_end(msg, nlh);
nlh               993 drivers/infiniband/core/nldev.c 	struct nlmsghdr *nlh;
nlh               999 drivers/infiniband/core/nldev.c 	err = nlmsg_parse_deprecated(cb->nlh, 0, tb, RDMA_NLDEV_ATTR_MAX - 1,
nlh              1025 drivers/infiniband/core/nldev.c 		nlh = nlmsg_put(skb, NETLINK_CB(cb->skb).portid,
nlh              1026 drivers/infiniband/core/nldev.c 				cb->nlh->nlmsg_seq,
nlh              1032 drivers/infiniband/core/nldev.c 			nlmsg_cancel(skb, nlh);
nlh              1036 drivers/infiniband/core/nldev.c 		nlmsg_end(skb, nlh);
nlh              1045 drivers/infiniband/core/nldev.c static int nldev_res_get_doit(struct sk_buff *skb, struct nlmsghdr *nlh,
nlh              1054 drivers/infiniband/core/nldev.c 	ret = nlmsg_parse_deprecated(nlh, 0, tb, RDMA_NLDEV_ATTR_MAX - 1,
nlh              1070 drivers/infiniband/core/nldev.c 	nlh = nlmsg_put(msg, NETLINK_CB(skb).portid, nlh->nlmsg_seq,
nlh              1078 drivers/infiniband/core/nldev.c 	nlmsg_end(msg, nlh);
nlh              1095 drivers/infiniband/core/nldev.c 	struct nlmsghdr *nlh;
nlh              1100 drivers/infiniband/core/nldev.c 	nlh = nlmsg_put(skb, NETLINK_CB(cb->skb).portid, cb->nlh->nlmsg_seq,
nlh              1105 drivers/infiniband/core/nldev.c 		nlmsg_cancel(skb, nlh);
nlh              1108 drivers/infiniband/core/nldev.c 	nlmsg_end(skb, nlh);
nlh              1185 drivers/infiniband/core/nldev.c static int res_get_common_doit(struct sk_buff *skb, struct nlmsghdr *nlh,
nlh              1198 drivers/infiniband/core/nldev.c 	ret = nlmsg_parse_deprecated(nlh, 0, tb, RDMA_NLDEV_ATTR_MAX - 1,
nlh              1240 drivers/infiniband/core/nldev.c 	nlh = nlmsg_put(msg, NETLINK_CB(skb).portid, nlh->nlmsg_seq,
nlh              1255 drivers/infiniband/core/nldev.c 	nlmsg_end(msg, nlh);
nlh              1282 drivers/infiniband/core/nldev.c 	struct nlmsghdr *nlh;
nlh              1287 drivers/infiniband/core/nldev.c 	err = nlmsg_parse_deprecated(cb->nlh, 0, tb, RDMA_NLDEV_ATTR_MAX - 1,
nlh              1316 drivers/infiniband/core/nldev.c 	nlh = nlmsg_put(skb, NETLINK_CB(cb->skb).portid, cb->nlh->nlmsg_seq,
nlh              1377 drivers/infiniband/core/nldev.c 	nlmsg_end(skb, nlh);
nlh              1394 drivers/infiniband/core/nldev.c 	nlmsg_cancel(skb, nlh);
nlh              1408 drivers/infiniband/core/nldev.c 					       struct nlmsghdr *nlh,           \
nlh              1411 drivers/infiniband/core/nldev.c 		return res_get_common_doit(skb, nlh, extack, type);            \
nlh              1456 drivers/infiniband/core/nldev.c static int nldev_newlink(struct sk_buff *skb, struct nlmsghdr *nlh,
nlh              1467 drivers/infiniband/core/nldev.c 	err = nlmsg_parse_deprecated(nlh, 0, tb, RDMA_NLDEV_ATTR_MAX - 1,
nlh              1503 drivers/infiniband/core/nldev.c static int nldev_dellink(struct sk_buff *skb, struct nlmsghdr *nlh,
nlh              1511 drivers/infiniband/core/nldev.c 	err = nlmsg_parse_deprecated(nlh, 0, tb, RDMA_NLDEV_ATTR_MAX - 1,
nlh              1530 drivers/infiniband/core/nldev.c static int nldev_get_chardev(struct sk_buff *skb, struct nlmsghdr *nlh,
nlh              1541 drivers/infiniband/core/nldev.c 	err = nlmsg_parse(nlh, 0, tb, RDMA_NLDEV_ATTR_MAX - 1, nldev_policy,
nlh              1573 drivers/infiniband/core/nldev.c 	nlh = nlmsg_put(msg, NETLINK_CB(skb).portid, nlh->nlmsg_seq,
nlh              1598 drivers/infiniband/core/nldev.c 	nlmsg_end(msg, nlh);
nlh              1614 drivers/infiniband/core/nldev.c static int nldev_sys_get_doit(struct sk_buff *skb, struct nlmsghdr *nlh,
nlh              1621 drivers/infiniband/core/nldev.c 	err = nlmsg_parse(nlh, 0, tb, RDMA_NLDEV_ATTR_MAX - 1,
nlh              1630 drivers/infiniband/core/nldev.c 	nlh = nlmsg_put(msg, NETLINK_CB(skb).portid, nlh->nlmsg_seq,
nlh              1641 drivers/infiniband/core/nldev.c 	nlmsg_end(msg, nlh);
nlh              1645 drivers/infiniband/core/nldev.c static int nldev_set_sys_set_doit(struct sk_buff *skb, struct nlmsghdr *nlh,
nlh              1652 drivers/infiniband/core/nldev.c 	err = nlmsg_parse(nlh, 0, tb, RDMA_NLDEV_ATTR_MAX - 1,
nlh              1666 drivers/infiniband/core/nldev.c static int nldev_stat_set_doit(struct sk_buff *skb, struct nlmsghdr *nlh,
nlh              1675 drivers/infiniband/core/nldev.c 	ret = nlmsg_parse(nlh, 0, tb, RDMA_NLDEV_ATTR_MAX - 1,
nlh              1702 drivers/infiniband/core/nldev.c 	nlh = nlmsg_put(msg, NETLINK_CB(skb).portid, nlh->nlmsg_seq,
nlh              1740 drivers/infiniband/core/nldev.c 	nlmsg_end(msg, nlh);
nlh              1753 drivers/infiniband/core/nldev.c static int nldev_stat_del_doit(struct sk_buff *skb, struct nlmsghdr *nlh,
nlh              1762 drivers/infiniband/core/nldev.c 	ret = nlmsg_parse(nlh, 0, tb, RDMA_NLDEV_ATTR_MAX - 1,
nlh              1789 drivers/infiniband/core/nldev.c 	nlh = nlmsg_put(msg, NETLINK_CB(skb).portid, nlh->nlmsg_seq,
nlh              1808 drivers/infiniband/core/nldev.c 	nlmsg_end(msg, nlh);
nlh              1820 drivers/infiniband/core/nldev.c 					 struct nlmsghdr *nlh,
nlh              1857 drivers/infiniband/core/nldev.c 	nlh = nlmsg_put(msg, NETLINK_CB(skb).portid, nlh->nlmsg_seq,
nlh              1897 drivers/infiniband/core/nldev.c 	nlmsg_end(msg, nlh);
nlh              1912 drivers/infiniband/core/nldev.c static int stat_get_doit_qp(struct sk_buff *skb, struct nlmsghdr *nlh,
nlh              1924 drivers/infiniband/core/nldev.c 		return nldev_res_get_counter_doit(skb, nlh, extack);
nlh              1947 drivers/infiniband/core/nldev.c 	nlh = nlmsg_put(msg, NETLINK_CB(skb).portid, nlh->nlmsg_seq,
nlh              1969 drivers/infiniband/core/nldev.c 	nlmsg_end(msg, nlh);
nlh              1980 drivers/infiniband/core/nldev.c static int nldev_stat_get_doit(struct sk_buff *skb, struct nlmsghdr *nlh,
nlh              1986 drivers/infiniband/core/nldev.c 	ret = nlmsg_parse(nlh, 0, tb, RDMA_NLDEV_ATTR_MAX - 1,
nlh              1992 drivers/infiniband/core/nldev.c 		return stat_get_doit_default_counter(skb, nlh, extack, tb);
nlh              1996 drivers/infiniband/core/nldev.c 		ret = stat_get_doit_qp(skb, nlh, extack, tb);
nlh              2013 drivers/infiniband/core/nldev.c 	ret = nlmsg_parse(cb->nlh, 0, tb, RDMA_NLDEV_ATTR_MAX - 1,
nlh               835 drivers/infiniband/core/sa_query.c 	struct nlmsghdr *nlh;
nlh               850 drivers/infiniband/core/sa_query.c 	data = ibnl_put_msg(skb, &nlh, query->seq, 0, RDMA_NL_LS,
nlh               861 drivers/infiniband/core/sa_query.c 	nlmsg_end(skb, nlh);
nlh               924 drivers/infiniband/core/sa_query.c 					   const struct nlmsghdr *nlh)
nlh               935 drivers/infiniband/core/sa_query.c 		head = (const struct nlattr *) nlmsg_data(nlh);
nlh               936 drivers/infiniband/core/sa_query.c 		len = nlmsg_len(nlh);
nlh              1015 drivers/infiniband/core/sa_query.c 			     struct nlmsghdr *nlh,
nlh              1026 drivers/infiniband/core/sa_query.c 	if (!(nlh->nlmsg_flags & NLM_F_REQUEST) ||
nlh              1030 drivers/infiniband/core/sa_query.c 	ret = nla_parse_deprecated(tb, LS_NLA_TYPE_MAX - 1, nlmsg_data(nlh),
nlh              1031 drivers/infiniband/core/sa_query.c 				   nlmsg_len(nlh), ib_nl_policy, NULL);
nlh              1074 drivers/infiniband/core/sa_query.c static inline int ib_nl_is_good_resolve_resp(const struct nlmsghdr *nlh)
nlh              1079 drivers/infiniband/core/sa_query.c 	if (nlh->nlmsg_flags & RDMA_NL_LS_F_ERR)
nlh              1082 drivers/infiniband/core/sa_query.c 	ret = nla_parse_deprecated(tb, LS_NLA_TYPE_MAX - 1, nlmsg_data(nlh),
nlh              1083 drivers/infiniband/core/sa_query.c 				   nlmsg_len(nlh), ib_nl_policy, NULL);
nlh              1091 drivers/infiniband/core/sa_query.c 			      struct nlmsghdr *nlh,
nlh              1101 drivers/infiniband/core/sa_query.c 	if ((nlh->nlmsg_flags & NLM_F_REQUEST) ||
nlh              1111 drivers/infiniband/core/sa_query.c 		if (nlh->nlmsg_seq == query->seq) {
nlh              1126 drivers/infiniband/core/sa_query.c 	if (!ib_nl_is_good_resolve_resp(nlh)) {
nlh              1138 drivers/infiniband/core/sa_query.c 		ib_nl_process_good_resolve_rsp(query, nlh);
nlh              11273 drivers/net/ethernet/broadcom/bnxt/bnxt.c static int bnxt_bridge_setlink(struct net_device *dev, struct nlmsghdr *nlh,
nlh              11283 drivers/net/ethernet/broadcom/bnxt/bnxt.c 	br_spec = nlmsg_find_attr(nlh, sizeof(struct ifinfomsg), IFLA_AF_SPEC);
nlh              4959 drivers/net/ethernet/emulex/benet/be_main.c static int be_ndo_bridge_setlink(struct net_device *dev, struct nlmsghdr *nlh,
nlh              4971 drivers/net/ethernet/emulex/benet/be_main.c 	br_spec = nlmsg_find_attr(nlh, sizeof(struct ifinfomsg), IFLA_AF_SPEC);
nlh              12341 drivers/net/ethernet/intel/i40e/i40e_main.c 				   struct nlmsghdr *nlh,
nlh              12362 drivers/net/ethernet/intel/i40e/i40e_main.c 	br_spec = nlmsg_find_attr(nlh, sizeof(struct ifinfomsg), IFLA_AF_SPEC);
nlh              4579 drivers/net/ethernet/intel/ice/ice_main.c ice_bridge_setlink(struct net_device *dev, struct nlmsghdr *nlh,
nlh              4593 drivers/net/ethernet/intel/ice/ice_main.c 	br_spec = nlmsg_find_attr(nlh, sizeof(struct ifinfomsg), IFLA_AF_SPEC);
nlh              10015 drivers/net/ethernet/intel/ixgbe/ixgbe_main.c 				    struct nlmsghdr *nlh, u16 flags,
nlh              10025 drivers/net/ethernet/intel/ixgbe/ixgbe_main.c 	br_spec = nlmsg_find_attr(nlh, sizeof(struct ifinfomsg), IFLA_AF_SPEC);
nlh              4557 drivers/net/ethernet/mellanox/mlx5/core/en_main.c static int mlx5e_bridge_setlink(struct net_device *dev, struct nlmsghdr *nlh,
nlh              4567 drivers/net/ethernet/mellanox/mlx5/core/en_main.c 	br_spec = nlmsg_find_attr(nlh, sizeof(struct ifinfomsg), IFLA_AF_SPEC);
nlh               815 drivers/net/ethernet/mscc/ocelot.c 	u32 seq = dump->cb->nlh->nlmsg_seq;
nlh               816 drivers/net/ethernet/mscc/ocelot.c 	struct nlmsghdr *nlh;
nlh               822 drivers/net/ethernet/mscc/ocelot.c 	nlh = nlmsg_put(dump->skb, portid, seq, RTM_NEWNEIGH,
nlh               824 drivers/net/ethernet/mscc/ocelot.c 	if (!nlh)
nlh               827 drivers/net/ethernet/mscc/ocelot.c 	ndm = nlmsg_data(nlh);
nlh               842 drivers/net/ethernet/mscc/ocelot.c 	nlmsg_end(dump->skb, nlh);
nlh               849 drivers/net/ethernet/mscc/ocelot.c 	nlmsg_cancel(dump->skb, nlh);
nlh              1276 drivers/net/gtp.c 					    cb->nlh->nlmsg_seq,
nlh              1278 drivers/net/gtp.c 					    cb->nlh->nlmsg_type, pctx)) {
nlh               348 drivers/net/ieee802154/mac802154_hwsim.c 				      cb->nlh->nlmsg_seq, cb, NLM_F_MULTI);
nlh              2420 drivers/net/macsec.c 	hdr = genlmsg_put(skb, NETLINK_CB(cb->skb).portid, cb->nlh->nlmsg_seq,
nlh              2422 drivers/net/team/team.c 	struct nlmsghdr *nlh;
nlh              2473 drivers/net/team/team.c 	nlh = nlmsg_put(skb, portid, seq, NLMSG_DONE, 0, flags | NLM_F_MULTI);
nlh              2474 drivers/net/team/team.c 	if (!nlh) {
nlh              2701 drivers/net/team/team.c 	struct nlmsghdr *nlh;
nlh              2762 drivers/net/team/team.c 	nlh = nlmsg_put(skb, portid, seq, NLMSG_DONE, 0, flags | NLM_F_MULTI);
nlh              2763 drivers/net/team/team.c 	if (!nlh) {
nlh              1154 drivers/net/vrf.c 	struct nlmsghdr *nlh;
nlh              1166 drivers/net/vrf.c 	nlh = nlmsg_put(skb, 0, 0, 0, sizeof(*frh), 0);
nlh              1167 drivers/net/vrf.c 	if (!nlh)
nlh              1171 drivers/net/vrf.c 	nlh->nlmsg_flags |= NLM_F_EXCL;
nlh              1173 drivers/net/vrf.c 	frh = nlmsg_data(nlh);
nlh              1187 drivers/net/vrf.c 	nlmsg_end(skb, nlh);
nlh              1192 drivers/net/vrf.c 		err = fib_nl_newrule(skb, nlh, NULL);
nlh              1196 drivers/net/vrf.c 		err = fib_nl_delrule(skb, nlh, NULL);
nlh               254 drivers/net/vxlan.c 	struct nlmsghdr *nlh;
nlh               258 drivers/net/vxlan.c 	nlh = nlmsg_put(skb, portid, seq, type, sizeof(*ndm), flags);
nlh               259 drivers/net/vxlan.c 	if (nlh == NULL)
nlh               262 drivers/net/vxlan.c 	ndm = nlmsg_data(nlh);
nlh               313 drivers/net/vxlan.c 	nlmsg_end(skb, nlh);
nlh               317 drivers/net/vxlan.c 	nlmsg_cancel(skb, nlh);
nlh              1237 drivers/net/vxlan.c 						     cb->nlh->nlmsg_seq,
nlh              3702 drivers/net/wireless/mac80211_hwsim.c 					       cb->nlh->nlmsg_seq, cb,
nlh              3715 drivers/net/wireless/mac80211_hwsim.c 				  cb->nlh->nlmsg_seq, &hwsim_genl_family,
nlh                34 drivers/scsi/scsi_netlink.c 	struct nlmsghdr *nlh;
nlh                42 drivers/scsi/scsi_netlink.c 		nlh = nlmsg_hdr(skb);
nlh                43 drivers/scsi/scsi_netlink.c 		if ((nlh->nlmsg_len < (sizeof(*nlh) + sizeof(*hdr))) ||
nlh                44 drivers/scsi/scsi_netlink.c 		    (skb->len < nlh->nlmsg_len)) {
nlh                50 drivers/scsi/scsi_netlink.c 		rlen = NLMSG_ALIGN(nlh->nlmsg_len);
nlh                54 drivers/scsi/scsi_netlink.c 		if (nlh->nlmsg_type != SCSI_TRANSPORT_MSG) {
nlh                59 drivers/scsi/scsi_netlink.c 		hdr = nlmsg_data(nlh);
nlh                71 drivers/scsi/scsi_netlink.c 		if (nlh->nlmsg_len < (sizeof(*nlh) + hdr->msglen)) {
nlh                99 drivers/scsi/scsi_netlink.c 		if ((err) || (nlh->nlmsg_flags & NLM_F_ACK))
nlh               100 drivers/scsi/scsi_netlink.c 			netlink_ack(skb, nlh, err, NULL);
nlh               532 drivers/scsi/scsi_transport_fc.c 	struct nlmsghdr	*nlh;
nlh               554 drivers/scsi/scsi_transport_fc.c 	nlh = nlmsg_put(skb, 0, 0, SCSI_TRANSPORT_MSG, len, 0);
nlh               555 drivers/scsi/scsi_transport_fc.c 	if (!nlh) {
nlh               559 drivers/scsi/scsi_transport_fc.c 	event = nlmsg_data(nlh);
nlh              2342 drivers/scsi/scsi_transport_iscsi.c 	struct nlmsghdr	*nlh;
nlh              2362 drivers/scsi/scsi_transport_iscsi.c 	nlh = __nlmsg_put(skb, 0, 0, 0, (len - sizeof(*nlh)), 0);
nlh              2363 drivers/scsi/scsi_transport_iscsi.c 	ev = nlmsg_data(nlh);
nlh              2381 drivers/scsi/scsi_transport_iscsi.c 	struct nlmsghdr	*nlh;
nlh              2392 drivers/scsi/scsi_transport_iscsi.c 	nlh = __nlmsg_put(skb, 0, 0, 0, (len - sizeof(*nlh)), 0);
nlh              2393 drivers/scsi/scsi_transport_iscsi.c 	ev = nlmsg_data(nlh);
nlh              2414 drivers/scsi/scsi_transport_iscsi.c 	struct nlmsghdr	*nlh;
nlh              2431 drivers/scsi/scsi_transport_iscsi.c 	nlh = __nlmsg_put(skb, 0, 0, 0, (len - sizeof(*nlh)), 0);
nlh              2432 drivers/scsi/scsi_transport_iscsi.c 	ev = nlmsg_data(nlh);
nlh              2449 drivers/scsi/scsi_transport_iscsi.c 	struct nlmsghdr *nlh;
nlh              2466 drivers/scsi/scsi_transport_iscsi.c 	nlh = __nlmsg_put(skb, 0, 0, 0, (len - sizeof(*nlh)), 0);
nlh              2467 drivers/scsi/scsi_transport_iscsi.c 	ev = nlmsg_data(nlh);
nlh              2484 drivers/scsi/scsi_transport_iscsi.c 	struct nlmsghdr *nlh;
nlh              2496 drivers/scsi/scsi_transport_iscsi.c 	nlh = __nlmsg_put(skb, 0, 0, 0, (len - sizeof(*nlh)), 0);
nlh              2497 drivers/scsi/scsi_transport_iscsi.c 	ev = nlmsg_data(nlh);
nlh              2515 drivers/scsi/scsi_transport_iscsi.c 	struct nlmsghdr *nlh;
nlh              2526 drivers/scsi/scsi_transport_iscsi.c 	nlh = __nlmsg_put(skb, 0, 0, 0, (len - sizeof(*nlh)), 0);
nlh              2527 drivers/scsi/scsi_transport_iscsi.c 	ev = nlmsg_data(nlh);
nlh              2544 drivers/scsi/scsi_transport_iscsi.c 	struct nlmsghdr	*nlh;
nlh              2553 drivers/scsi/scsi_transport_iscsi.c 	nlh = __nlmsg_put(skb, 0, 0, type, (len - sizeof(*nlh)), 0);
nlh              2554 drivers/scsi/scsi_transport_iscsi.c 	memcpy(nlmsg_data(nlh), payload, size);
nlh              2559 drivers/scsi/scsi_transport_iscsi.c iscsi_if_get_stats(struct iscsi_transport *transport, struct nlmsghdr *nlh)
nlh              2561 drivers/scsi/scsi_transport_iscsi.c 	struct iscsi_uevent *ev = nlmsg_data(nlh);
nlh              2597 drivers/scsi/scsi_transport_iscsi.c 		evstat->type = nlh->nlmsg_type;
nlh              2635 drivers/scsi/scsi_transport_iscsi.c 	struct nlmsghdr *nlh;
nlh              2651 drivers/scsi/scsi_transport_iscsi.c 	nlh = __nlmsg_put(skb, 0, 0, 0, (len - sizeof(*nlh)), 0);
nlh              2652 drivers/scsi/scsi_transport_iscsi.c 	ev = nlmsg_data(nlh);
nlh              3021 drivers/scsi/scsi_transport_iscsi.c iscsi_get_chap(struct iscsi_transport *transport, struct nlmsghdr *nlh)
nlh              3023 drivers/scsi/scsi_transport_iscsi.c 	struct iscsi_uevent *ev = nlmsg_data(nlh);
nlh              3066 drivers/scsi/scsi_transport_iscsi.c 		evchap->type = nlh->nlmsg_type;
nlh              3427 drivers/scsi/scsi_transport_iscsi.c iscsi_get_host_stats(struct iscsi_transport *transport, struct nlmsghdr *nlh)
nlh              3429 drivers/scsi/scsi_transport_iscsi.c 	struct iscsi_uevent *ev = nlmsg_data(nlh);
nlh              3471 drivers/scsi/scsi_transport_iscsi.c 		evhost_stats->type = nlh->nlmsg_type;
nlh              3498 drivers/scsi/scsi_transport_iscsi.c iscsi_if_recv_msg(struct sk_buff *skb, struct nlmsghdr *nlh, uint32_t *group)
nlh              3502 drivers/scsi/scsi_transport_iscsi.c 	struct iscsi_uevent *ev = nlmsg_data(nlh);
nlh              3509 drivers/scsi/scsi_transport_iscsi.c 	if (nlh->nlmsg_type == ISCSI_UEVENT_PATH_UPDATE)
nlh              3524 drivers/scsi/scsi_transport_iscsi.c 	switch (nlh->nlmsg_type) {
nlh              3626 drivers/scsi/scsi_transport_iscsi.c 		err = iscsi_if_get_stats(transport, nlh);
nlh              3632 drivers/scsi/scsi_transport_iscsi.c 		err = iscsi_if_transport_ep(transport, ev, nlh->nlmsg_type);
nlh              3645 drivers/scsi/scsi_transport_iscsi.c 					     nlmsg_attrlen(nlh, sizeof(*ev)));
nlh              3651 drivers/scsi/scsi_transport_iscsi.c 		err = iscsi_get_chap(transport, nlh);
nlh              3658 drivers/scsi/scsi_transport_iscsi.c 						nlmsg_attrlen(nlh,
nlh              3663 drivers/scsi/scsi_transport_iscsi.c 					  nlmsg_attrlen(nlh, sizeof(*ev)));
nlh              3679 drivers/scsi/scsi_transport_iscsi.c 				     nlmsg_attrlen(nlh, sizeof(*ev)));
nlh              3682 drivers/scsi/scsi_transport_iscsi.c 		err = iscsi_get_host_stats(transport, nlh);
nlh              3706 drivers/scsi/scsi_transport_iscsi.c 		struct nlmsghdr	*nlh;
nlh              3711 drivers/scsi/scsi_transport_iscsi.c 		nlh = nlmsg_hdr(skb);
nlh              3712 drivers/scsi/scsi_transport_iscsi.c 		if (nlh->nlmsg_len < sizeof(*nlh) + sizeof(*ev) ||
nlh              3713 drivers/scsi/scsi_transport_iscsi.c 		    skb->len < nlh->nlmsg_len) {
nlh              3717 drivers/scsi/scsi_transport_iscsi.c 		ev = nlmsg_data(nlh);
nlh              3718 drivers/scsi/scsi_transport_iscsi.c 		rlen = NLMSG_ALIGN(nlh->nlmsg_len);
nlh              3722 drivers/scsi/scsi_transport_iscsi.c 		err = iscsi_if_recv_msg(skb, nlh, &group);
nlh              3738 drivers/scsi/scsi_transport_iscsi.c 			err = iscsi_if_send_reply(portid, nlh->nlmsg_type,
nlh               564 drivers/staging/fsl-dpaa2/ethsw/ethsw.c 	u32 seq = dump->cb->nlh->nlmsg_seq;
nlh               565 drivers/staging/fsl-dpaa2/ethsw/ethsw.c 	struct nlmsghdr *nlh;
nlh               571 drivers/staging/fsl-dpaa2/ethsw/ethsw.c 	nlh = nlmsg_put(dump->skb, portid, seq, RTM_NEWNEIGH,
nlh               573 drivers/staging/fsl-dpaa2/ethsw/ethsw.c 	if (!nlh)
nlh               576 drivers/staging/fsl-dpaa2/ethsw/ethsw.c 	ndm = nlmsg_data(nlh);
nlh               588 drivers/staging/fsl-dpaa2/ethsw/ethsw.c 	nlmsg_end(dump->skb, nlh);
nlh               595 drivers/staging/fsl-dpaa2/ethsw/ethsw.c 	nlmsg_cancel(dump->skb, nlh);
nlh                20 drivers/staging/gdm724x/netlink_k.c #define ND_NLMSG_DATA(nlh)	((void *)((char *)NLMSG_DATA(nlh) + \
nlh                23 drivers/staging/gdm724x/netlink_k.c #define ND_NLMSG_R_LEN(nlh)	(nlh->nlmsg_len - ND_IFINDEX_LEN)
nlh                24 drivers/staging/gdm724x/netlink_k.c #define ND_NLMSG_IFIDX(nlh)	NLMSG_DATA(nlh)
nlh                31 drivers/staging/gdm724x/netlink_k.c 	struct nlmsghdr	*nlh;
nlh                47 drivers/staging/gdm724x/netlink_k.c 	nlh = (struct nlmsghdr *)skb->data;
nlh                49 drivers/staging/gdm724x/netlink_k.c 	if (skb->len < nlh->nlmsg_len || nlh->nlmsg_len > ND_MAX_MSG_LEN) {
nlh                51 drivers/staging/gdm724x/netlink_k.c 		       skb->len, nlh->nlmsg_len);
nlh                55 drivers/staging/gdm724x/netlink_k.c 	memcpy(&ifindex, ND_NLMSG_IFIDX(nlh), ND_IFINDEX_LEN);
nlh                56 drivers/staging/gdm724x/netlink_k.c 	msg = ND_NLMSG_DATA(nlh);
nlh                57 drivers/staging/gdm724x/netlink_k.c 	mlen = ND_NLMSG_R_LEN(nlh);
nlh                61 drivers/staging/gdm724x/netlink_k.c 		rcv_cb(dev, nlh->nlmsg_type, msg, mlen);
nlh                96 drivers/staging/gdm724x/netlink_k.c 	struct nlmsghdr *nlh;
nlh               111 drivers/staging/gdm724x/netlink_k.c 	nlh = nlmsg_put(skb, 0, seq, type, len, 0);
nlh               112 drivers/staging/gdm724x/netlink_k.c 	memcpy(NLMSG_DATA(nlh), msg, len);
nlh                17 include/linux/inet_diag.h 				    const struct nlmsghdr *nlh,
nlh                49 include/linux/inet_diag.h 			    struct sk_buff *in_skb, const struct nlmsghdr *nlh,
nlh              1399 include/linux/netdevice.h 						      struct nlmsghdr *nlh,
nlh              1408 include/linux/netdevice.h 						      struct nlmsghdr *nlh,
nlh                12 include/linux/netfilter/nfnetlink.h 		    const struct nlmsghdr *nlh,
nlh                16 include/linux/netfilter/nfnetlink.h 			const struct nlmsghdr *nlh,
nlh                20 include/linux/netfilter/nfnetlink.h 			  const struct nlmsghdr *nlh,
nlh               126 include/linux/netlink.h void netlink_ack(struct sk_buff *in_skb, struct nlmsghdr *nlh, int err,
nlh               182 include/linux/netlink.h 	const struct nlmsghdr	*nlh;
nlh               224 include/linux/netlink.h 				const struct nlmsghdr *nlh,
nlh               227 include/linux/netlink.h 				     const struct nlmsghdr *nlh,
nlh               233 include/linux/netlink.h 	return __netlink_dump_start(ssk, skb, nlh, control);
nlh                15 include/linux/rtnetlink.h 			u32 group, struct nlmsghdr *nlh, gfp_t flags);
nlh                17 include/linux/sock_diag.h 	int (*dump)(struct sk_buff *skb, struct nlmsghdr *nlh);
nlh                19 include/linux/sock_diag.h 	int (*destroy)(struct sk_buff *skb, struct nlmsghdr *nlh);
nlh                25 include/linux/sock_diag.h void sock_diag_register_inet_compat(int (*fn)(struct sk_buff *skb, struct nlmsghdr *nlh));
nlh                26 include/linux/sock_diag.h void sock_diag_unregister_inet_compat(int (*fn)(struct sk_buff *skb, struct nlmsghdr *nlh));
nlh               106 include/net/dn_fib.h 				       const struct nlmsghdr *nlh, int *errp);
nlh               201 include/net/fib_rules.h int fib_nl_newrule(struct sk_buff *skb, struct nlmsghdr *nlh,
nlh               203 include/net/fib_rules.h int fib_nl_delrule(struct sk_buff *skb, struct nlmsghdr *nlh,
nlh               183 include/net/genetlink.h static inline int genlmsg_parse_deprecated(const struct nlmsghdr *nlh,
nlh               189 include/net/genetlink.h 	return __nlmsg_parse(nlh, family->hdrsize + GENL_HDRLEN, tb, maxtype,
nlh               202 include/net/genetlink.h static inline int genlmsg_parse(const struct nlmsghdr *nlh,
nlh               208 include/net/genetlink.h 	return __nlmsg_parse(nlh, family->hdrsize + GENL_HDRLEN, tb, maxtype,
nlh               350 include/net/genetlink.h 	struct nlmsghdr *nlh = (struct nlmsghdr *)((unsigned char *)gnlh -
nlh               352 include/net/genetlink.h 	return (nlh->nlmsg_len - GENL_HDRLEN - NLMSG_HDRLEN);
nlh               520 include/net/ip_fib.h int ip_valid_fib_dump_req(struct net *net, const struct nlmsghdr *nlh,
nlh               387 include/net/netlink.h 	struct nlmsghdr		*nlh;
nlh               501 include/net/netlink.h static inline void *nlmsg_data(const struct nlmsghdr *nlh)
nlh               503 include/net/netlink.h 	return (unsigned char *) nlh + NLMSG_HDRLEN;
nlh               510 include/net/netlink.h static inline int nlmsg_len(const struct nlmsghdr *nlh)
nlh               512 include/net/netlink.h 	return nlh->nlmsg_len - NLMSG_HDRLEN;
nlh               520 include/net/netlink.h static inline struct nlattr *nlmsg_attrdata(const struct nlmsghdr *nlh,
nlh               523 include/net/netlink.h 	unsigned char *data = nlmsg_data(nlh);
nlh               532 include/net/netlink.h static inline int nlmsg_attrlen(const struct nlmsghdr *nlh, int hdrlen)
nlh               534 include/net/netlink.h 	return nlmsg_len(nlh) - NLMSG_ALIGN(hdrlen);
nlh               542 include/net/netlink.h static inline int nlmsg_ok(const struct nlmsghdr *nlh, int remaining)
nlh               545 include/net/netlink.h 		nlh->nlmsg_len >= sizeof(struct nlmsghdr) &&
nlh               546 include/net/netlink.h 		nlh->nlmsg_len <= remaining);
nlh               558 include/net/netlink.h nlmsg_next(const struct nlmsghdr *nlh, int *remaining)
nlh               560 include/net/netlink.h 	int totlen = NLMSG_ALIGN(nlh->nlmsg_len);
nlh               564 include/net/netlink.h 	return (struct nlmsghdr *) ((unsigned char *) nlh + totlen);
nlh               655 include/net/netlink.h static inline int __nlmsg_parse(const struct nlmsghdr *nlh, int hdrlen,
nlh               661 include/net/netlink.h 	if (nlh->nlmsg_len < nlmsg_msg_size(hdrlen)) {
nlh               666 include/net/netlink.h 	return __nla_parse(tb, maxtype, nlmsg_attrdata(nlh, hdrlen),
nlh               667 include/net/netlink.h 			   nlmsg_attrlen(nlh, hdrlen), policy, validate,
nlh               682 include/net/netlink.h static inline int nlmsg_parse(const struct nlmsghdr *nlh, int hdrlen,
nlh               687 include/net/netlink.h 	return __nlmsg_parse(nlh, hdrlen, tb, maxtype, policy,
nlh               701 include/net/netlink.h static inline int nlmsg_parse_deprecated(const struct nlmsghdr *nlh, int hdrlen,
nlh               706 include/net/netlink.h 	return __nlmsg_parse(nlh, hdrlen, tb, maxtype, policy,
nlh               721 include/net/netlink.h nlmsg_parse_deprecated_strict(const struct nlmsghdr *nlh, int hdrlen,
nlh               726 include/net/netlink.h 	return __nlmsg_parse(nlh, hdrlen, tb, maxtype, policy,
nlh               738 include/net/netlink.h static inline struct nlattr *nlmsg_find_attr(const struct nlmsghdr *nlh,
nlh               741 include/net/netlink.h 	return nla_find(nlmsg_attrdata(nlh, hdrlen),
nlh               742 include/net/netlink.h 			nlmsg_attrlen(nlh, hdrlen), attrtype);
nlh               800 include/net/netlink.h static inline int nlmsg_validate_deprecated(const struct nlmsghdr *nlh,
nlh               805 include/net/netlink.h 	if (nlh->nlmsg_len < nlmsg_msg_size(hdrlen))
nlh               808 include/net/netlink.h 	return __nla_validate(nlmsg_attrdata(nlh, hdrlen),
nlh               809 include/net/netlink.h 			      nlmsg_attrlen(nlh, hdrlen), maxtype,
nlh               821 include/net/netlink.h static inline int nlmsg_report(const struct nlmsghdr *nlh)
nlh               823 include/net/netlink.h 	return !!(nlh->nlmsg_flags & NLM_F_ECHO);
nlh               833 include/net/netlink.h #define nlmsg_for_each_attr(pos, nlh, hdrlen, rem) \
nlh               834 include/net/netlink.h 	nla_for_each_attr(pos, nlmsg_attrdata(nlh, hdrlen), \
nlh               835 include/net/netlink.h 			  nlmsg_attrlen(nlh, hdrlen), rem)
nlh               874 include/net/netlink.h 	return nlmsg_put(skb, NETLINK_CB(cb->skb).portid, cb->nlh->nlmsg_seq,
nlh               900 include/net/netlink.h static inline void nlmsg_end(struct sk_buff *skb, struct nlmsghdr *nlh)
nlh               902 include/net/netlink.h 	nlh->nlmsg_len = skb_tail_pointer(skb) - (unsigned char *)nlh;
nlh               939 include/net/netlink.h static inline void nlmsg_cancel(struct sk_buff *skb, struct nlmsghdr *nlh)
nlh               941 include/net/netlink.h 	nlmsg_trim(skb, nlh);
nlh              1021 include/net/netlink.h 			 struct nlmsghdr *nlh)
nlh              1024 include/net/netlink.h 		nlh->nlmsg_flags |= NLM_F_DUMP_INTR;
nlh                23 include/net/rtnetlink.h static inline int rtnl_msg_family(const struct nlmsghdr *nlh)
nlh                25 include/net/rtnetlink.h 	if (nlmsg_len(nlh) >= sizeof(struct rtgenmsg))
nlh                26 include/net/rtnetlink.h 		return ((struct rtgenmsg *) nlmsg_data(nlh))->rtgen_family;
nlh                16 include/rdma/rdma_netlink.h 	int (*doit)(struct sk_buff *skb, struct nlmsghdr *nlh,
nlh                63 include/rdma/rdma_netlink.h void *ibnl_put_msg(struct sk_buff *skb, struct nlmsghdr **nlh, int seq,
nlh                74 include/rdma/rdma_netlink.h int ibnl_put_attr(struct sk_buff *skb, struct nlmsghdr *nlh,
nlh                94 include/uapi/linux/netlink.h #define NLMSG_DATA(nlh)  ((void*)(((char*)nlh) + NLMSG_LENGTH(0)))
nlh                95 include/uapi/linux/netlink.h #define NLMSG_NEXT(nlh,len)	 ((len) -= NLMSG_ALIGN((nlh)->nlmsg_len), \
nlh                96 include/uapi/linux/netlink.h 				  (struct nlmsghdr*)(((char*)(nlh)) + NLMSG_ALIGN((nlh)->nlmsg_len)))
nlh                97 include/uapi/linux/netlink.h #define NLMSG_OK(nlh,len) ((len) >= (int)sizeof(struct nlmsghdr) && \
nlh                98 include/uapi/linux/netlink.h 			   (nlh)->nlmsg_len >= sizeof(struct nlmsghdr) && \
nlh                99 include/uapi/linux/netlink.h 			   (nlh)->nlmsg_len <= (len))
nlh               100 include/uapi/linux/netlink.h #define NLMSG_PAYLOAD(nlh,len) ((nlh)->nlmsg_len - NLMSG_SPACE((len)))
nlh               528 kernel/audit.c 	struct nlmsghdr *nlh = nlmsg_hdr(skb);
nlh               529 kernel/audit.c 	char *data = nlmsg_data(nlh);
nlh               531 kernel/audit.c 	if (nlh->nlmsg_type != AUDIT_EOE && printk_ratelimit())
nlh               532 kernel/audit.c 		pr_notice("type=%d %s\n", nlh->nlmsg_type, data);
nlh               774 kernel/audit.c 	struct nlmsghdr *nlh;
nlh               795 kernel/audit.c 	nlh = nlmsg_hdr(copy);
nlh               796 kernel/audit.c 	nlh->nlmsg_len = skb->len;
nlh               905 kernel/audit.c 	struct nlmsghdr	*nlh;
nlh               914 kernel/audit.c 	nlh	= nlmsg_put(skb, 0, seq, t, size, flags);
nlh               915 kernel/audit.c 	if (!nlh)
nlh               917 kernel/audit.c 	data = nlmsg_data(nlh);
nlh              1171 kernel/audit.c static int audit_receive_msg(struct sk_buff *skb, struct nlmsghdr *nlh)
nlh              1178 kernel/audit.c 	u16			msg_type = nlh->nlmsg_type;
nlh              1187 kernel/audit.c 	seq  = nlh->nlmsg_seq;
nlh              1188 kernel/audit.c 	data = nlmsg_data(nlh);
nlh              1189 kernel/audit.c 	data_len = nlmsg_len(nlh);
nlh              1295 kernel/audit.c 			if (sizeof(s) > (size_t)nlh->nlmsg_len)
nlh              1504 kernel/audit.c 	struct nlmsghdr *nlh;
nlh              1512 kernel/audit.c 	nlh = nlmsg_hdr(skb);
nlh              1516 kernel/audit.c 	while (nlmsg_ok(nlh, len)) {
nlh              1517 kernel/audit.c 		err = audit_receive_msg(skb, nlh);
nlh              1519 kernel/audit.c 		if (err || (nlh->nlmsg_flags & NLM_F_ACK))
nlh              1520 kernel/audit.c 			netlink_ack(skb, nlh, err, NULL);
nlh              1522 kernel/audit.c 		nlh = nlmsg_next(nlh, &len);
nlh              2307 kernel/audit.c 	struct nlmsghdr *nlh;
nlh              2318 kernel/audit.c 		nlh = nlmsg_hdr(skb);
nlh              2319 kernel/audit.c 		nlh->nlmsg_len = skb->len - NLMSG_HDRLEN;
nlh               724 lib/kobject_uevent.c static int uevent_net_rcv_skb(struct sk_buff *skb, struct nlmsghdr *nlh,
nlh               730 lib/kobject_uevent.c 	if (!nlmsg_data(nlh))
nlh               217 net/batman-adv/bat_algo.c 		if (batadv_algo_dump_entry(msg, portid, cb->nlh->nlmsg_seq,
nlh              2097 net/batman-adv/bat_iv_ogm.c 						   cb->nlh->nlmsg_seq,
nlh              2308 net/batman-adv/bat_iv_ogm.c 							    cb->nlh->nlmsg_seq,
nlh              2324 net/batman-adv/bat_iv_ogm.c 							    cb->nlh->nlmsg_seq,
nlh              2655 net/batman-adv/bat_iv_ogm.c 	hdr = genlmsg_put(msg, portid, cb->nlh->nlmsg_seq,
nlh               312 net/batman-adv/bat_v.c 						       cb->nlh->nlmsg_seq,
nlh               326 net/batman-adv/bat_v.c 						       cb->nlh->nlmsg_seq,
nlh               592 net/batman-adv/bat_v.c 					      cb->nlh->nlmsg_seq,
nlh               935 net/batman-adv/bat_v.c 	hdr = genlmsg_put(msg, portid, cb->nlh->nlmsg_seq,
nlh              2112 net/batman-adv/bridge_loop_avoidance.c 	hdr = genlmsg_put(msg, portid, cb->nlh->nlmsg_seq,
nlh              2217 net/batman-adv/bridge_loop_avoidance.c 	ifindex = batadv_netlink_get_ifindex(cb->nlh,
nlh              2349 net/batman-adv/bridge_loop_avoidance.c 	hdr = genlmsg_put(msg, portid, cb->nlh->nlmsg_seq,
nlh              2455 net/batman-adv/bridge_loop_avoidance.c 	ifindex = batadv_netlink_get_ifindex(cb->nlh,
nlh               915 net/batman-adv/distributed-arp-table.c 	hdr = genlmsg_put(msg, portid, cb->nlh->nlmsg_seq,
nlh              1002 net/batman-adv/distributed-arp-table.c 	ifindex = batadv_netlink_get_ifindex(cb->nlh,
nlh               568 net/batman-adv/gateway_client.c 	ifindex = batadv_netlink_get_ifindex(cb->nlh,
nlh              2210 net/batman-adv/multicast.c 	hdr = genlmsg_put(msg, portid, cb->nlh->nlmsg_seq,
nlh              2338 net/batman-adv/multicast.c 	ifindex = batadv_netlink_get_ifindex(cb->nlh, BATADV_ATTR_MESH_IFINDEX);
nlh               163 net/batman-adv/netlink.c batadv_netlink_get_ifindex(const struct nlmsghdr *nlh, int attrtype)
nlh               165 net/batman-adv/netlink.c 	struct nlattr *attr = nlmsg_find_attr(nlh, GENL_HDRLEN, attrtype);
nlh               965 net/batman-adv/netlink.c 	ifindex = batadv_netlink_get_ifindex(cb->nlh,
nlh               993 net/batman-adv/netlink.c 					       portid, cb->nlh->nlmsg_seq,
nlh                18 net/batman-adv/netlink.h int batadv_netlink_get_ifindex(const struct nlmsghdr *nlh, int attrtype);
nlh               791 net/batman-adv/originator.c 	ifindex = batadv_netlink_get_ifindex(cb->nlh, BATADV_ATTR_MESH_IFINDEX);
nlh               809 net/batman-adv/originator.c 	hard_ifindex = batadv_netlink_get_ifindex(cb->nlh,
nlh              1488 net/batman-adv/originator.c 	ifindex = batadv_netlink_get_ifindex(cb->nlh, BATADV_ATTR_MESH_IFINDEX);
nlh              1506 net/batman-adv/originator.c 	hard_ifindex = batadv_netlink_get_ifindex(cb->nlh,
nlh              1176 net/batman-adv/translation-table.c 	hdr = genlmsg_put(msg, portid, cb->nlh->nlmsg_seq,
nlh              1264 net/batman-adv/translation-table.c 	ifindex = batadv_netlink_get_ifindex(cb->nlh, BATADV_ATTR_MESH_IFINDEX);
nlh              2182 net/batman-adv/translation-table.c 	ifindex = batadv_netlink_get_ifindex(cb->nlh, BATADV_ATTR_MESH_IFINDEX);
nlh              2206 net/batman-adv/translation-table.c 						 cb->nlh->nlmsg_seq, bat_priv,
nlh               635 net/bridge/br_fdb.c 	struct nlmsghdr *nlh;
nlh               638 net/bridge/br_fdb.c 	nlh = nlmsg_put(skb, portid, seq, type, sizeof(*ndm), flags);
nlh               639 net/bridge/br_fdb.c 	if (nlh == NULL)
nlh               642 net/bridge/br_fdb.c 	ndm = nlmsg_data(nlh);
nlh               673 net/bridge/br_fdb.c 	nlmsg_end(skb, nlh);
nlh               677 net/bridge/br_fdb.c 	nlmsg_cancel(skb, nlh);
nlh               758 net/bridge/br_fdb.c 				    cb->nlh->nlmsg_seq,
nlh               185 net/bridge/br_mdb.c static int br_mdb_valid_dump_req(const struct nlmsghdr *nlh,
nlh               190 net/bridge/br_mdb.c 	if (nlh->nlmsg_len < nlmsg_msg_size(sizeof(*bpm))) {
nlh               195 net/bridge/br_mdb.c 	bpm = nlmsg_data(nlh);
nlh               200 net/bridge/br_mdb.c 	if (nlmsg_attrlen(nlh, sizeof(*bpm))) {
nlh               212 net/bridge/br_mdb.c 	struct nlmsghdr *nlh = NULL;
nlh               216 net/bridge/br_mdb.c 		int err = br_mdb_valid_dump_req(cb->nlh, cb->extack);
nlh               235 net/bridge/br_mdb.c 			nlh = nlmsg_put(skb, NETLINK_CB(cb->skb).portid,
nlh               236 net/bridge/br_mdb.c 					cb->nlh->nlmsg_seq, RTM_GETMDB,
nlh               238 net/bridge/br_mdb.c 			if (nlh == NULL)
nlh               241 net/bridge/br_mdb.c 			bpm = nlmsg_data(nlh);
nlh               250 net/bridge/br_mdb.c 			nlmsg_end(skb, nlh);
nlh               257 net/bridge/br_mdb.c 	if (nlh)
nlh               258 net/bridge/br_mdb.c 		nlmsg_end(skb, nlh);
nlh               269 net/bridge/br_mdb.c 	struct nlmsghdr *nlh;
nlh               273 net/bridge/br_mdb.c 	nlh = nlmsg_put(skb, pid, seq, type, sizeof(*bpm), 0);
nlh               274 net/bridge/br_mdb.c 	if (!nlh)
nlh               277 net/bridge/br_mdb.c 	bpm = nlmsg_data(nlh);
nlh               293 net/bridge/br_mdb.c 	nlmsg_end(skb, nlh);
nlh               299 net/bridge/br_mdb.c 	nlmsg_cancel(skb, nlh);
nlh               466 net/bridge/br_mdb.c 	struct nlmsghdr *nlh;
nlh               469 net/bridge/br_mdb.c 	nlh = nlmsg_put(skb, pid, seq, type, sizeof(*bpm), 0);
nlh               470 net/bridge/br_mdb.c 	if (!nlh)
nlh               473 net/bridge/br_mdb.c 	bpm = nlmsg_data(nlh);
nlh               485 net/bridge/br_mdb.c 	nlmsg_end(skb, nlh);
nlh               491 net/bridge/br_mdb.c 	nlmsg_cancel(skb, nlh);
nlh               552 net/bridge/br_mdb.c static int br_mdb_parse(struct sk_buff *skb, struct nlmsghdr *nlh,
nlh               562 net/bridge/br_mdb.c 	err = nlmsg_parse_deprecated(nlh, sizeof(*bpm), tb,
nlh               567 net/bridge/br_mdb.c 	bpm = nlmsg_data(nlh);
nlh               680 net/bridge/br_mdb.c static int br_mdb_add(struct sk_buff *skb, struct nlmsghdr *nlh,
nlh               692 net/bridge/br_mdb.c 	err = br_mdb_parse(skb, nlh, &dev, &entry);
nlh               785 net/bridge/br_mdb.c static int br_mdb_del(struct sk_buff *skb, struct nlmsghdr *nlh,
nlh               797 net/bridge/br_mdb.c 	err = br_mdb_parse(skb, nlh, &dev, &entry);
nlh               379 net/bridge/br_netlink.c 	struct nlmsghdr *nlh;
nlh               389 net/bridge/br_netlink.c 	nlh = nlmsg_put(skb, pid, seq, event, sizeof(*hdr), flags);
nlh               390 net/bridge/br_netlink.c 	if (nlh == NULL)
nlh               393 net/bridge/br_netlink.c 	hdr = nlmsg_data(nlh);
nlh               457 net/bridge/br_netlink.c 	nlmsg_end(skb, nlh);
nlh               461 net/bridge/br_netlink.c 	nlmsg_cancel(skb, nlh);
nlh               854 net/bridge/br_netlink.c int br_setlink(struct net_device *dev, struct nlmsghdr *nlh, u16 flags,
nlh               865 net/bridge/br_netlink.c 	protinfo = nlmsg_find_attr(nlh, sizeof(struct ifinfomsg), IFLA_PROTINFO);
nlh               866 net/bridge/br_netlink.c 	afspec = nlmsg_find_attr(nlh, sizeof(struct ifinfomsg), IFLA_AF_SPEC);
nlh               913 net/bridge/br_netlink.c int br_dellink(struct net_device *dev, struct nlmsghdr *nlh, u16 flags)
nlh               921 net/bridge/br_netlink.c 	afspec = nlmsg_find_attr(nlh, sizeof(struct ifinfomsg), IFLA_AF_SPEC);
nlh               573 net/bridge/br_private.h int br_fdb_add(struct ndmsg *nlh, struct nlattr *tb[], struct net_device *dev,
nlh               550 net/can/gw.c   	struct nlmsghdr *nlh;
nlh               552 net/can/gw.c   	nlh = nlmsg_put(skb, pid, seq, type, sizeof(*rtcan), flags);
nlh               553 net/can/gw.c   	if (!nlh)
nlh               556 net/can/gw.c   	rtcan = nlmsg_data(nlh);
nlh               678 net/can/gw.c   	nlmsg_end(skb, nlh);
nlh               682 net/can/gw.c   	nlmsg_cancel(skb, nlh);
nlh               701 net/can/gw.c   				cb->nlh->nlmsg_seq, NLM_F_MULTI) < 0)
nlh               732 net/can/gw.c   static int cgw_parse_attr(struct nlmsghdr *nlh, struct cf_mod *mod,
nlh               736 net/can/gw.c   	struct rtcanmsg *r = nlmsg_data(nlh);
nlh               743 net/can/gw.c   	err = nlmsg_parse_deprecated(nlh, sizeof(struct rtcanmsg), tb,
nlh               988 net/can/gw.c   static int cgw_create_job(struct sk_buff *skb,  struct nlmsghdr *nlh,
nlh              1002 net/can/gw.c   	if (nlmsg_len(nlh) < sizeof(*r))
nlh              1005 net/can/gw.c   	r = nlmsg_data(nlh);
nlh              1013 net/can/gw.c   	err = cgw_parse_attr(nlh, &mod, CGW_TYPE_CAN_CAN, &ccgw, &limhops);
nlh              1100 net/can/gw.c   static int cgw_remove_job(struct sk_buff *skb, struct nlmsghdr *nlh,
nlh              1115 net/can/gw.c   	if (nlmsg_len(nlh) < sizeof(*r))
nlh              1118 net/can/gw.c   	r = nlmsg_data(nlh);
nlh              1126 net/can/gw.c   	err = cgw_parse_attr(nlh, &mod, CGW_TYPE_CAN_CAN, &ccgw, &limhops);
nlh               668 net/core/devlink.c 				      cb->nlh->nlmsg_seq, NLM_F_MULTI);
nlh               725 net/core/devlink.c 						   cb->nlh->nlmsg_seq,
nlh               913 net/core/devlink.c 						 cb->nlh->nlmsg_seq,
nlh              1050 net/core/devlink.c 						   cb->nlh->nlmsg_seq);
nlh              1248 net/core/devlink.c 							cb->nlh->nlmsg_seq);
nlh              1477 net/core/devlink.c 							   cb->nlh->nlmsg_seq);
nlh              1847 net/core/devlink.c 	struct nlmsghdr *nlh;
nlh              1900 net/core/devlink.c 	nlh = nlmsg_put(skb, info->snd_portid, info->snd_seq,
nlh              1902 net/core/devlink.c 	if (!nlh) {
nlh              2166 net/core/devlink.c 	struct nlmsghdr *nlh;
nlh              2180 net/core/devlink.c 	nlh = nlmsg_put(dump_ctx.skb, info->snd_portid, info->snd_seq,
nlh              2182 net/core/devlink.c 	if (!nlh) {
nlh              2284 net/core/devlink.c 	struct nlmsghdr *nlh;
nlh              2324 net/core/devlink.c 	nlh = nlmsg_put(skb, info->snd_portid, info->snd_seq,
nlh              2326 net/core/devlink.c 	if (!nlh) {
nlh              2581 net/core/devlink.c 	struct nlmsghdr *nlh;
nlh              2626 net/core/devlink.c 	nlh = nlmsg_put(skb, info->snd_portid, info->snd_seq,
nlh              2628 net/core/devlink.c 	if (!nlh) {
nlh              3173 net/core/devlink.c 						    cb->nlh->nlmsg_seq,
nlh              3440 net/core/devlink.c 						cb->nlh->nlmsg_seq,
nlh              3703 net/core/devlink.c 						     cb->nlh->nlmsg_seq,
nlh              3844 net/core/devlink.c 	err = nlmsg_parse_deprecated(cb->nlh,
nlh              3879 net/core/devlink.c 	hdr = genlmsg_put(skb, NETLINK_CB(cb->skb).portid, cb->nlh->nlmsg_seq,
nlh              4106 net/core/devlink.c 					   cb->nlh->nlmsg_seq, NLM_F_MULTI,
nlh              4549 net/core/devlink.c 	struct nlmsghdr *nlh;
nlh              4585 net/core/devlink.c 	nlh = nlmsg_put(skb, info->snd_portid, info->snd_seq,
nlh              4587 net/core/devlink.c 	if (!nlh) {
nlh              4608 net/core/devlink.c 	hdr = genlmsg_put(skb, NETLINK_CB(cb->skb).portid, cb->nlh->nlmsg_seq,
nlh              4899 net/core/devlink.c 	err = nlmsg_parse_deprecated(cb->nlh,
nlh              5049 net/core/devlink.c 							      cb->nlh->nlmsg_seq,
nlh              5492 net/core/devlink.c 						   cb->nlh->nlmsg_seq,
nlh              5699 net/core/devlink.c 							 cb->nlh->nlmsg_seq,
nlh               173 net/core/drop_monitor.c 		struct nlmsghdr *nlh = (struct nlmsghdr *)skb->data;
nlh               174 net/core/drop_monitor.c 		struct genlmsghdr *gnlh = (struct genlmsghdr *)nlmsg_data(nlh);
nlh               216 net/core/drop_monitor.c 	struct nlmsghdr *nlh;
nlh               231 net/core/drop_monitor.c 	nlh = (struct nlmsghdr *)dskb->data;
nlh               232 net/core/drop_monitor.c 	nla = genlmsg_data(nlmsg_data(nlh));
nlh                87 net/core/fib_rules.c 			       struct fib_rules_ops *ops, struct nlmsghdr *nlh,
nlh               486 net/core/fib_rules.c static int fib_nl2rule(struct sk_buff *skb, struct nlmsghdr *nlh,
nlh               494 net/core/fib_rules.c 	struct fib_rule_hdr *frh = nlmsg_data(nlh);
nlh               723 net/core/fib_rules.c int fib_nl_newrule(struct sk_buff *skb, struct nlmsghdr *nlh,
nlh               727 net/core/fib_rules.c 	struct fib_rule_hdr *frh = nlmsg_data(nlh);
nlh               734 net/core/fib_rules.c 	if (nlh->nlmsg_len < nlmsg_msg_size(sizeof(*frh))) {
nlh               746 net/core/fib_rules.c 	err = nlmsg_parse_deprecated(nlh, sizeof(*frh), tb, FRA_MAX,
nlh               753 net/core/fib_rules.c 	err = fib_nl2rule(skb, nlh, extack, ops, tb, &rule, &user_priority);
nlh               757 net/core/fib_rules.c 	if ((nlh->nlmsg_flags & NLM_F_EXCL) &&
nlh               818 net/core/fib_rules.c 	notify_rule_change(RTM_NEWRULE, rule, ops, nlh, NETLINK_CB(skb).portid);
nlh               831 net/core/fib_rules.c int fib_nl_delrule(struct sk_buff *skb, struct nlmsghdr *nlh,
nlh               835 net/core/fib_rules.c 	struct fib_rule_hdr *frh = nlmsg_data(nlh);
nlh               842 net/core/fib_rules.c 	if (nlh->nlmsg_len < nlmsg_msg_size(sizeof(*frh))) {
nlh               854 net/core/fib_rules.c 	err = nlmsg_parse_deprecated(nlh, sizeof(*frh), tb, FRA_MAX,
nlh               861 net/core/fib_rules.c 	err = fib_nl2rule(skb, nlh, extack, ops, tb, &nlrule, &user_priority);
nlh               917 net/core/fib_rules.c 	notify_rule_change(RTM_DELRULE, rule, ops, nlh,
nlh               961 net/core/fib_rules.c 	struct nlmsghdr *nlh;
nlh               964 net/core/fib_rules.c 	nlh = nlmsg_put(skb, pid, seq, type, sizeof(*frh), flags);
nlh               965 net/core/fib_rules.c 	if (nlh == NULL)
nlh               968 net/core/fib_rules.c 	frh = nlmsg_data(nlh);
nlh              1030 net/core/fib_rules.c 	nlmsg_end(skb, nlh);
nlh              1034 net/core/fib_rules.c 	nlmsg_cancel(skb, nlh);
nlh              1051 net/core/fib_rules.c 				       cb->nlh->nlmsg_seq, RTM_NEWRULE,
nlh              1065 net/core/fib_rules.c static int fib_valid_dumprule_req(const struct nlmsghdr *nlh,
nlh              1070 net/core/fib_rules.c 	if (nlh->nlmsg_len < nlmsg_msg_size(sizeof(*frh))) {
nlh              1075 net/core/fib_rules.c 	frh = nlmsg_data(nlh);
nlh              1083 net/core/fib_rules.c 	if (nlmsg_attrlen(nlh, sizeof(*frh))) {
nlh              1093 net/core/fib_rules.c 	const struct nlmsghdr *nlh = cb->nlh;
nlh              1099 net/core/fib_rules.c 		int err = fib_valid_dumprule_req(nlh, cb->extack);
nlh              1105 net/core/fib_rules.c 	family = rtnl_msg_family(nlh);
nlh              1136 net/core/fib_rules.c 			       struct fib_rules_ops *ops, struct nlmsghdr *nlh,
nlh              1148 net/core/fib_rules.c 	err = fib_nl_fill_rule(skb, rule, pid, nlh->nlmsg_seq, event, 0, ops);
nlh              1156 net/core/fib_rules.c 	rtnl_notify(skb, net, pid, ops->nlgroup, nlh, GFP_KERNEL);
nlh              1784 net/core/neighbour.c static int neigh_delete(struct sk_buff *skb, struct nlmsghdr *nlh,
nlh              1796 net/core/neighbour.c 	if (nlmsg_len(nlh) < sizeof(*ndm))
nlh              1799 net/core/neighbour.c 	dst_attr = nlmsg_find_attr(nlh, sizeof(*ndm), NDA_DST);
nlh              1805 net/core/neighbour.c 	ndm = nlmsg_data(nlh);
nlh              1849 net/core/neighbour.c static int neigh_add(struct sk_buff *skb, struct nlmsghdr *nlh,
nlh              1865 net/core/neighbour.c 	err = nlmsg_parse_deprecated(nlh, sizeof(*ndm), tb, NDA_MAX,
nlh              1876 net/core/neighbour.c 	ndm = nlmsg_data(nlh);
nlh              1933 net/core/neighbour.c 		if (!(nlh->nlmsg_flags & NLM_F_CREATE)) {
nlh              1946 net/core/neighbour.c 		if (nlh->nlmsg_flags & NLM_F_EXCL) {
nlh              1952 net/core/neighbour.c 		if (!(nlh->nlmsg_flags & NLM_F_REPLACE))
nlh              2030 net/core/neighbour.c 	struct nlmsghdr *nlh;
nlh              2033 net/core/neighbour.c 	nlh = nlmsg_put(skb, pid, seq, type, sizeof(*ndtmsg), flags);
nlh              2034 net/core/neighbour.c 	if (nlh == NULL)
nlh              2037 net/core/neighbour.c 	ndtmsg = nlmsg_data(nlh);
nlh              2107 net/core/neighbour.c 	nlmsg_end(skb, nlh);
nlh              2112 net/core/neighbour.c 	nlmsg_cancel(skb, nlh);
nlh              2123 net/core/neighbour.c 	struct nlmsghdr *nlh;
nlh              2125 net/core/neighbour.c 	nlh = nlmsg_put(skb, pid, seq, type, sizeof(*ndtmsg), flags);
nlh              2126 net/core/neighbour.c 	if (nlh == NULL)
nlh              2129 net/core/neighbour.c 	ndtmsg = nlmsg_data(nlh);
nlh              2141 net/core/neighbour.c 	nlmsg_end(skb, nlh);
nlh              2145 net/core/neighbour.c 	nlmsg_cancel(skb, nlh);
nlh              2175 net/core/neighbour.c static int neightbl_set(struct sk_buff *skb, struct nlmsghdr *nlh,
nlh              2185 net/core/neighbour.c 	err = nlmsg_parse_deprecated(nlh, sizeof(*ndtmsg), tb, NDTA_MAX,
nlh              2195 net/core/neighbour.c 	ndtmsg = nlmsg_data(nlh);
nlh              2337 net/core/neighbour.c static int neightbl_valid_dump_info(const struct nlmsghdr *nlh,
nlh              2342 net/core/neighbour.c 	if (nlh->nlmsg_len < nlmsg_msg_size(sizeof(*ndtm))) {
nlh              2347 net/core/neighbour.c 	ndtm = nlmsg_data(nlh);
nlh              2353 net/core/neighbour.c 	if (nlmsg_attrlen(nlh, sizeof(*ndtm))) {
nlh              2363 net/core/neighbour.c 	const struct nlmsghdr *nlh = cb->nlh;
nlh              2371 net/core/neighbour.c 		int err = neightbl_valid_dump_info(nlh, cb->extack);
nlh              2377 net/core/neighbour.c 	family = ((struct rtgenmsg *)nlmsg_data(nlh))->rtgen_family;
nlh              2390 net/core/neighbour.c 				       nlh->nlmsg_seq, RTM_NEWNEIGHTBL,
nlh              2405 net/core/neighbour.c 						     nlh->nlmsg_seq,
nlh              2427 net/core/neighbour.c 	struct nlmsghdr *nlh;
nlh              2430 net/core/neighbour.c 	nlh = nlmsg_put(skb, pid, seq, type, sizeof(*ndm), flags);
nlh              2431 net/core/neighbour.c 	if (nlh == NULL)
nlh              2434 net/core/neighbour.c 	ndm = nlmsg_data(nlh);
nlh              2470 net/core/neighbour.c 	nlmsg_end(skb, nlh);
nlh              2474 net/core/neighbour.c 	nlmsg_cancel(skb, nlh);
nlh              2482 net/core/neighbour.c 	struct nlmsghdr *nlh;
nlh              2485 net/core/neighbour.c 	nlh = nlmsg_put(skb, pid, seq, type, sizeof(*ndm), flags);
nlh              2486 net/core/neighbour.c 	if (nlh == NULL)
nlh              2489 net/core/neighbour.c 	ndm = nlmsg_data(nlh);
nlh              2504 net/core/neighbour.c 	nlmsg_end(skb, nlh);
nlh              2508 net/core/neighbour.c 	nlmsg_cancel(skb, nlh);
nlh              2574 net/core/neighbour.c 					    cb->nlh->nlmsg_seq,
nlh              2617 net/core/neighbour.c 					    cb->nlh->nlmsg_seq,
nlh              2637 net/core/neighbour.c static int neigh_valid_dump_req(const struct nlmsghdr *nlh,
nlh              2648 net/core/neighbour.c 		if (nlh->nlmsg_len < nlmsg_msg_size(sizeof(*ndm))) {
nlh              2653 net/core/neighbour.c 		ndm = nlmsg_data(nlh);
nlh              2665 net/core/neighbour.c 		err = nlmsg_parse_deprecated_strict(nlh, sizeof(struct ndmsg),
nlh              2669 net/core/neighbour.c 		err = nlmsg_parse_deprecated(nlh, sizeof(struct ndmsg), tb,
nlh              2700 net/core/neighbour.c 	const struct nlmsghdr *nlh = cb->nlh;
nlh              2707 net/core/neighbour.c 	family = ((struct rtgenmsg *)nlmsg_data(nlh))->rtgen_family;
nlh              2712 net/core/neighbour.c 	if (nlmsg_len(nlh) >= sizeof(struct ndmsg) &&
nlh              2713 net/core/neighbour.c 	    ((struct ndmsg *)nlmsg_data(nlh))->ndm_flags == NTF_PROXY)
nlh              2716 net/core/neighbour.c 	err = neigh_valid_dump_req(nlh, cb->strict_check, &filter, cb->extack);
nlh              2744 net/core/neighbour.c static int neigh_valid_get_req(const struct nlmsghdr *nlh,
nlh              2753 net/core/neighbour.c 	if (nlh->nlmsg_len < nlmsg_msg_size(sizeof(*ndm))) {
nlh              2758 net/core/neighbour.c 	ndm = nlmsg_data(nlh);
nlh              2770 net/core/neighbour.c 	err = nlmsg_parse_deprecated_strict(nlh, sizeof(struct ndmsg), tb,
nlh              2863 net/core/neighbour.c static int neigh_get(struct sk_buff *in_skb, struct nlmsghdr *nlh,
nlh              2875 net/core/neighbour.c 	err = neigh_valid_get_req(nlh, &tbl, &dst, &dev_idx, &ndm_flags,
nlh              2902 net/core/neighbour.c 					nlh->nlmsg_seq, tbl);
nlh              2917 net/core/neighbour.c 			      nlh->nlmsg_seq);
nlh               249 net/core/net_namespace.c 			      struct nlmsghdr *nlh, gfp_t gfp);
nlh               722 net/core/net_namespace.c static int rtnl_net_newid(struct sk_buff *skb, struct nlmsghdr *nlh,
nlh               731 net/core/net_namespace.c 	err = nlmsg_parse_deprecated(nlh, sizeof(struct rtgenmsg), tb,
nlh               771 net/core/net_namespace.c 				  nlh, GFP_KERNEL);
nlh               803 net/core/net_namespace.c 	struct nlmsghdr *nlh;
nlh               806 net/core/net_namespace.c 	nlh = nlmsg_put(skb, args->portid, args->seq, args->cmd, sizeof(*rth),
nlh               808 net/core/net_namespace.c 	if (!nlh)
nlh               811 net/core/net_namespace.c 	rth = nlmsg_data(nlh);
nlh               821 net/core/net_namespace.c 	nlmsg_end(skb, nlh);
nlh               825 net/core/net_namespace.c 	nlmsg_cancel(skb, nlh);
nlh               830 net/core/net_namespace.c 				    const struct nlmsghdr *nlh,
nlh               837 net/core/net_namespace.c 		return nlmsg_parse_deprecated(nlh, sizeof(struct rtgenmsg),
nlh               841 net/core/net_namespace.c 	err = nlmsg_parse_deprecated_strict(nlh, sizeof(struct rtgenmsg), tb,
nlh               866 net/core/net_namespace.c static int rtnl_net_getid(struct sk_buff *skb, struct nlmsghdr *nlh,
nlh               873 net/core/net_namespace.c 		.seq = nlh->nlmsg_seq,
nlh               881 net/core/net_namespace.c 	err = rtnl_net_valid_getid_req(skb, nlh, tb, extack);
nlh               973 net/core/net_namespace.c static int rtnl_valid_dump_net_req(const struct nlmsghdr *nlh, struct sock *sk,
nlh               981 net/core/net_namespace.c 	err = nlmsg_parse_deprecated_strict(nlh, sizeof(struct rtgenmsg), tb,
nlh              1022 net/core/net_namespace.c 			.seq = cb->nlh->nlmsg_seq,
nlh              1032 net/core/net_namespace.c 		err = rtnl_valid_dump_net_req(cb->nlh, skb->sk, &net_cb, cb);
nlh              1059 net/core/net_namespace.c 			      struct nlmsghdr *nlh, gfp_t gfp)
nlh              1063 net/core/net_namespace.c 		.seq = nlh ? nlh->nlmsg_seq : 0,
nlh              1078 net/core/net_namespace.c 	rtnl_notify(msg, net, portid, RTNLGRP_NSID, nlh, gfp);
nlh               729 net/core/rtnetlink.c 		 struct nlmsghdr *nlh, gfp_t flags)
nlh               734 net/core/rtnetlink.c 	if (nlh)
nlh               735 net/core/rtnetlink.c 		report = nlmsg_report(nlh);
nlh              1595 net/core/rtnetlink.c 	struct nlmsghdr *nlh;
nlh              1598 net/core/rtnetlink.c 	nlh = nlmsg_put(skb, pid, seq, type, sizeof(*ifm), flags);
nlh              1599 net/core/rtnetlink.c 	if (nlh == NULL)
nlh              1602 net/core/rtnetlink.c 	ifm = nlmsg_data(nlh);
nlh              1700 net/core/rtnetlink.c 	nlmsg_end(skb, nlh);
nlh              1706 net/core/rtnetlink.c 	nlmsg_cancel(skb, nlh);
nlh              1883 net/core/rtnetlink.c static int rtnl_valid_dump_ifinfo_req(const struct nlmsghdr *nlh,
nlh              1892 net/core/rtnetlink.c 		if (nlh->nlmsg_len < nlmsg_msg_size(sizeof(*ifm))) {
nlh              1897 net/core/rtnetlink.c 		ifm = nlmsg_data(nlh);
nlh              1908 net/core/rtnetlink.c 		return nlmsg_parse_deprecated_strict(nlh, sizeof(*ifm), tb,
nlh              1920 net/core/rtnetlink.c 	hdrlen = nlmsg_len(nlh) < sizeof(struct ifinfomsg) ?
nlh              1923 net/core/rtnetlink.c 	return nlmsg_parse_deprecated(nlh, hdrlen, tb, IFLA_MAX, ifla_policy,
nlh              1930 net/core/rtnetlink.c 	const struct nlmsghdr *nlh = cb->nlh;
nlh              1948 net/core/rtnetlink.c 	err = rtnl_valid_dump_ifinfo_req(nlh, cb->strict_check, tb, extack);
nlh              2002 net/core/rtnetlink.c 					       nlh->nlmsg_seq, 0, flags,
nlh              2747 net/core/rtnetlink.c static int rtnl_setlink(struct sk_buff *skb, struct nlmsghdr *nlh,
nlh              2757 net/core/rtnetlink.c 	err = nlmsg_parse_deprecated(nlh, sizeof(*ifm), tb, IFLA_MAX,
nlh              2772 net/core/rtnetlink.c 	ifm = nlmsg_data(nlh);
nlh              2842 net/core/rtnetlink.c static int rtnl_dellink(struct sk_buff *skb, struct nlmsghdr *nlh,
nlh              2854 net/core/rtnetlink.c 	err = nlmsg_parse_deprecated(nlh, sizeof(*ifm), tb, IFLA_MAX,
nlh              2874 net/core/rtnetlink.c 	ifm = nlmsg_data(nlh);
nlh              3018 net/core/rtnetlink.c static int __rtnl_newlink(struct sk_buff *skb, struct nlmsghdr *nlh,
nlh              3041 net/core/rtnetlink.c 	err = nlmsg_parse_deprecated(nlh, sizeof(*ifm), tb, IFLA_MAX,
nlh              3055 net/core/rtnetlink.c 	ifm = nlmsg_data(nlh);
nlh              3133 net/core/rtnetlink.c 		if (nlh->nlmsg_flags & NLM_F_EXCL)
nlh              3135 net/core/rtnetlink.c 		if (nlh->nlmsg_flags & NLM_F_REPLACE)
nlh              3163 net/core/rtnetlink.c 	if (!(nlh->nlmsg_flags & NLM_F_CREATE)) {
nlh              3275 net/core/rtnetlink.c static int rtnl_newlink(struct sk_buff *skb, struct nlmsghdr *nlh,
nlh              3285 net/core/rtnetlink.c 	ret = __rtnl_newlink(skb, nlh, attr, extack);
nlh              3291 net/core/rtnetlink.c 				  const struct nlmsghdr *nlh,
nlh              3298 net/core/rtnetlink.c 	if (nlh->nlmsg_len < nlmsg_msg_size(sizeof(*ifm))) {
nlh              3304 net/core/rtnetlink.c 		return nlmsg_parse_deprecated(nlh, sizeof(*ifm), tb, IFLA_MAX,
nlh              3307 net/core/rtnetlink.c 	ifm = nlmsg_data(nlh);
nlh              3314 net/core/rtnetlink.c 	err = nlmsg_parse_deprecated_strict(nlh, sizeof(*ifm), tb, IFLA_MAX,
nlh              3337 net/core/rtnetlink.c static int rtnl_getlink(struct sk_buff *skb, struct nlmsghdr *nlh,
nlh              3351 net/core/rtnetlink.c 	err = rtnl_valid_getlink_req(skb, nlh, tb, extack);
nlh              3373 net/core/rtnetlink.c 	ifm = nlmsg_data(nlh);
nlh              3392 net/core/rtnetlink.c 			       nlh->nlmsg_seq, 0, 0, ext_filter_mask,
nlh              3407 net/core/rtnetlink.c static u16 rtnl_calcit(struct sk_buff *skb, struct nlmsghdr *nlh)
nlh              3417 net/core/rtnetlink.c 	hdrlen = nlmsg_len(nlh) < sizeof(struct ifinfomsg) ?
nlh              3420 net/core/rtnetlink.c 	if (nlmsg_parse_deprecated(nlh, hdrlen, tb, IFLA_MAX, ifla_policy, NULL) >= 0) {
nlh              3446 net/core/rtnetlink.c 	int type = cb->nlh->nlmsg_type - RTM_BASE;
nlh              3561 net/core/rtnetlink.c 	struct nlmsghdr *nlh;
nlh              3564 net/core/rtnetlink.c 	nlh = nlmsg_put(skb, pid, seq, type, sizeof(*ndm), nlflags);
nlh              3565 net/core/rtnetlink.c 	if (!nlh)
nlh              3568 net/core/rtnetlink.c 	ndm = nlmsg_data(nlh);
nlh              3583 net/core/rtnetlink.c 	nlmsg_end(skb, nlh);
nlh              3587 net/core/rtnetlink.c 	nlmsg_cancel(skb, nlh);
nlh              3682 net/core/rtnetlink.c static int rtnl_fdb_add(struct sk_buff *skb, struct nlmsghdr *nlh,
nlh              3693 net/core/rtnetlink.c 	err = nlmsg_parse_deprecated(nlh, sizeof(*ndm), tb, NDA_MAX, NULL,
nlh              3698 net/core/rtnetlink.c 	ndm = nlmsg_data(nlh);
nlh              3735 net/core/rtnetlink.c 				       nlh->nlmsg_flags, extack);
nlh              3747 net/core/rtnetlink.c 							   nlh->nlmsg_flags,
nlh              3751 net/core/rtnetlink.c 					       nlh->nlmsg_flags);
nlh              3790 net/core/rtnetlink.c static int rtnl_fdb_del(struct sk_buff *skb, struct nlmsghdr *nlh,
nlh              3804 net/core/rtnetlink.c 	err = nlmsg_parse_deprecated(nlh, sizeof(*ndm), tb, NDA_MAX, NULL,
nlh              3809 net/core/rtnetlink.c 	ndm = nlmsg_data(nlh);
nlh              3883 net/core/rtnetlink.c 	seq = cb->nlh->nlmsg_seq;
nlh              3934 net/core/rtnetlink.c static int valid_fdb_dump_strict(const struct nlmsghdr *nlh,
nlh              3942 net/core/rtnetlink.c 	if (nlh->nlmsg_len < nlmsg_msg_size(sizeof(*ndm))) {
nlh              3947 net/core/rtnetlink.c 	ndm = nlmsg_data(nlh);
nlh              3954 net/core/rtnetlink.c 	err = nlmsg_parse_deprecated_strict(nlh, sizeof(struct ndmsg), tb,
nlh              3988 net/core/rtnetlink.c static int valid_fdb_dump_legacy(const struct nlmsghdr *nlh,
nlh              4002 net/core/rtnetlink.c 	if (nlmsg_len(nlh) != sizeof(struct ndmsg) &&
nlh              4003 net/core/rtnetlink.c 	    (nlmsg_len(nlh) != sizeof(struct ndmsg) +
nlh              4007 net/core/rtnetlink.c 		err = nlmsg_parse_deprecated(nlh, sizeof(struct ifinfomsg),
nlh              4017 net/core/rtnetlink.c 		ifm = nlmsg_data(nlh);
nlh              4039 net/core/rtnetlink.c 		err = valid_fdb_dump_strict(cb->nlh, &br_idx, &brport_idx,
nlh              4042 net/core/rtnetlink.c 		err = valid_fdb_dump_legacy(cb->nlh, &br_idx, &brport_idx,
nlh              4123 net/core/rtnetlink.c static int valid_fdb_get_strict(const struct nlmsghdr *nlh,
nlh              4131 net/core/rtnetlink.c 	if (nlh->nlmsg_len < nlmsg_msg_size(sizeof(*ndm))) {
nlh              4136 net/core/rtnetlink.c 	ndm = nlmsg_data(nlh);
nlh              4148 net/core/rtnetlink.c 	err = nlmsg_parse_deprecated_strict(nlh, sizeof(struct ndmsg), tb,
nlh              4186 net/core/rtnetlink.c static int rtnl_fdb_get(struct sk_buff *in_skb, struct nlmsghdr *nlh,
nlh              4201 net/core/rtnetlink.c 	err = valid_fdb_get_strict(nlh, tb, &ndm_flags, &br_idx,
nlh              4272 net/core/rtnetlink.c 			       nlh->nlmsg_seq, extack);
nlh              4298 net/core/rtnetlink.c 	struct nlmsghdr *nlh;
nlh              4306 net/core/rtnetlink.c 	nlh = nlmsg_put(skb, pid, seq, RTM_NEWLINK, sizeof(*ifm), nlflags);
nlh              4307 net/core/rtnetlink.c 	if (nlh == NULL)
nlh              4310 net/core/rtnetlink.c 	ifm = nlmsg_data(nlh);
nlh              4381 net/core/rtnetlink.c 	nlmsg_end(skb, nlh);
nlh              4384 net/core/rtnetlink.c 	nlmsg_cancel(skb, nlh);
nlh              4389 net/core/rtnetlink.c static int valid_bridge_getlink_req(const struct nlmsghdr *nlh,
nlh              4399 net/core/rtnetlink.c 		if (nlh->nlmsg_len < nlmsg_msg_size(sizeof(*ifm))) {
nlh              4404 net/core/rtnetlink.c 		ifm = nlmsg_data(nlh);
nlh              4411 net/core/rtnetlink.c 		err = nlmsg_parse_deprecated_strict(nlh,
nlh              4416 net/core/rtnetlink.c 		err = nlmsg_parse_deprecated(nlh, sizeof(struct ifinfomsg),
nlh              4445 net/core/rtnetlink.c 	const struct nlmsghdr *nlh = cb->nlh;
nlh              4450 net/core/rtnetlink.c 	u32 seq = nlh->nlmsg_seq;
nlh              4454 net/core/rtnetlink.c 	err = valid_bridge_getlink_req(nlh, cb->strict_check, &filter_mask,
nlh              4550 net/core/rtnetlink.c static int rtnl_bridge_setlink(struct sk_buff *skb, struct nlmsghdr *nlh,
nlh              4561 net/core/rtnetlink.c 	if (nlmsg_len(nlh) < sizeof(*ifm))
nlh              4564 net/core/rtnetlink.c 	ifm = nlmsg_data(nlh);
nlh              4574 net/core/rtnetlink.c 	br_spec = nlmsg_find_attr(nlh, sizeof(struct ifinfomsg), IFLA_AF_SPEC);
nlh              4596 net/core/rtnetlink.c 		err = br_dev->netdev_ops->ndo_bridge_setlink(dev, nlh, flags,
nlh              4608 net/core/rtnetlink.c 			err = dev->netdev_ops->ndo_bridge_setlink(dev, nlh,
nlh              4627 net/core/rtnetlink.c static int rtnl_bridge_dellink(struct sk_buff *skb, struct nlmsghdr *nlh,
nlh              4638 net/core/rtnetlink.c 	if (nlmsg_len(nlh) < sizeof(*ifm))
nlh              4641 net/core/rtnetlink.c 	ifm = nlmsg_data(nlh);
nlh              4651 net/core/rtnetlink.c 	br_spec = nlmsg_find_attr(nlh, sizeof(struct ifinfomsg), IFLA_AF_SPEC);
nlh              4673 net/core/rtnetlink.c 		err = br_dev->netdev_ops->ndo_bridge_dellink(dev, nlh, flags);
nlh              4684 net/core/rtnetlink.c 			err = dev->netdev_ops->ndo_bridge_dellink(dev, nlh,
nlh              4800 net/core/rtnetlink.c 	struct nlmsghdr *nlh;
nlh              4807 net/core/rtnetlink.c 	nlh = nlmsg_put(skb, pid, seq, type, sizeof(*ifsm), flags);
nlh              4808 net/core/rtnetlink.c 	if (!nlh)
nlh              4811 net/core/rtnetlink.c 	ifsm = nlmsg_data(nlh);
nlh              4930 net/core/rtnetlink.c 	nlmsg_end(skb, nlh);
nlh              4937 net/core/rtnetlink.c 		nlmsg_cancel(skb, nlh);
nlh              4939 net/core/rtnetlink.c 		nlmsg_end(skb, nlh);
nlh              5008 net/core/rtnetlink.c static int rtnl_valid_stats_req(const struct nlmsghdr *nlh, bool strict_check,
nlh              5013 net/core/rtnetlink.c 	if (nlh->nlmsg_len < nlmsg_msg_size(sizeof(*ifsm))) {
nlh              5021 net/core/rtnetlink.c 	ifsm = nlmsg_data(nlh);
nlh              5030 net/core/rtnetlink.c 	if (nlmsg_attrlen(nlh, sizeof(*ifsm))) {
nlh              5042 net/core/rtnetlink.c static int rtnl_stats_get(struct sk_buff *skb, struct nlmsghdr *nlh,
nlh              5053 net/core/rtnetlink.c 	err = rtnl_valid_stats_req(nlh, netlink_strict_get_check(skb),
nlh              5058 net/core/rtnetlink.c 	ifsm = nlmsg_data(nlh);
nlh              5076 net/core/rtnetlink.c 				  NETLINK_CB(skb).portid, nlh->nlmsg_seq, 0,
nlh              5108 net/core/rtnetlink.c 	err = rtnl_valid_stats_req(cb->nlh, cb->strict_check, true, extack);
nlh              5112 net/core/rtnetlink.c 	ifsm = nlmsg_data(cb->nlh);
nlh              5127 net/core/rtnetlink.c 						  cb->nlh->nlmsg_seq, 0,
nlh              5155 net/core/rtnetlink.c static int rtnetlink_rcv_msg(struct sk_buff *skb, struct nlmsghdr *nlh,
nlh              5168 net/core/rtnetlink.c 	type = nlh->nlmsg_type;
nlh              5175 net/core/rtnetlink.c 	if (nlmsg_len(nlh) < sizeof(struct rtgenmsg))
nlh              5178 net/core/rtnetlink.c 	family = ((struct rtgenmsg *)nlmsg_data(nlh))->rtgen_family;
nlh              5185 net/core/rtnetlink.c 	if (kind == 2 && nlh->nlmsg_flags&NLM_F_DUMP) {
nlh              5201 net/core/rtnetlink.c 			min_dump_alloc = rtnl_calcit(skb, nlh);
nlh              5217 net/core/rtnetlink.c 			err = netlink_dump_start(rtnl, skb, nlh, &c);
nlh              5245 net/core/rtnetlink.c 			err = doit(skb, nlh, extack);
nlh              5254 net/core/rtnetlink.c 		err = link->doit(skb, nlh, extack);
nlh                19 net/core/sock_diag.c static int (*inet_rcv_compat)(struct sk_buff *skb, struct nlmsghdr *nlh);
nlh               164 net/core/sock_diag.c void sock_diag_register_inet_compat(int (*fn)(struct sk_buff *skb, struct nlmsghdr *nlh))
nlh               172 net/core/sock_diag.c void sock_diag_unregister_inet_compat(int (*fn)(struct sk_buff *skb, struct nlmsghdr *nlh))
nlh               212 net/core/sock_diag.c static int __sock_diag_cmd(struct sk_buff *skb, struct nlmsghdr *nlh)
nlh               215 net/core/sock_diag.c 	struct sock_diag_req *req = nlmsg_data(nlh);
nlh               218 net/core/sock_diag.c 	if (nlmsg_len(nlh) < sizeof(*req))
nlh               232 net/core/sock_diag.c 	else if (nlh->nlmsg_type == SOCK_DIAG_BY_FAMILY)
nlh               233 net/core/sock_diag.c 		err = hndl->dump(skb, nlh);
nlh               234 net/core/sock_diag.c 	else if (nlh->nlmsg_type == SOCK_DESTROY && hndl->destroy)
nlh               235 net/core/sock_diag.c 		err = hndl->destroy(skb, nlh);
nlh               243 net/core/sock_diag.c static int sock_diag_rcv_msg(struct sk_buff *skb, struct nlmsghdr *nlh,
nlh               248 net/core/sock_diag.c 	switch (nlh->nlmsg_type) {
nlh               256 net/core/sock_diag.c 			ret = inet_rcv_compat(skb, nlh);
nlh               264 net/core/sock_diag.c 		return __sock_diag_cmd(skb, nlh);
nlh               187 net/dcb/dcbnl.c 	struct nlmsghdr *nlh;
nlh               193 net/dcb/dcbnl.c 	nlh = nlmsg_put(skb, port, seq, type, sizeof(*dcb), flags);
nlh               194 net/dcb/dcbnl.c 	BUG_ON(!nlh);
nlh               196 net/dcb/dcbnl.c 	dcb = nlmsg_data(nlh);
nlh               202 net/dcb/dcbnl.c 		*nlhp = nlh;
nlh               207 net/dcb/dcbnl.c static int dcbnl_getstate(struct net_device *netdev, struct nlmsghdr *nlh,
nlh               218 net/dcb/dcbnl.c static int dcbnl_getpfccfg(struct net_device *netdev, struct nlmsghdr *nlh,
nlh               263 net/dcb/dcbnl.c static int dcbnl_getperm_hwaddr(struct net_device *netdev, struct nlmsghdr *nlh,
nlh               277 net/dcb/dcbnl.c static int dcbnl_getcap(struct net_device *netdev, struct nlmsghdr *nlh,
nlh               322 net/dcb/dcbnl.c static int dcbnl_getnumtcs(struct net_device *netdev, struct nlmsghdr *nlh,
nlh               369 net/dcb/dcbnl.c static int dcbnl_setnumtcs(struct net_device *netdev, struct nlmsghdr *nlh,
nlh               403 net/dcb/dcbnl.c static int dcbnl_getpfcstate(struct net_device *netdev, struct nlmsghdr *nlh,
nlh               413 net/dcb/dcbnl.c static int dcbnl_setpfcstate(struct net_device *netdev, struct nlmsghdr *nlh,
nlh               431 net/dcb/dcbnl.c static int dcbnl_getapp(struct net_device *netdev, struct nlmsghdr *nlh,
nlh               501 net/dcb/dcbnl.c static int dcbnl_setapp(struct net_device *netdev, struct nlmsghdr *nlh,
nlh               551 net/dcb/dcbnl.c static int __dcbnl_pg_getcfg(struct net_device *netdev, struct nlmsghdr *nlh,
nlh               687 net/dcb/dcbnl.c static int dcbnl_pgtx_getcfg(struct net_device *netdev, struct nlmsghdr *nlh,
nlh               690 net/dcb/dcbnl.c 	return __dcbnl_pg_getcfg(netdev, nlh, tb, skb, 0);
nlh               693 net/dcb/dcbnl.c static int dcbnl_pgrx_getcfg(struct net_device *netdev, struct nlmsghdr *nlh,
nlh               696 net/dcb/dcbnl.c 	return __dcbnl_pg_getcfg(netdev, nlh, tb, skb, 1);
nlh               699 net/dcb/dcbnl.c static int dcbnl_setstate(struct net_device *netdev, struct nlmsghdr *nlh,
nlh               716 net/dcb/dcbnl.c static int dcbnl_setpfccfg(struct net_device *netdev, struct nlmsghdr *nlh,
nlh               747 net/dcb/dcbnl.c static int dcbnl_setall(struct net_device *netdev, struct nlmsghdr *nlh,
nlh               765 net/dcb/dcbnl.c static int __dcbnl_pg_setcfg(struct net_device *netdev, struct nlmsghdr *nlh,
nlh               858 net/dcb/dcbnl.c static int dcbnl_pgtx_setcfg(struct net_device *netdev, struct nlmsghdr *nlh,
nlh               861 net/dcb/dcbnl.c 	return __dcbnl_pg_setcfg(netdev, nlh, seq, tb, skb, 0);
nlh               864 net/dcb/dcbnl.c static int dcbnl_pgrx_setcfg(struct net_device *netdev, struct nlmsghdr *nlh,
nlh               867 net/dcb/dcbnl.c 	return __dcbnl_pg_setcfg(netdev, nlh, seq, tb, skb, 1);
nlh               870 net/dcb/dcbnl.c static int dcbnl_bcn_getcfg(struct net_device *netdev, struct nlmsghdr *nlh,
nlh               932 net/dcb/dcbnl.c static int dcbnl_bcn_setcfg(struct net_device *netdev, struct nlmsghdr *nlh,
nlh              1375 net/dcb/dcbnl.c 	struct nlmsghdr *nlh;
nlh              1382 net/dcb/dcbnl.c 	skb = dcbnl_newmsg(event, cmd, portid, seq, 0, &nlh);
nlh              1397 net/dcb/dcbnl.c 		nlmsg_end(skb, nlh);
nlh              1424 net/dcb/dcbnl.c static int dcbnl_ieee_set(struct net_device *netdev, struct nlmsghdr *nlh,
nlh              1514 net/dcb/dcbnl.c static int dcbnl_ieee_get(struct net_device *netdev, struct nlmsghdr *nlh,
nlh              1525 net/dcb/dcbnl.c static int dcbnl_ieee_del(struct net_device *netdev, struct nlmsghdr *nlh,
nlh              1571 net/dcb/dcbnl.c static int dcbnl_getdcbx(struct net_device *netdev, struct nlmsghdr *nlh,
nlh              1581 net/dcb/dcbnl.c static int dcbnl_setdcbx(struct net_device *netdev, struct nlmsghdr *nlh,
nlh              1598 net/dcb/dcbnl.c static int dcbnl_getfeatcfg(struct net_device *netdev, struct nlmsghdr *nlh,
nlh              1644 net/dcb/dcbnl.c static int dcbnl_setfeatcfg(struct net_device *netdev, struct nlmsghdr *nlh,
nlh              1682 net/dcb/dcbnl.c static int dcbnl_cee_get(struct net_device *netdev, struct nlmsghdr *nlh,
nlh              1732 net/dcb/dcbnl.c static int dcb_doit(struct sk_buff *skb, struct nlmsghdr *nlh,
nlh              1737 net/dcb/dcbnl.c 	struct dcbmsg *dcb = nlmsg_data(nlh);
nlh              1745 net/dcb/dcbnl.c 	if ((nlh->nlmsg_type == RTM_SETDCB) && !netlink_capable(skb, CAP_NET_ADMIN))
nlh              1748 net/dcb/dcbnl.c 	ret = nlmsg_parse_deprecated(nlh, sizeof(*dcb), tb, DCB_ATTR_MAX,
nlh              1771 net/dcb/dcbnl.c 	reply_skb = dcbnl_newmsg(fn->type, dcb->cmd, portid, nlh->nlmsg_seq,
nlh              1772 net/dcb/dcbnl.c 				 nlh->nlmsg_flags, &reply_nlh);
nlh              1776 net/dcb/dcbnl.c 	ret = fn->cb(netdev, nlh, nlh->nlmsg_seq, tb, reply_skb);
nlh                55 net/dccp/diag.c 			      const struct nlmsghdr *nlh,
nlh                58 net/dccp/diag.c 	return inet_diag_dump_one_icsk(&dccp_hashinfo, in_skb, nlh, req);
nlh               569 net/decnet/dn_dev.c static int dn_nl_deladdr(struct sk_buff *skb, struct nlmsghdr *nlh,
nlh               586 net/decnet/dn_dev.c 	err = nlmsg_parse_deprecated(nlh, sizeof(*ifm), tb, IFA_MAX,
nlh               592 net/decnet/dn_dev.c 	ifm = nlmsg_data(nlh);
nlh               615 net/decnet/dn_dev.c static int dn_nl_newaddr(struct sk_buff *skb, struct nlmsghdr *nlh,
nlh               632 net/decnet/dn_dev.c 	err = nlmsg_parse_deprecated(nlh, sizeof(*ifm), tb, IFA_MAX,
nlh               640 net/decnet/dn_dev.c 	ifm = nlmsg_data(nlh);
nlh               688 net/decnet/dn_dev.c 	struct nlmsghdr *nlh;
nlh               691 net/decnet/dn_dev.c 	nlh = nlmsg_put(skb, portid, seq, event, sizeof(*ifm), flags);
nlh               692 net/decnet/dn_dev.c 	if (nlh == NULL)
nlh               695 net/decnet/dn_dev.c 	ifm = nlmsg_data(nlh);
nlh               710 net/decnet/dn_dev.c 	nlmsg_end(skb, nlh);
nlh               714 net/decnet/dn_dev.c 	nlmsg_cancel(skb, nlh);
nlh               775 net/decnet/dn_dev.c 					      cb->nlh->nlmsg_seq, RTM_NEWADDR,
nlh               268 net/decnet/dn_fib.c 				       const struct nlmsghdr *nlh, int *errp)
nlh               505 net/decnet/dn_fib.c static int dn_fib_rtm_delroute(struct sk_buff *skb, struct nlmsghdr *nlh,
nlh               510 net/decnet/dn_fib.c 	struct rtmsg *r = nlmsg_data(nlh);
nlh               520 net/decnet/dn_fib.c 	err = nlmsg_parse_deprecated(nlh, sizeof(*r), attrs, RTA_MAX,
nlh               529 net/decnet/dn_fib.c 	return tb->delete(tb, r, attrs, nlh, &NETLINK_CB(skb));
nlh               532 net/decnet/dn_fib.c static int dn_fib_rtm_newroute(struct sk_buff *skb, struct nlmsghdr *nlh,
nlh               537 net/decnet/dn_fib.c 	struct rtmsg *r = nlmsg_data(nlh);
nlh               547 net/decnet/dn_fib.c 	err = nlmsg_parse_deprecated(nlh, sizeof(*r), attrs, RTA_MAX,
nlh               556 net/decnet/dn_fib.c 	return tb->insert(tb, r, attrs, nlh, &NETLINK_CB(skb));
nlh               563 net/decnet/dn_fib.c 		struct nlmsghdr nlh;
nlh               600 net/decnet/dn_fib.c 	req.nlh.nlmsg_len = sizeof(req);
nlh               601 net/decnet/dn_fib.c 	req.nlh.nlmsg_type = cmd;
nlh               602 net/decnet/dn_fib.c 	req.nlh.nlmsg_flags = NLM_F_REQUEST|NLM_F_CREATE|NLM_F_APPEND;
nlh               603 net/decnet/dn_fib.c 	req.nlh.nlmsg_pid = 0;
nlh               604 net/decnet/dn_fib.c 	req.nlh.nlmsg_seq = 0;
nlh               613 net/decnet/dn_fib.c 		tb->insert(tb, &req.rtm, attrs, &req.nlh, NULL);
nlh               615 net/decnet/dn_fib.c 		tb->delete(tb, &req.rtm, attrs, &req.nlh, NULL);
nlh              1550 net/decnet/dn_route.c 	struct nlmsghdr *nlh;
nlh              1553 net/decnet/dn_route.c 	nlh = nlmsg_put(skb, portid, seq, event, sizeof(*r), flags);
nlh              1554 net/decnet/dn_route.c 	if (!nlh)
nlh              1557 net/decnet/dn_route.c 	r = nlmsg_data(nlh);
nlh              1608 net/decnet/dn_route.c 	nlmsg_end(skb, nlh);
nlh              1612 net/decnet/dn_route.c 	nlmsg_cancel(skb, nlh);
nlh              1633 net/decnet/dn_route.c static int dn_cache_getroute(struct sk_buff *in_skb, struct nlmsghdr *nlh,
nlh              1637 net/decnet/dn_route.c 	struct rtmsg *rtm = nlmsg_data(nlh);
nlh              1648 net/decnet/dn_route.c 	err = nlmsg_parse_deprecated(nlh, sizeof(*rtm), tb, RTA_MAX,
nlh              1703 net/decnet/dn_route.c 	err = dn_rt_fill_info(skb, NETLINK_CB(in_skb).portid, nlh->nlmsg_seq, RTM_NEWROUTE, 0, 0);
nlh              1731 net/decnet/dn_route.c 	if (nlmsg_len(cb->nlh) < sizeof(struct rtmsg))
nlh              1734 net/decnet/dn_route.c 	rtm = nlmsg_data(cb->nlh);
nlh              1753 net/decnet/dn_route.c 					cb->nlh->nlmsg_seq, RTM_NEWROUTE,
nlh               229 net/decnet/dn_table.c static int dn_fib_nh_match(struct rtmsg *r, struct nlmsghdr *nlh, struct nlattr *attrs[], struct dn_fib_info *fi)
nlh               306 net/decnet/dn_table.c 	struct nlmsghdr *nlh;
nlh               308 net/decnet/dn_table.c 	nlh = nlmsg_put(skb, portid, seq, event, sizeof(*rtm), flags);
nlh               309 net/decnet/dn_table.c 	if (!nlh)
nlh               312 net/decnet/dn_table.c 	rtm = nlmsg_data(nlh);
nlh               373 net/decnet/dn_table.c 	nlmsg_end(skb, nlh);
nlh               377 net/decnet/dn_table.c 	nlmsg_cancel(skb, nlh);
nlh               383 net/decnet/dn_table.c 			struct nlmsghdr *nlh, struct netlink_skb_parms *req)
nlh               393 net/decnet/dn_table.c 	err = dn_fib_dump_info(skb, portid, nlh->nlmsg_seq, event, tb_id,
nlh               402 net/decnet/dn_table.c 	rtnl_notify(skb, &init_net, portid, RTNLGRP_DECnet_ROUTE, nlh, GFP_KERNEL);
nlh               424 net/decnet/dn_table.c 				cb->nlh->nlmsg_seq,
nlh               500 net/decnet/dn_table.c 	if (nlmsg_len(cb->nlh) >= sizeof(struct rtmsg) &&
nlh               501 net/decnet/dn_table.c 		((struct rtmsg *)nlmsg_data(cb->nlh))->rtm_flags&RTM_F_CLONED)
nlh                36 net/decnet/netfilter/dn_rtmsg.c 	struct nlmsghdr *nlh;
nlh                48 net/decnet/netfilter/dn_rtmsg.c 	nlh = nlmsg_put(skb, 0, 0, 0, size, 0);
nlh                49 net/decnet/netfilter/dn_rtmsg.c 	if (!nlh) {
nlh                54 net/decnet/netfilter/dn_rtmsg.c 	rtm = (struct nf_dn_rtmsg *)nlmsg_data(nlh);
nlh                58 net/decnet/netfilter/dn_rtmsg.c 	nlh->nlmsg_len = skb->tail - old_tail;
nlh                97 net/decnet/netfilter/dn_rtmsg.c #define RCV_SKB_FAIL(err) do { netlink_ack(skb, nlh, (err), NULL); return; } while (0)
nlh               101 net/decnet/netfilter/dn_rtmsg.c 	struct nlmsghdr *nlh = nlmsg_hdr(skb);
nlh               103 net/decnet/netfilter/dn_rtmsg.c 	if (skb->len < sizeof(*nlh) ||
nlh               104 net/decnet/netfilter/dn_rtmsg.c 	    nlh->nlmsg_len < sizeof(*nlh) ||
nlh               105 net/decnet/netfilter/dn_rtmsg.c 	    skb->len < nlh->nlmsg_len)
nlh               196 net/dsa/slave.c 	u32 seq = dump->cb->nlh->nlmsg_seq;
nlh               197 net/dsa/slave.c 	struct nlmsghdr *nlh;
nlh               203 net/dsa/slave.c 	nlh = nlmsg_put(dump->skb, portid, seq, RTM_NEWNEIGH,
nlh               205 net/dsa/slave.c 	if (!nlh)
nlh               208 net/dsa/slave.c 	ndm = nlmsg_data(nlh);
nlh               223 net/dsa/slave.c 	nlmsg_end(dump->skb, nlh);
nlh               230 net/dsa/slave.c 	nlmsg_cancel(dump->skb, nlh);
nlh                47 net/ieee802154/netlink.c 	struct nlmsghdr *nlh = nlmsg_hdr(msg);
nlh                48 net/ieee802154/netlink.c 	void *hdr = genlmsg_data(nlmsg_data(nlh));
nlh                76 net/ieee802154/netlink.c 	struct nlmsghdr *nlh = nlmsg_hdr(msg);
nlh                77 net/ieee802154/netlink.c 	void *hdr = genlmsg_data(nlmsg_data(nlh));
nlh               453 net/ieee802154/nl-mac.c 					     cb->nlh->nlmsg_seq,
nlh               792 net/ieee802154/nl-mac.c 		data.nlmsg_seq = cb->nlh->nlmsg_seq;
nlh               131 net/ieee802154/nl-phy.c 				    data->cb->nlh->nlmsg_seq,
nlh               244 net/ieee802154/nl802154.c 		err = nlmsg_parse_deprecated(cb->nlh,
nlh               561 net/ieee802154/nl802154.c 	int ret = nlmsg_parse_deprecated(cb->nlh,
nlh               631 net/ieee802154/nl802154.c 					     cb->nlh->nlmsg_seq, NLM_F_MULTI);
nlh               877 net/ieee802154/nl802154.c 						cb->nlh->nlmsg_seq, NLM_F_MULTI,
nlh              1524 net/ieee802154/nl802154.c 				      cb->nlh->nlmsg_seq, NLM_F_MULTI,
nlh              1690 net/ieee802154/nl802154.c 					 cb->nlh->nlmsg_seq, NLM_F_MULTI,
nlh              1862 net/ieee802154/nl802154.c 						 cb->nlh->nlmsg_seq,
nlh              2020 net/ieee802154/nl802154.c 					   cb->nlh->nlmsg_seq, NLM_F_MULTI,
nlh               350 net/ipv4/devinet.c 			   int destroy, struct nlmsghdr *nlh, u32 portid)
nlh               389 net/ipv4/devinet.c 				rtmsg_ifa(RTM_DELADDR, ifa, nlh, portid);
nlh               427 net/ipv4/devinet.c 	rtmsg_ifa(RTM_DELADDR, ifa1, nlh, portid);
nlh               445 net/ipv4/devinet.c 		rtmsg_ifa(RTM_NEWADDR, promote, nlh, portid);
nlh               472 net/ipv4/devinet.c static int __inet_insert_ifa(struct in_ifaddr *ifa, struct nlmsghdr *nlh,
nlh               552 net/ipv4/devinet.c 	rtmsg_ifa(RTM_NEWADDR, ifa, nlh, portid);
nlh               644 net/ipv4/devinet.c static int inet_rtm_deladdr(struct sk_buff *skb, struct nlmsghdr *nlh,
nlh               658 net/ipv4/devinet.c 	err = nlmsg_parse_deprecated(nlh, sizeof(*ifm), tb, IFA_MAX,
nlh               663 net/ipv4/devinet.c 	ifm = nlmsg_data(nlh);
nlh               686 net/ipv4/devinet.c 		__inet_del_ifa(in_dev, ifap, 1, nlh, NETLINK_CB(skb).portid);
nlh               823 net/ipv4/devinet.c static struct in_ifaddr *rtm_to_ifaddr(struct net *net, struct nlmsghdr *nlh,
nlh               834 net/ipv4/devinet.c 	err = nlmsg_parse_deprecated(nlh, sizeof(*ifm), tb, IFA_MAX,
nlh               839 net/ipv4/devinet.c 	ifm = nlmsg_data(nlh);
nlh               928 net/ipv4/devinet.c static int inet_rtm_newaddr(struct sk_buff *skb, struct nlmsghdr *nlh,
nlh               939 net/ipv4/devinet.c 	ifa = rtm_to_ifaddr(net, nlh, &valid_lft, &prefered_lft, extack);
nlh               957 net/ipv4/devinet.c 		return __inet_insert_ifa(ifa, nlh, NETLINK_CB(skb).portid,
nlh               964 net/ipv4/devinet.c 		if (nlh->nlmsg_flags & NLM_F_EXCL ||
nlh               965 net/ipv4/devinet.c 		    !(nlh->nlmsg_flags & NLM_F_REPLACE))
nlh               978 net/ipv4/devinet.c 		rtmsg_ifa(RTM_NEWADDR, ifa, nlh, NETLINK_CB(skb).portid);
nlh              1653 net/ipv4/devinet.c 	struct nlmsghdr  *nlh;
nlh              1656 net/ipv4/devinet.c 	nlh = nlmsg_put(skb, args->portid, args->seq, args->event, sizeof(*ifm),
nlh              1658 net/ipv4/devinet.c 	if (!nlh)
nlh              1661 net/ipv4/devinet.c 	ifm = nlmsg_data(nlh);
nlh              1708 net/ipv4/devinet.c 	nlmsg_end(skb, nlh);
nlh              1712 net/ipv4/devinet.c 	nlmsg_cancel(skb, nlh);
nlh              1716 net/ipv4/devinet.c static int inet_valid_dump_ifaddr_req(const struct nlmsghdr *nlh,
nlh              1726 net/ipv4/devinet.c 	if (nlh->nlmsg_len < nlmsg_msg_size(sizeof(*ifm))) {
nlh              1731 net/ipv4/devinet.c 	ifm = nlmsg_data(nlh);
nlh              1743 net/ipv4/devinet.c 	err = nlmsg_parse_deprecated_strict(nlh, sizeof(*ifm), tb, IFA_MAX,
nlh              1803 net/ipv4/devinet.c 	const struct nlmsghdr *nlh = cb->nlh;
nlh              1806 net/ipv4/devinet.c 		.seq = nlh->nlmsg_seq,
nlh              1826 net/ipv4/devinet.c 		err = inet_valid_dump_ifaddr_req(nlh, &fillargs, &tgt_net,
nlh              1885 net/ipv4/devinet.c static void rtmsg_ifa(int event, struct in_ifaddr *ifa, struct nlmsghdr *nlh,
nlh              1890 net/ipv4/devinet.c 		.seq = nlh ? nlh->nlmsg_seq : 0,
nlh              1911 net/ipv4/devinet.c 	rtnl_notify(skb, net, portid, RTNLGRP_IPV4_IFADDR, nlh, GFP_KERNEL);
nlh              2032 net/ipv4/devinet.c 	struct nlmsghdr  *nlh;
nlh              2036 net/ipv4/devinet.c 	nlh = nlmsg_put(skb, portid, seq, event, sizeof(struct netconfmsg),
nlh              2038 net/ipv4/devinet.c 	if (!nlh)
nlh              2044 net/ipv4/devinet.c 	ncm = nlmsg_data(nlh);
nlh              2079 net/ipv4/devinet.c 	nlmsg_end(skb, nlh);
nlh              2083 net/ipv4/devinet.c 	nlmsg_cancel(skb, nlh);
nlh              2121 net/ipv4/devinet.c 				      const struct nlmsghdr *nlh,
nlh              2127 net/ipv4/devinet.c 	if (nlh->nlmsg_len < nlmsg_msg_size(sizeof(struct netconfmsg))) {
nlh              2133 net/ipv4/devinet.c 		return nlmsg_parse_deprecated(nlh, sizeof(struct netconfmsg),
nlh              2137 net/ipv4/devinet.c 	err = nlmsg_parse_deprecated_strict(nlh, sizeof(struct netconfmsg),
nlh              2160 net/ipv4/devinet.c 				    struct nlmsghdr *nlh,
nlh              2172 net/ipv4/devinet.c 	err = inet_netconf_valid_get_req(in_skb, nlh, tb, extack);
nlh              2206 net/ipv4/devinet.c 					nlh->nlmsg_seq, RTM_NEWNETCONF, 0,
nlh              2222 net/ipv4/devinet.c 	const struct nlmsghdr *nlh = cb->nlh;
nlh              2234 net/ipv4/devinet.c 		if (nlh->nlmsg_len < nlmsg_msg_size(sizeof(*ncm))) {
nlh              2239 net/ipv4/devinet.c 		if (nlmsg_attrlen(nlh, sizeof(*ncm))) {
nlh              2264 net/ipv4/devinet.c 						      nlh->nlmsg_seq,
nlh              2281 net/ipv4/devinet.c 					      nlh->nlmsg_seq,
nlh              2292 net/ipv4/devinet.c 					      nlh->nlmsg_seq,
nlh               729 net/ipv4/fib_frontend.c 			     struct nlmsghdr *nlh, struct fib_config *cfg,
nlh               737 net/ipv4/fib_frontend.c 	err = nlmsg_validate_deprecated(nlh, sizeof(*rtm), RTA_MAX,
nlh               744 net/ipv4/fib_frontend.c 	rtm = nlmsg_data(nlh);
nlh               752 net/ipv4/fib_frontend.c 	cfg->fc_nlflags = nlh->nlmsg_flags;
nlh               755 net/ipv4/fib_frontend.c 	cfg->fc_nlinfo.nlh = nlh;
nlh               764 net/ipv4/fib_frontend.c 	nlmsg_for_each_attr(attr, nlh, sizeof(struct rtmsg), remaining) {
nlh               845 net/ipv4/fib_frontend.c static int inet_rtm_delroute(struct sk_buff *skb, struct nlmsghdr *nlh,
nlh               853 net/ipv4/fib_frontend.c 	err = rtm_to_fib_config(net, skb, nlh, &cfg, extack);
nlh               875 net/ipv4/fib_frontend.c static int inet_rtm_newroute(struct sk_buff *skb, struct nlmsghdr *nlh,
nlh               883 net/ipv4/fib_frontend.c 	err = rtm_to_fib_config(net, skb, nlh, &cfg, extack);
nlh               900 net/ipv4/fib_frontend.c int ip_valid_fib_dump_req(struct net *net, const struct nlmsghdr *nlh,
nlh               911 net/ipv4/fib_frontend.c 	if (nlh->nlmsg_len < nlmsg_msg_size(sizeof(*rtm))) {
nlh               916 net/ipv4/fib_frontend.c 	rtm = nlmsg_data(nlh);
nlh               937 net/ipv4/fib_frontend.c 	err = nlmsg_parse_deprecated_strict(nlh, sizeof(*rtm), tb, RTA_MAX,
nlh               978 net/ipv4/fib_frontend.c 	const struct nlmsghdr *nlh = cb->nlh;
nlh               987 net/ipv4/fib_frontend.c 		err = ip_valid_fib_dump_req(net, nlh, &filter, cb);
nlh               990 net/ipv4/fib_frontend.c 	} else if (nlmsg_len(nlh) >= sizeof(struct rtmsg)) {
nlh               991 net/ipv4/fib_frontend.c 		struct rtmsg *rtm = nlmsg_data(nlh);
nlh              1003 net/ipv4/fib_frontend.c 			if (rtnl_msg_family(cb->nlh) != PF_INET)
nlh              1367 net/ipv4/fib_frontend.c 	struct nlmsghdr *nlh;
nlh              1371 net/ipv4/fib_frontend.c 	nlh = nlmsg_hdr(skb);
nlh              1373 net/ipv4/fib_frontend.c 	    skb->len < nlh->nlmsg_len ||
nlh              1374 net/ipv4/fib_frontend.c 	    nlmsg_len(nlh) < sizeof(*frn))
nlh              1380 net/ipv4/fib_frontend.c 	nlh = nlmsg_hdr(skb);
nlh              1382 net/ipv4/fib_frontend.c 	frn = (struct fib_result_nl *) nlmsg_data(nlh);
nlh               508 net/ipv4/fib_semantics.c 	u32 seq = info->nlh ? info->nlh->nlmsg_seq : 0;
nlh               525 net/ipv4/fib_semantics.c 		    info->nlh, GFP_KERNEL);
nlh              1732 net/ipv4/fib_semantics.c 	struct nlmsghdr *nlh;
nlh              1735 net/ipv4/fib_semantics.c 	nlh = nlmsg_put(skb, portid, seq, event, sizeof(*rtm), flags);
nlh              1736 net/ipv4/fib_semantics.c 	if (!nlh)
nlh              1739 net/ipv4/fib_semantics.c 	rtm = nlmsg_data(nlh);
nlh              1798 net/ipv4/fib_semantics.c 	nlmsg_end(skb, nlh);
nlh              1802 net/ipv4/fib_semantics.c 	nlmsg_cancel(skb, nlh);
nlh              2133 net/ipv4/fib_trie.c 						    cb->nlh->nlmsg_seq,
nlh               903 net/ipv4/fou.c 				    cb->nlh->nlmsg_seq, NLM_F_MULTI,
nlh               184 net/ipv4/inet_diag.c 	struct nlmsghdr  *nlh;
nlh               191 net/ipv4/inet_diag.c 	nlh = nlmsg_put(skb, portid, seq, unlh->nlmsg_type, sizeof(*r),
nlh               193 net/ipv4/inet_diag.c 	if (!nlh)
nlh               196 net/ipv4/inet_diag.c 	r = nlmsg_data(nlh);
nlh               302 net/ipv4/inet_diag.c 	nlmsg_end(skb, nlh);
nlh               306 net/ipv4/inet_diag.c 	nlmsg_cancel(skb, nlh);
nlh               330 net/ipv4/inet_diag.c 	struct nlmsghdr *nlh;
nlh               333 net/ipv4/inet_diag.c 	nlh = nlmsg_put(skb, portid, seq, unlh->nlmsg_type, sizeof(*r),
nlh               335 net/ipv4/inet_diag.c 	if (!nlh)
nlh               338 net/ipv4/inet_diag.c 	r = nlmsg_data(nlh);
nlh               356 net/ipv4/inet_diag.c 	nlmsg_end(skb, nlh);
nlh               366 net/ipv4/inet_diag.c 	struct nlmsghdr *nlh;
nlh               369 net/ipv4/inet_diag.c 	nlh = nlmsg_put(skb, portid, seq, unlh->nlmsg_type, sizeof(*r),
nlh               371 net/ipv4/inet_diag.c 	if (!nlh)
nlh               374 net/ipv4/inet_diag.c 	r = nlmsg_data(nlh);
nlh               394 net/ipv4/inet_diag.c 	nlmsg_end(skb, nlh);
nlh               462 net/ipv4/inet_diag.c 			    const struct nlmsghdr *nlh,
nlh               484 net/ipv4/inet_diag.c 			   nlh->nlmsg_seq, 0, nlh, net_admin);
nlh               504 net/ipv4/inet_diag.c 			       const struct nlmsghdr *nlh,
nlh               514 net/ipv4/inet_diag.c 		err = handler->dump_one(in_skb, nlh, req);
nlh               862 net/ipv4/inet_diag.c 				  cb->nlh->nlmsg_seq, NLM_F_MULTI, cb->nlh,
nlh              1019 net/ipv4/inet_diag.c 					   cb->nlh->nlmsg_seq, NLM_F_MULTI,
nlh              1020 net/ipv4/inet_diag.c 					   cb->nlh, net_admin);
nlh              1065 net/ipv4/inet_diag.c 	if (nlmsg_attrlen(cb->nlh, hdrlen))
nlh              1066 net/ipv4/inet_diag.c 		bc = nlmsg_find_attr(cb->nlh, hdrlen, INET_DIAG_REQ_BYTECODE);
nlh              1068 net/ipv4/inet_diag.c 	return __inet_diag_dump(skb, cb, nlmsg_data(cb->nlh), bc);
nlh              1086 net/ipv4/inet_diag.c 	struct inet_diag_req *rc = nlmsg_data(cb->nlh);
nlh              1092 net/ipv4/inet_diag.c 	req.sdiag_protocol = inet_diag_type2proto(cb->nlh->nlmsg_type);
nlh              1097 net/ipv4/inet_diag.c 	if (nlmsg_attrlen(cb->nlh, hdrlen))
nlh              1098 net/ipv4/inet_diag.c 		bc = nlmsg_find_attr(cb->nlh, hdrlen, INET_DIAG_REQ_BYTECODE);
nlh              1104 net/ipv4/inet_diag.c 				      const struct nlmsghdr *nlh)
nlh              1106 net/ipv4/inet_diag.c 	struct inet_diag_req *rc = nlmsg_data(nlh);
nlh              1110 net/ipv4/inet_diag.c 	req.sdiag_protocol = inet_diag_type2proto(nlh->nlmsg_type);
nlh              1115 net/ipv4/inet_diag.c 	return inet_diag_cmd_exact(SOCK_DIAG_BY_FAMILY, in_skb, nlh, &req);
nlh              1118 net/ipv4/inet_diag.c static int inet_diag_rcv_msg_compat(struct sk_buff *skb, struct nlmsghdr *nlh)
nlh              1123 net/ipv4/inet_diag.c 	if (nlh->nlmsg_type >= INET_DIAG_GETSOCK_MAX ||
nlh              1124 net/ipv4/inet_diag.c 	    nlmsg_len(nlh) < hdrlen)
nlh              1127 net/ipv4/inet_diag.c 	if (nlh->nlmsg_flags & NLM_F_DUMP) {
nlh              1128 net/ipv4/inet_diag.c 		if (nlmsg_attrlen(nlh, hdrlen)) {
nlh              1132 net/ipv4/inet_diag.c 			attr = nlmsg_find_attr(nlh, hdrlen,
nlh              1142 net/ipv4/inet_diag.c 			return netlink_dump_start(net->diag_nlsk, skb, nlh, &c);
nlh              1146 net/ipv4/inet_diag.c 	return inet_diag_get_exact_compat(skb, nlh);
nlh              1184 net/ipv4/inet_diag.c 	struct nlmsghdr *nlh;
nlh              1190 net/ipv4/inet_diag.c 	nlh = nlmsg_put(skb, 0, 0, SOCK_DIAG_BY_FAMILY, sizeof(*r), 0);
nlh              1191 net/ipv4/inet_diag.c 	if (!nlh)
nlh              1194 net/ipv4/inet_diag.c 	r = nlmsg_data(nlh);
nlh              1202 net/ipv4/inet_diag.c 		nlmsg_cancel(skb, nlh);
nlh              1209 net/ipv4/inet_diag.c 		nlmsg_cancel(skb, nlh);
nlh              1224 net/ipv4/inet_diag.c 	nlmsg_end(skb, nlh);
nlh               751 net/ipv4/ipmr.c 			struct nlmsghdr *nlh = skb_pull(skb,
nlh               753 net/ipv4/ipmr.c 			nlh->nlmsg_type = NLMSG_ERROR;
nlh               754 net/ipv4/ipmr.c 			nlh->nlmsg_len = nlmsg_msg_size(sizeof(struct nlmsgerr));
nlh               755 net/ipv4/ipmr.c 			skb_trim(skb, nlh->nlmsg_len);
nlh               756 net/ipv4/ipmr.c 			e = nlmsg_data(nlh);
nlh              1012 net/ipv4/ipmr.c 			struct nlmsghdr *nlh = skb_pull(skb,
nlh              1016 net/ipv4/ipmr.c 					   nlmsg_data(nlh)) > 0) {
nlh              1017 net/ipv4/ipmr.c 				nlh->nlmsg_len = skb_tail_pointer(skb) -
nlh              1018 net/ipv4/ipmr.c 						 (u8 *)nlh;
nlh              1020 net/ipv4/ipmr.c 				nlh->nlmsg_type = NLMSG_ERROR;
nlh              1021 net/ipv4/ipmr.c 				nlh->nlmsg_len = nlmsg_msg_size(sizeof(struct nlmsgerr));
nlh              1022 net/ipv4/ipmr.c 				skb_trim(skb, nlh->nlmsg_len);
nlh              1023 net/ipv4/ipmr.c 				e = nlmsg_data(nlh);
nlh              2325 net/ipv4/ipmr.c 	struct nlmsghdr *nlh;
nlh              2329 net/ipv4/ipmr.c 	nlh = nlmsg_put(skb, portid, seq, cmd, sizeof(*rtm), flags);
nlh              2330 net/ipv4/ipmr.c 	if (!nlh)
nlh              2333 net/ipv4/ipmr.c 	rtm = nlmsg_data(nlh);
nlh              2357 net/ipv4/ipmr.c 	nlmsg_end(skb, nlh);
nlh              2361 net/ipv4/ipmr.c 	nlmsg_cancel(skb, nlh);
nlh              2438 net/ipv4/ipmr.c 	struct nlmsghdr *nlh;
nlh              2452 net/ipv4/ipmr.c 	nlh = nlmsg_put(skb, 0, 0, RTM_NEWCACHEREPORT,
nlh              2454 net/ipv4/ipmr.c 	if (!nlh)
nlh              2456 net/ipv4/ipmr.c 	rtgenm = nlmsg_data(nlh);
nlh              2471 net/ipv4/ipmr.c 	nlmsg_end(skb, nlh);
nlh              2477 net/ipv4/ipmr.c 	nlmsg_cancel(skb, nlh);
nlh              2484 net/ipv4/ipmr.c 				       const struct nlmsghdr *nlh,
nlh              2491 net/ipv4/ipmr.c 	if (nlh->nlmsg_len < nlmsg_msg_size(sizeof(*rtm))) {
nlh              2497 net/ipv4/ipmr.c 		return nlmsg_parse_deprecated(nlh, sizeof(*rtm), tb, RTA_MAX,
nlh              2500 net/ipv4/ipmr.c 	rtm = nlmsg_data(nlh);
nlh              2509 net/ipv4/ipmr.c 	err = nlmsg_parse_deprecated_strict(nlh, sizeof(*rtm), tb, RTA_MAX,
nlh              2538 net/ipv4/ipmr.c static int ipmr_rtm_getroute(struct sk_buff *in_skb, struct nlmsghdr *nlh,
nlh              2550 net/ipv4/ipmr.c 	err = ipmr_rtm_valid_getroute_req(in_skb, nlh, tb, extack);
nlh              2580 net/ipv4/ipmr.c 			       nlh->nlmsg_seq, cache,
nlh              2601 net/ipv4/ipmr.c 		err = ip_valid_fib_dump_req(sock_net(skb->sk), cb->nlh,
nlh              2612 net/ipv4/ipmr.c 			if (rtnl_msg_family(cb->nlh) != RTNL_FAMILY_IPMR)
nlh              2661 net/ipv4/ipmr.c static int rtm_to_ipmr_mfcc(struct net *net, struct nlmsghdr *nlh,
nlh              2673 net/ipv4/ipmr.c 	ret = nlmsg_validate_deprecated(nlh, sizeof(*rtm), RTA_MAX,
nlh              2677 net/ipv4/ipmr.c 	rtm = nlmsg_data(nlh);
nlh              2689 net/ipv4/ipmr.c 	nlmsg_for_each_attr(attr, nlh, sizeof(struct rtmsg), rem) {
nlh              2733 net/ipv4/ipmr.c static int ipmr_rtm_route(struct sk_buff *skb, struct nlmsghdr *nlh,
nlh              2743 net/ipv4/ipmr.c 	ret = rtm_to_ipmr_mfcc(net, nlh, &mfcc, &mrtsock, &tbl, extack);
nlh              2748 net/ipv4/ipmr.c 	if (nlh->nlmsg_type == RTM_NEWROUTE)
nlh              2806 net/ipv4/ipmr.c static int ipmr_valid_dumplink(const struct nlmsghdr *nlh,
nlh              2811 net/ipv4/ipmr.c 	if (nlh->nlmsg_len < nlmsg_msg_size(sizeof(*ifm))) {
nlh              2816 net/ipv4/ipmr.c 	if (nlmsg_attrlen(nlh, sizeof(*ifm))) {
nlh              2821 net/ipv4/ipmr.c 	ifm = nlmsg_data(nlh);
nlh              2834 net/ipv4/ipmr.c 	struct nlmsghdr *nlh = NULL;
nlh              2840 net/ipv4/ipmr.c 		int err = ipmr_valid_dumplink(cb->nlh, cb->extack);
nlh              2856 net/ipv4/ipmr.c 		nlh = nlmsg_put(skb, NETLINK_CB(cb->skb).portid,
nlh              2857 net/ipv4/ipmr.c 				cb->nlh->nlmsg_seq, RTM_NEWLINK,
nlh              2859 net/ipv4/ipmr.c 		if (!nlh)
nlh              2862 net/ipv4/ipmr.c 		hdr = nlmsg_data(nlh);
nlh              2868 net/ipv4/ipmr.c 			nlmsg_cancel(skb, nlh);
nlh              2873 net/ipv4/ipmr.c 			nlmsg_cancel(skb, nlh);
nlh              2880 net/ipv4/ipmr.c 			nlmsg_end(skb, nlh);
nlh              2889 net/ipv4/ipmr.c 				nlmsg_end(skb, nlh);
nlh              2899 net/ipv4/ipmr.c 		nlmsg_end(skb, nlh);
nlh               312 net/ipv4/ipmr_base.c 			   cb->nlh->nlmsg_seq, mfc, RTM_NEWROUTE, flags);
nlh               328 net/ipv4/ipmr_base.c 			   cb->nlh->nlmsg_seq, mfc, RTM_NEWROUTE, flags);
nlh               220 net/ipv4/nexthop.c 	struct nlmsghdr *nlh;
nlh               224 net/ipv4/nexthop.c 	nlh = nlmsg_put(skb, portid, seq, event, sizeof(*nhm), nlflags);
nlh               225 net/ipv4/nexthop.c 	if (!nlh)
nlh               228 net/ipv4/nexthop.c 	nhm = nlmsg_data(nlh);
nlh               283 net/ipv4/nexthop.c 	nlmsg_end(skb, nlh);
nlh               287 net/ipv4/nexthop.c 	nlmsg_cancel(skb, nlh);
nlh               347 net/ipv4/nexthop.c 	unsigned int nlflags = info->nlh ? info->nlh->nlmsg_flags : 0;
nlh               348 net/ipv4/nexthop.c 	u32 seq = info->nlh ? info->nlh->nlmsg_seq : 0;
nlh               365 net/ipv4/nexthop.c 		    info->nlh, gfp_any());
nlh              1327 net/ipv4/nexthop.c 			    struct nlmsghdr *nlh, struct nh_config *cfg,
nlh              1330 net/ipv4/nexthop.c 	struct nhmsg *nhm = nlmsg_data(nlh);
nlh              1334 net/ipv4/nexthop.c 	err = nlmsg_parse(nlh, sizeof(*nhm), tb, NHA_MAX, rtm_nh_policy,
nlh              1368 net/ipv4/nexthop.c 	cfg->nlflags = nlh->nlmsg_flags;
nlh              1370 net/ipv4/nexthop.c 	cfg->nlinfo.nlh = nlh;
nlh              1493 net/ipv4/nexthop.c static int rtm_new_nexthop(struct sk_buff *skb, struct nlmsghdr *nlh,
nlh              1501 net/ipv4/nexthop.c 	err = rtm_to_nh_config(net, skb, nlh, &cfg, extack);
nlh              1511 net/ipv4/nexthop.c static int nh_valid_get_del_req(struct nlmsghdr *nlh, u32 *id,
nlh              1514 net/ipv4/nexthop.c 	struct nhmsg *nhm = nlmsg_data(nlh);
nlh              1518 net/ipv4/nexthop.c 	err = nlmsg_parse(nlh, sizeof(*nhm), tb, NHA_MAX, rtm_nh_policy,
nlh              1557 net/ipv4/nexthop.c static int rtm_del_nexthop(struct sk_buff *skb, struct nlmsghdr *nlh,
nlh              1562 net/ipv4/nexthop.c 		.nlh = nlh,
nlh              1570 net/ipv4/nexthop.c 	err = nh_valid_get_del_req(nlh, &id, extack);
nlh              1584 net/ipv4/nexthop.c static int rtm_get_nexthop(struct sk_buff *in_skb, struct nlmsghdr *nlh,
nlh              1593 net/ipv4/nexthop.c 	err = nh_valid_get_del_req(nlh, &id, extack);
nlh              1608 net/ipv4/nexthop.c 			   nlh->nlmsg_seq, 0);
nlh              1659 net/ipv4/nexthop.c static int nh_valid_dump_req(const struct nlmsghdr *nlh, int *dev_idx,
nlh              1669 net/ipv4/nexthop.c 	err = nlmsg_parse(nlh, sizeof(*nhm), tb, NHA_MAX, rtm_nh_policy,
nlh              1704 net/ipv4/nexthop.c 	nhm = nlmsg_data(nlh);
nlh              1716 net/ipv4/nexthop.c 	struct nhmsg *nhm = nlmsg_data(cb->nlh);
nlh              1725 net/ipv4/nexthop.c 	err = nh_valid_dump_req(cb->nlh, &dev_filter_idx, &master_idx,
nlh              1744 net/ipv4/nexthop.c 				   cb->nlh->nlmsg_seq, NLM_F_MULTI);
nlh                91 net/ipv4/raw_diag.c 			     const struct nlmsghdr *nlh,
nlh               115 net/ipv4/raw_diag.c 				nlh->nlmsg_seq, 0, nlh,
nlh               143 net/ipv4/raw_diag.c 				 cb->nlh->nlmsg_seq, NLM_F_MULTI,
nlh               144 net/ipv4/raw_diag.c 				 cb->nlh, net_admin);
nlh              2742 net/ipv4/route.c 	struct nlmsghdr *nlh;
nlh              2747 net/ipv4/route.c 	nlh = nlmsg_put(skb, portid, seq, RTM_NEWROUTE, sizeof(*r), flags);
nlh              2748 net/ipv4/route.c 	if (!nlh)
nlh              2751 net/ipv4/route.c 	r = nlmsg_data(nlh);
nlh              2862 net/ipv4/route.c 	nlmsg_end(skb, nlh);
nlh              2866 net/ipv4/route.c 	nlmsg_cancel(skb, nlh);
nlh              2904 net/ipv4/route.c 					   cb->nlh->nlmsg_seq, flags);
nlh              3007 net/ipv4/route.c 				       const struct nlmsghdr *nlh,
nlh              3014 net/ipv4/route.c 	if (nlh->nlmsg_len < nlmsg_msg_size(sizeof(*rtm))) {
nlh              3021 net/ipv4/route.c 		return nlmsg_parse_deprecated(nlh, sizeof(*rtm), tb, RTA_MAX,
nlh              3024 net/ipv4/route.c 	rtm = nlmsg_data(nlh);
nlh              3040 net/ipv4/route.c 	err = nlmsg_parse_deprecated_strict(nlh, sizeof(*rtm), tb, RTA_MAX,
nlh              3075 net/ipv4/route.c static int inet_rtm_getroute(struct sk_buff *in_skb, struct nlmsghdr *nlh,
nlh              3095 net/ipv4/route.c 	err = inet_rtm_valid_getroute_req(in_skb, nlh, tb, extack);
nlh              3099 net/ipv4/route.c 	rtm = nlmsg_data(nlh);
nlh              3192 net/ipv4/route.c 				    nlh->nlmsg_seq, RTM_NEWROUTE, table_id,
nlh              3198 net/ipv4/route.c 				   nlh->nlmsg_seq, 0);
nlh               187 net/ipv4/tcp_diag.c static int tcp_diag_dump_one(struct sk_buff *in_skb, const struct nlmsghdr *nlh,
nlh               190 net/ipv4/tcp_diag.c 	return inet_diag_dump_one_icsk(&tcp_hashinfo, in_skb, nlh, req);
nlh               722 net/ipv4/tcp_metrics.c 	hdr = genlmsg_put(skb, NETLINK_CB(cb->skb).portid, cb->nlh->nlmsg_seq,
nlh                27 net/ipv4/udp_diag.c 			cb->nlh->nlmsg_seq, NLM_F_MULTI, cb->nlh, net_admin);
nlh                31 net/ipv4/udp_diag.c 			const struct nlmsghdr *nlh,
nlh                77 net/ipv4/udp_diag.c 			   nlh->nlmsg_seq, 0, nlh,
nlh               155 net/ipv4/udp_diag.c static int udp_diag_dump_one(struct sk_buff *in_skb, const struct nlmsghdr *nlh,
nlh               158 net/ipv4/udp_diag.c 	return udp_dump_one(&udp_table, in_skb, nlh, req);
nlh               259 net/ipv4/udp_diag.c static int udplite_diag_dump_one(struct sk_buff *in_skb, const struct nlmsghdr *nlh,
nlh               262 net/ipv4/udp_diag.c 	return udp_dump_one(&udplite_table, in_skb, nlh, req);
nlh               518 net/ipv6/addrconf.c 	struct nlmsghdr  *nlh;
nlh               522 net/ipv6/addrconf.c 	nlh = nlmsg_put(skb, portid, seq, event, sizeof(struct netconfmsg),
nlh               524 net/ipv6/addrconf.c 	if (!nlh)
nlh               530 net/ipv6/addrconf.c 	ncm = nlmsg_data(nlh);
nlh               558 net/ipv6/addrconf.c 	nlmsg_end(skb, nlh);
nlh               562 net/ipv6/addrconf.c 	nlmsg_cancel(skb, nlh);
nlh               598 net/ipv6/addrconf.c 				       const struct nlmsghdr *nlh,
nlh               604 net/ipv6/addrconf.c 	if (nlh->nlmsg_len < nlmsg_msg_size(sizeof(struct netconfmsg))) {
nlh               610 net/ipv6/addrconf.c 		return nlmsg_parse_deprecated(nlh, sizeof(struct netconfmsg),
nlh               614 net/ipv6/addrconf.c 	err = nlmsg_parse_deprecated_strict(nlh, sizeof(struct netconfmsg),
nlh               637 net/ipv6/addrconf.c 				     struct nlmsghdr *nlh,
nlh               649 net/ipv6/addrconf.c 	err = inet6_netconf_valid_get_req(in_skb, nlh, tb, extack);
nlh               683 net/ipv6/addrconf.c 					 nlh->nlmsg_seq, RTM_NEWNETCONF, 0,
nlh               703 net/ipv6/addrconf.c 	const struct nlmsghdr *nlh = cb->nlh;
nlh               715 net/ipv6/addrconf.c 		if (nlh->nlmsg_len < nlmsg_msg_size(sizeof(*ncm))) {
nlh               720 net/ipv6/addrconf.c 		if (nlmsg_attrlen(nlh, sizeof(*ncm))) {
nlh               745 net/ipv6/addrconf.c 						       nlh->nlmsg_seq,
nlh               762 net/ipv6/addrconf.c 					       nlh->nlmsg_seq,
nlh               773 net/ipv6/addrconf.c 					       nlh->nlmsg_seq,
nlh              4569 net/ipv6/addrconf.c inet6_rtm_deladdr(struct sk_buff *skb, struct nlmsghdr *nlh,
nlh              4579 net/ipv6/addrconf.c 	err = nlmsg_parse_deprecated(nlh, sizeof(*ifm), tb, IFA_MAX,
nlh              4584 net/ipv6/addrconf.c 	ifm = nlmsg_data(nlh);
nlh              4753 net/ipv6/addrconf.c inet6_rtm_newaddr(struct sk_buff *skb, struct nlmsghdr *nlh,
nlh              4766 net/ipv6/addrconf.c 	err = nlmsg_parse_deprecated(nlh, sizeof(*ifm), tb, IFA_MAX,
nlh              4773 net/ipv6/addrconf.c 	ifm = nlmsg_data(nlh);
nlh              4830 net/ipv6/addrconf.c 	if (nlh->nlmsg_flags & NLM_F_EXCL ||
nlh              4831 net/ipv6/addrconf.c 	    !(nlh->nlmsg_flags & NLM_F_REPLACE))
nlh              4841 net/ipv6/addrconf.c static void put_ifaddrmsg(struct nlmsghdr *nlh, u8 prefixlen, u32 flags,
nlh              4846 net/ipv6/addrconf.c 	ifm = nlmsg_data(nlh);
nlh              4908 net/ipv6/addrconf.c 	struct nlmsghdr  *nlh;
nlh              4911 net/ipv6/addrconf.c 	nlh = nlmsg_put(skb, args->portid, args->seq, args->event,
nlh              4913 net/ipv6/addrconf.c 	if (!nlh)
nlh              4916 net/ipv6/addrconf.c 	put_ifaddrmsg(nlh, ifa->prefix_len, ifa->flags, rt_scope(ifa->scope),
nlh              4963 net/ipv6/addrconf.c 	nlmsg_end(skb, nlh);
nlh              4967 net/ipv6/addrconf.c 	nlmsg_cancel(skb, nlh);
nlh              4974 net/ipv6/addrconf.c 	struct nlmsghdr  *nlh;
nlh              4981 net/ipv6/addrconf.c 	nlh = nlmsg_put(skb, args->portid, args->seq, args->event,
nlh              4983 net/ipv6/addrconf.c 	if (!nlh)
nlh              4990 net/ipv6/addrconf.c 	put_ifaddrmsg(nlh, 128, IFA_F_PERMANENT, scope, ifindex);
nlh              4994 net/ipv6/addrconf.c 		nlmsg_cancel(skb, nlh);
nlh              4998 net/ipv6/addrconf.c 	nlmsg_end(skb, nlh);
nlh              5007 net/ipv6/addrconf.c 	struct nlmsghdr  *nlh;
nlh              5013 net/ipv6/addrconf.c 	nlh = nlmsg_put(skb, args->portid, args->seq, args->event,
nlh              5015 net/ipv6/addrconf.c 	if (!nlh)
nlh              5022 net/ipv6/addrconf.c 	put_ifaddrmsg(nlh, 128, IFA_F_PERMANENT, scope, ifindex);
nlh              5026 net/ipv6/addrconf.c 		nlmsg_cancel(skb, nlh);
nlh              5030 net/ipv6/addrconf.c 	nlmsg_end(skb, nlh);
nlh              5096 net/ipv6/addrconf.c static int inet6_valid_dump_ifaddr_req(const struct nlmsghdr *nlh,
nlh              5106 net/ipv6/addrconf.c 	if (nlh->nlmsg_len < nlmsg_msg_size(sizeof(*ifm))) {
nlh              5111 net/ipv6/addrconf.c 	ifm = nlmsg_data(nlh);
nlh              5123 net/ipv6/addrconf.c 	err = nlmsg_parse_deprecated_strict(nlh, sizeof(*ifm), tb, IFA_MAX,
nlh              5155 net/ipv6/addrconf.c 	const struct nlmsghdr *nlh = cb->nlh;
nlh              5158 net/ipv6/addrconf.c 		.seq = cb->nlh->nlmsg_seq,
nlh              5177 net/ipv6/addrconf.c 		err = inet6_valid_dump_ifaddr_req(nlh, &fillargs, &tgt_net,
nlh              5255 net/ipv6/addrconf.c 				       const struct nlmsghdr *nlh,
nlh              5262 net/ipv6/addrconf.c 	if (nlh->nlmsg_len < nlmsg_msg_size(sizeof(*ifm))) {
nlh              5268 net/ipv6/addrconf.c 		return nlmsg_parse_deprecated(nlh, sizeof(*ifm), tb, IFA_MAX,
nlh              5271 net/ipv6/addrconf.c 	ifm = nlmsg_data(nlh);
nlh              5277 net/ipv6/addrconf.c 	err = nlmsg_parse_deprecated_strict(nlh, sizeof(*ifm), tb, IFA_MAX,
nlh              5300 net/ipv6/addrconf.c static int inet6_rtm_getaddr(struct sk_buff *in_skb, struct nlmsghdr *nlh,
nlh              5306 net/ipv6/addrconf.c 		.seq = nlh->nlmsg_seq,
nlh              5320 net/ipv6/addrconf.c 	err = inet6_rtm_valid_getaddr_req(in_skb, nlh, tb, extack);
nlh              5337 net/ipv6/addrconf.c 	ifm = nlmsg_data(nlh);
nlh              5781 net/ipv6/addrconf.c 	struct nlmsghdr *nlh;
nlh              5784 net/ipv6/addrconf.c 	nlh = nlmsg_put(skb, portid, seq, event, sizeof(*hdr), flags);
nlh              5785 net/ipv6/addrconf.c 	if (!nlh)
nlh              5788 net/ipv6/addrconf.c 	hdr = nlmsg_data(nlh);
nlh              5813 net/ipv6/addrconf.c 	nlmsg_end(skb, nlh);
nlh              5817 net/ipv6/addrconf.c 	nlmsg_cancel(skb, nlh);
nlh              5821 net/ipv6/addrconf.c static int inet6_valid_dump_ifinfo(const struct nlmsghdr *nlh,
nlh              5826 net/ipv6/addrconf.c 	if (nlh->nlmsg_len < nlmsg_msg_size(sizeof(*ifm))) {
nlh              5831 net/ipv6/addrconf.c 	if (nlmsg_attrlen(nlh, sizeof(*ifm))) {
nlh              5836 net/ipv6/addrconf.c 	ifm = nlmsg_data(nlh);
nlh              5859 net/ipv6/addrconf.c 		int err = inet6_valid_dump_ifinfo(cb->nlh, cb->extack);
nlh              5880 net/ipv6/addrconf.c 					      cb->nlh->nlmsg_seq,
nlh              5931 net/ipv6/addrconf.c 	struct nlmsghdr *nlh;
nlh              5934 net/ipv6/addrconf.c 	nlh = nlmsg_put(skb, portid, seq, event, sizeof(*pmsg), flags);
nlh              5935 net/ipv6/addrconf.c 	if (!nlh)
nlh              5938 net/ipv6/addrconf.c 	pmsg = nlmsg_data(nlh);
nlh              5958 net/ipv6/addrconf.c 	nlmsg_end(skb, nlh);
nlh              5962 net/ipv6/addrconf.c 	nlmsg_cancel(skb, nlh);
nlh               376 net/ipv6/addrlabel.c static int ip6addrlbl_newdel(struct sk_buff *skb, struct nlmsghdr *nlh,
nlh               386 net/ipv6/addrlabel.c 	err = nlmsg_parse_deprecated(nlh, sizeof(*ifal), tb, IFAL_MAX,
nlh               391 net/ipv6/addrlabel.c 	ifal = nlmsg_data(nlh);
nlh               407 net/ipv6/addrlabel.c 	switch (nlh->nlmsg_type) {
nlh               415 net/ipv6/addrlabel.c 				     nlh->nlmsg_flags & NLM_F_REPLACE);
nlh               427 net/ipv6/addrlabel.c static void ip6addrlbl_putmsg(struct nlmsghdr *nlh,
nlh               430 net/ipv6/addrlabel.c 	struct ifaddrlblmsg *ifal = nlmsg_data(nlh);
nlh               444 net/ipv6/addrlabel.c 	struct nlmsghdr *nlh = nlmsg_put(skb, portid, seq, event,
nlh               446 net/ipv6/addrlabel.c 	if (!nlh)
nlh               449 net/ipv6/addrlabel.c 	ip6addrlbl_putmsg(nlh, p->prefixlen, p->ifindex, lseq);
nlh               453 net/ipv6/addrlabel.c 		nlmsg_cancel(skb, nlh);
nlh               457 net/ipv6/addrlabel.c 	nlmsg_end(skb, nlh);
nlh               461 net/ipv6/addrlabel.c static int ip6addrlbl_valid_dump_req(const struct nlmsghdr *nlh,
nlh               466 net/ipv6/addrlabel.c 	if (nlh->nlmsg_len < nlmsg_msg_size(sizeof(*ifal))) {
nlh               471 net/ipv6/addrlabel.c 	ifal = nlmsg_data(nlh);
nlh               478 net/ipv6/addrlabel.c 	if (nlmsg_attrlen(nlh, sizeof(*ifal))) {
nlh               488 net/ipv6/addrlabel.c 	const struct nlmsghdr *nlh = cb->nlh;
nlh               495 net/ipv6/addrlabel.c 		err = ip6addrlbl_valid_dump_req(nlh, cb->extack);
nlh               506 net/ipv6/addrlabel.c 					      nlh->nlmsg_seq,
nlh               527 net/ipv6/addrlabel.c 				    const struct nlmsghdr *nlh,
nlh               534 net/ipv6/addrlabel.c 	if (nlh->nlmsg_len < nlmsg_msg_size(sizeof(*ifal))) {
nlh               540 net/ipv6/addrlabel.c 		return nlmsg_parse_deprecated(nlh, sizeof(*ifal), tb,
nlh               543 net/ipv6/addrlabel.c 	ifal = nlmsg_data(nlh);
nlh               549 net/ipv6/addrlabel.c 	err = nlmsg_parse_deprecated_strict(nlh, sizeof(*ifal), tb, IFAL_MAX,
nlh               570 net/ipv6/addrlabel.c static int ip6addrlbl_get(struct sk_buff *in_skb, struct nlmsghdr *nlh,
nlh               582 net/ipv6/addrlabel.c 	err = ip6addrlbl_valid_get_req(in_skb, nlh, tb, extack);
nlh               586 net/ipv6/addrlabel.c 	ifal = nlmsg_data(nlh);
nlh               612 net/ipv6/addrlabel.c 				      nlh->nlmsg_seq,
nlh               582 net/ipv6/ila/ila_xlat.c 					     cb->nlh->nlmsg_seq, NLM_F_MULTI,
nlh               567 net/ipv6/ip6_fib.c 	const struct nlmsghdr *nlh = cb->nlh;
nlh               579 net/ipv6/ip6_fib.c 		err = ip_valid_fib_dump_req(net, nlh, &arg.filter, cb);
nlh               582 net/ipv6/ip6_fib.c 	} else if (nlmsg_len(nlh) >= sizeof(struct rtmsg)) {
nlh               583 net/ipv6/ip6_fib.c 		struct rtmsg *rtm = nlmsg_data(nlh);
nlh               616 net/ipv6/ip6_fib.c 			if (rtnl_msg_family(cb->nlh) != PF_INET6)
nlh              1018 net/ipv6/ip6_fib.c 	int replace = (info->nlh &&
nlh              1019 net/ipv6/ip6_fib.c 		       (info->nlh->nlmsg_flags & NLM_F_REPLACE));
nlh              1020 net/ipv6/ip6_fib.c 	int add = (!info->nlh ||
nlh              1021 net/ipv6/ip6_fib.c 		   (info->nlh->nlmsg_flags & NLM_F_CREATE));
nlh              1027 net/ipv6/ip6_fib.c 	if (info->nlh && (info->nlh->nlmsg_flags & NLM_F_APPEND))
nlh              1043 net/ipv6/ip6_fib.c 			if (info->nlh &&
nlh              1044 net/ipv6/ip6_fib.c 			    (info->nlh->nlmsg_flags & NLM_F_EXCL))
nlh              1313 net/ipv6/ip6_fib.c 	if (info->nlh) {
nlh              1314 net/ipv6/ip6_fib.c 		if (!(info->nlh->nlmsg_flags & NLM_F_CREATE))
nlh              1316 net/ipv6/ip6_fib.c 		if (info->nlh->nlmsg_flags & NLM_F_REPLACE)
nlh               775 net/ipv6/ip6mr.c 			struct nlmsghdr *nlh = skb_pull(skb,
nlh               777 net/ipv6/ip6mr.c 			nlh->nlmsg_type = NLMSG_ERROR;
nlh               778 net/ipv6/ip6mr.c 			nlh->nlmsg_len = nlmsg_msg_size(sizeof(struct nlmsgerr));
nlh               779 net/ipv6/ip6mr.c 			skb_trim(skb, nlh->nlmsg_len);
nlh               780 net/ipv6/ip6mr.c 			((struct nlmsgerr *)nlmsg_data(nlh))->error = -ETIMEDOUT;
nlh              1011 net/ipv6/ip6mr.c 			struct nlmsghdr *nlh = skb_pull(skb,
nlh              1015 net/ipv6/ip6mr.c 					   nlmsg_data(nlh)) > 0) {
nlh              1016 net/ipv6/ip6mr.c 				nlh->nlmsg_len = skb_tail_pointer(skb) - (u8 *)nlh;
nlh              1018 net/ipv6/ip6mr.c 				nlh->nlmsg_type = NLMSG_ERROR;
nlh              1019 net/ipv6/ip6mr.c 				nlh->nlmsg_len = nlmsg_msg_size(sizeof(struct nlmsgerr));
nlh              1020 net/ipv6/ip6mr.c 				skb_trim(skb, nlh->nlmsg_len);
nlh              1021 net/ipv6/ip6mr.c 				((struct nlmsgerr *)nlmsg_data(nlh))->error = -EMSGSIZE;
nlh              2324 net/ipv6/ip6mr.c 	struct nlmsghdr *nlh;
nlh              2328 net/ipv6/ip6mr.c 	nlh = nlmsg_put(skb, portid, seq, cmd, sizeof(*rtm), flags);
nlh              2329 net/ipv6/ip6mr.c 	if (!nlh)
nlh              2332 net/ipv6/ip6mr.c 	rtm = nlmsg_data(nlh);
nlh              2356 net/ipv6/ip6mr.c 	nlmsg_end(skb, nlh);
nlh              2360 net/ipv6/ip6mr.c 	nlmsg_cancel(skb, nlh);
nlh              2438 net/ipv6/ip6mr.c 	struct nlmsghdr *nlh;
nlh              2452 net/ipv6/ip6mr.c 	nlh = nlmsg_put(skb, 0, 0, RTM_NEWCACHEREPORT,
nlh              2454 net/ipv6/ip6mr.c 	if (!nlh)
nlh              2456 net/ipv6/ip6mr.c 	rtgenm = nlmsg_data(nlh);
nlh              2471 net/ipv6/ip6mr.c 	nlmsg_end(skb, nlh);
nlh              2477 net/ipv6/ip6mr.c 	nlmsg_cancel(skb, nlh);
nlh              2485 net/ipv6/ip6mr.c 	const struct nlmsghdr *nlh = cb->nlh;
nlh              2490 net/ipv6/ip6mr.c 		err = ip_valid_fib_dump_req(sock_net(skb->sk), nlh,
nlh              2501 net/ipv6/ip6mr.c 			if (rtnl_msg_family(cb->nlh) != RTNL_FAMILY_IP6MR)
nlh              1125 net/ipv6/ndisc.c 	struct nlmsghdr *nlh;
nlh              1139 net/ipv6/ndisc.c 	nlh = nlmsg_put(skb, 0, 0, RTM_NEWNDUSEROPT, base_size, 0);
nlh              1140 net/ipv6/ndisc.c 	if (!nlh) {
nlh              1144 net/ipv6/ndisc.c 	ndmsg = nlmsg_data(nlh);
nlh              1155 net/ipv6/ndisc.c 	nlmsg_end(skb, nlh);
nlh              3630 net/ipv6/route.c 	if (cfg->fc_nlinfo.nlh &&
nlh              3631 net/ipv6/route.c 	    !(cfg->fc_nlinfo.nlh->nlmsg_flags & NLM_F_CREATE)) {
nlh              3794 net/ipv6/route.c 			u32 seq = info->nlh ? info->nlh->nlmsg_seq : 0;
nlh              3828 net/ipv6/route.c 			    info->nlh, gfp_any());
nlh              4174 net/ipv6/route.c 		.fc_nlinfo.nlh = NULL,
nlh              4238 net/ipv6/route.c 		.fc_nlinfo.nlh = NULL,
nlh              4866 net/ipv6/route.c static int rtm_to_fib6_config(struct sk_buff *skb, struct nlmsghdr *nlh,
nlh              4875 net/ipv6/route.c 	err = nlmsg_parse_deprecated(nlh, sizeof(*rtm), tb, RTA_MAX,
nlh              4881 net/ipv6/route.c 	rtm = nlmsg_data(nlh);
nlh              4892 net/ipv6/route.c 		.fc_nlinfo.nlh = nlh,
nlh              5074 net/ipv6/route.c 	int replace = (cfg->fc_nlinfo.nlh &&
nlh              5075 net/ipv6/route.c 		       (cfg->fc_nlinfo.nlh->nlmsg_flags & NLM_F_REPLACE));
nlh              5079 net/ipv6/route.c 	if (info->nlh && info->nlh->nlmsg_flags & NLM_F_APPEND)
nlh              5183 net/ipv6/route.c 		cfg->fc_nlinfo.nlh->nlmsg_flags &= ~(NLM_F_EXCL |
nlh              5185 net/ipv6/route.c 		cfg->fc_nlinfo.nlh->nlmsg_flags |= NLM_F_CREATE;
nlh              5266 net/ipv6/route.c static int inet6_rtm_delroute(struct sk_buff *skb, struct nlmsghdr *nlh,
nlh              5272 net/ipv6/route.c 	err = rtm_to_fib6_config(skb, nlh, &cfg, extack);
nlh              5290 net/ipv6/route.c static int inet6_rtm_newroute(struct sk_buff *skb, struct nlmsghdr *nlh,
nlh              5296 net/ipv6/route.c 	err = rtm_to_fib6_config(skb, nlh, &cfg, extack);
nlh              5406 net/ipv6/route.c 	struct nlmsghdr *nlh;
nlh              5410 net/ipv6/route.c 	nlh = nlmsg_put(skb, portid, seq, type, sizeof(*rtm), flags);
nlh              5411 net/ipv6/route.c 	if (!nlh)
nlh              5424 net/ipv6/route.c 	rtm = nlmsg_data(nlh);
nlh              5557 net/ipv6/route.c 	nlmsg_end(skb, nlh);
nlh              5561 net/ipv6/route.c 	nlmsg_cancel(skb, nlh);
nlh              5649 net/ipv6/route.c 					    dump->cb->nlh->nlmsg_seq, w->flags);
nlh              5697 net/ipv6/route.c 					  arg->cb->nlh->nlmsg_seq, flags)) {
nlh              5730 net/ipv6/route.c 					const struct nlmsghdr *nlh,
nlh              5737 net/ipv6/route.c 	if (nlh->nlmsg_len < nlmsg_msg_size(sizeof(*rtm))) {
nlh              5744 net/ipv6/route.c 		return nlmsg_parse_deprecated(nlh, sizeof(*rtm), tb, RTA_MAX,
nlh              5747 net/ipv6/route.c 	rtm = nlmsg_data(nlh);
nlh              5761 net/ipv6/route.c 	err = nlmsg_parse_deprecated_strict(nlh, sizeof(*rtm), tb, RTA_MAX,
nlh              5796 net/ipv6/route.c static int inet6_rtm_getroute(struct sk_buff *in_skb, struct nlmsghdr *nlh,
nlh              5810 net/ipv6/route.c 	err = inet6_rtm_valid_getroute_req(in_skb, nlh, tb, extack);
nlh              5815 net/ipv6/route.c 	rtm = nlmsg_data(nlh);
nlh              5919 net/ipv6/route.c 					    nlh->nlmsg_seq, 0);
nlh              5924 net/ipv6/route.c 					    nlh->nlmsg_seq, 0);
nlh              5949 net/ipv6/route.c 	seq = info->nlh ? info->nlh->nlmsg_seq : 0;
nlh              5964 net/ipv6/route.c 		    info->nlh, gfp_any());
nlh              5974 net/ipv6/route.c 	u32 seq = info->nlh ? info->nlh->nlmsg_seq : 0;
nlh              5996 net/ipv6/route.c 		    info->nlh, gfp_any());
nlh               318 net/ipv6/seg6.c 						   cb->nlh->nlmsg_seq,
nlh               492 net/l2tp/l2tp_netlink.c 					cb->nlh->nlmsg_seq, NLM_F_MULTI,
nlh               843 net/l2tp/l2tp_netlink.c 					 cb->nlh->nlmsg_seq, NLM_F_MULTI,
nlh                74 net/mpls/af_mpls.c 		       struct nlmsghdr *nlh, struct net *net, u32 portid,
nlh               540 net/mpls/af_mpls.c 	struct nlmsghdr *nlh = info ? info->nlh : NULL;
nlh               547 net/mpls/af_mpls.c 		rtmsg_lfib(event, index, rt, nlh, net, portid, nlm_flags);
nlh              1135 net/mpls/af_mpls.c 	struct nlmsghdr  *nlh;
nlh              1139 net/mpls/af_mpls.c 	nlh = nlmsg_put(skb, portid, seq, event, sizeof(struct netconfmsg),
nlh              1141 net/mpls/af_mpls.c 	if (!nlh)
nlh              1147 net/mpls/af_mpls.c 	ncm = nlmsg_data(nlh);
nlh              1158 net/mpls/af_mpls.c 	nlmsg_end(skb, nlh);
nlh              1162 net/mpls/af_mpls.c 	nlmsg_cancel(skb, nlh);
nlh              1211 net/mpls/af_mpls.c 				      const struct nlmsghdr *nlh,
nlh              1217 net/mpls/af_mpls.c 	if (nlh->nlmsg_len < nlmsg_msg_size(sizeof(struct netconfmsg))) {
nlh              1224 net/mpls/af_mpls.c 		return nlmsg_parse_deprecated(nlh, sizeof(struct netconfmsg),
nlh              1228 net/mpls/af_mpls.c 	err = nlmsg_parse_deprecated_strict(nlh, sizeof(struct netconfmsg),
nlh              1251 net/mpls/af_mpls.c 				    struct nlmsghdr *nlh,
nlh              1262 net/mpls/af_mpls.c 	err = mpls_netconf_valid_get_req(in_skb, nlh, tb, extack);
nlh              1286 net/mpls/af_mpls.c 					nlh->nlmsg_seq, RTM_NEWNETCONF, 0,
nlh              1302 net/mpls/af_mpls.c 	const struct nlmsghdr *nlh = cb->nlh;
nlh              1314 net/mpls/af_mpls.c 		if (nlh->nlmsg_len < nlmsg_msg_size(sizeof(*ncm))) {
nlh              1319 net/mpls/af_mpls.c 		if (nlmsg_attrlen(nlh, sizeof(*ncm))) {
nlh              1341 net/mpls/af_mpls.c 						      nlh->nlmsg_seq,
nlh              1782 net/mpls/af_mpls.c 			       struct nlmsghdr *nlh,
nlh              1791 net/mpls/af_mpls.c 	err = nlmsg_parse_deprecated(nlh, sizeof(*rtm), tb, RTA_MAX,
nlh              1797 net/mpls/af_mpls.c 	rtm = nlmsg_data(nlh);
nlh              1845 net/mpls/af_mpls.c 	cfg->rc_nlflags		= nlh->nlmsg_flags;
nlh              1847 net/mpls/af_mpls.c 	cfg->rc_nlinfo.nlh	= nlh;
nlh              1920 net/mpls/af_mpls.c static int mpls_rtm_delroute(struct sk_buff *skb, struct nlmsghdr *nlh,
nlh              1930 net/mpls/af_mpls.c 	err = rtm_to_route_config(skb, nlh, cfg, extack);
nlh              1942 net/mpls/af_mpls.c static int mpls_rtm_newroute(struct sk_buff *skb, struct nlmsghdr *nlh,
nlh              1952 net/mpls/af_mpls.c 	err = rtm_to_route_config(skb, nlh, cfg, extack);
nlh              1967 net/mpls/af_mpls.c 	struct nlmsghdr *nlh;
nlh              1970 net/mpls/af_mpls.c 	nlh = nlmsg_put(skb, portid, seq, event, sizeof(*rtm), flags);
nlh              1971 net/mpls/af_mpls.c 	if (nlh == NULL)
nlh              1974 net/mpls/af_mpls.c 	rtm = nlmsg_data(nlh);
nlh              2065 net/mpls/af_mpls.c 	nlmsg_end(skb, nlh);
nlh              2069 net/mpls/af_mpls.c 	nlmsg_cancel(skb, nlh);
nlh              2074 net/mpls/af_mpls.c static int mpls_valid_fib_dump_req(struct net *net, const struct nlmsghdr *nlh,
nlh              2078 net/mpls/af_mpls.c 	return ip_valid_fib_dump_req(net, nlh, filter, cb);
nlh              2081 net/mpls/af_mpls.c static int mpls_valid_fib_dump_req(struct net *net, const struct nlmsghdr *nlh,
nlh              2090 net/mpls/af_mpls.c 	if (nlh->nlmsg_len < nlmsg_msg_size(sizeof(*rtm))) {
nlh              2095 net/mpls/af_mpls.c 	rtm = nlmsg_data(nlh);
nlh              2109 net/mpls/af_mpls.c 	err = nlmsg_parse_deprecated_strict(nlh, sizeof(*rtm), tb, RTA_MAX,
nlh              2157 net/mpls/af_mpls.c 	const struct nlmsghdr *nlh = cb->nlh;
nlh              2170 net/mpls/af_mpls.c 		err = mpls_valid_fib_dump_req(net, nlh, &filter, cb);
nlh              2205 net/mpls/af_mpls.c 				    cb->nlh->nlmsg_seq, RTM_NEWROUTE,
nlh              2252 net/mpls/af_mpls.c 		       struct nlmsghdr *nlh, struct net *net, u32 portid,
nlh              2256 net/mpls/af_mpls.c 	u32 seq = nlh ? nlh->nlmsg_seq : 0;
nlh              2270 net/mpls/af_mpls.c 	rtnl_notify(skb, net, portid, RTNLGRP_MPLS_ROUTE, nlh, GFP_KERNEL);
nlh              2279 net/mpls/af_mpls.c 				   const struct nlmsghdr *nlh,
nlh              2286 net/mpls/af_mpls.c 	if (nlh->nlmsg_len < nlmsg_msg_size(sizeof(*rtm))) {
nlh              2293 net/mpls/af_mpls.c 		return nlmsg_parse_deprecated(nlh, sizeof(*rtm), tb, RTA_MAX,
nlh              2296 net/mpls/af_mpls.c 	rtm = nlmsg_data(nlh);
nlh              2309 net/mpls/af_mpls.c 	err = nlmsg_parse_deprecated_strict(nlh, sizeof(*rtm), tb, RTA_MAX,
nlh              2349 net/mpls/af_mpls.c 	struct nlmsghdr *nlh;
nlh              2452 net/mpls/af_mpls.c 	nlh = nlmsg_put(skb, portid, in_nlh->nlmsg_seq,
nlh              2454 net/mpls/af_mpls.c 	if (!nlh) {
nlh              2459 net/mpls/af_mpls.c 	r = nlmsg_data(nlh);
nlh              2485 net/mpls/af_mpls.c 	nlmsg_end(skb, nlh);
nlh              2492 net/mpls/af_mpls.c 	nlmsg_cancel(skb, nlh);
nlh               219 net/ncsi/ncsi-netlink.c 	rc = genlmsg_parse_deprecated(cb->nlh, &ncsi_genl_family, attrs, NCSI_ATTR_MAX,
nlh               242 net/ncsi/ncsi-netlink.c 	hdr = genlmsg_put(skb, NETLINK_CB(cb->skb).portid, cb->nlh->nlmsg_seq,
nlh               565 net/ncsi/ncsi-netlink.c 	struct nlmsghdr *nlh;
nlh               576 net/ncsi/ncsi-netlink.c 	nlh = nlmsg_put(skb, snd_portid, snd_seq,
nlh               578 net/ncsi/ncsi-netlink.c 	nle = (struct nlmsgerr *)nlmsg_data(nlh);
nlh               580 net/ncsi/ncsi-netlink.c 	memcpy(&nle->msg, nlhdr, sizeof(*nlh));
nlh               582 net/ncsi/ncsi-netlink.c 	nlmsg_end(skb, nlh);
nlh               803 net/netfilter/ipset/ip_set_core.c flag_exist(const struct nlmsghdr *nlh)
nlh               805 net/netfilter/ipset/ip_set_core.c 	return nlh->nlmsg_flags & NLM_F_EXCL ? 0 : IPSET_FLAG_EXIST;
nlh               812 net/netfilter/ipset/ip_set_core.c 	struct nlmsghdr *nlh;
nlh               815 net/netfilter/ipset/ip_set_core.c 	nlh = nlmsg_put(skb, portid, seq, nfnl_msg_type(NFNL_SUBSYS_IPSET, cmd),
nlh               817 net/netfilter/ipset/ip_set_core.c 	if (!nlh)
nlh               820 net/netfilter/ipset/ip_set_core.c 	nfmsg = nlmsg_data(nlh);
nlh               825 net/netfilter/ipset/ip_set_core.c 	return nlh;
nlh               892 net/netfilter/ipset/ip_set_core.c 		       const struct nlmsghdr *nlh,
nlh               900 net/netfilter/ipset/ip_set_core.c 			 struct sk_buff *skb, const struct nlmsghdr *nlh,
nlh               910 net/netfilter/ipset/ip_set_core.c 	u32 flags = flag_exist(nlh);
nlh              1042 net/netfilter/ipset/ip_set_core.c 			  struct sk_buff *skb, const struct nlmsghdr *nlh,
nlh              1121 net/netfilter/ipset/ip_set_core.c 			const struct nlmsghdr *nlh,
nlh              1161 net/netfilter/ipset/ip_set_core.c 			 struct sk_buff *skb, const struct nlmsghdr *nlh,
nlh              1211 net/netfilter/ipset/ip_set_core.c 		       const struct nlmsghdr *nlh,
nlh              1290 net/netfilter/ipset/ip_set_core.c dump_attrs(struct nlmsghdr *nlh)
nlh              1296 net/netfilter/ipset/ip_set_core.c 	nlmsg_for_each_attr(attr, nlh, sizeof(struct nfgenmsg), rem) {
nlh              1312 net/netfilter/ipset/ip_set_core.c 	struct nlmsghdr *nlh = nlmsg_hdr(cb->skb);
nlh              1315 net/netfilter/ipset/ip_set_core.c 	struct nlattr *attr = (void *)nlh + min_len;
nlh              1322 net/netfilter/ipset/ip_set_core.c 			nlh->nlmsg_len - min_len,
nlh              1356 net/netfilter/ipset/ip_set_core.c 	if (nlh->nlmsg_flags & NLM_F_ACK) {
nlh              1357 net/netfilter/ipset/ip_set_core.c 		netlink_ack(cb->skb, nlh, ret, NULL);
nlh              1367 net/netfilter/ipset/ip_set_core.c 	struct nlmsghdr *nlh = NULL;
nlh              1421 net/netfilter/ipset/ip_set_core.c 		nlh = start_msg(skb, NETLINK_CB(cb->skb).portid,
nlh              1422 net/netfilter/ipset/ip_set_core.c 				cb->nlh->nlmsg_seq, flags,
nlh              1424 net/netfilter/ipset/ip_set_core.c 		if (!nlh) {
nlh              1492 net/netfilter/ipset/ip_set_core.c 	if (nlh) {
nlh              1493 net/netfilter/ipset/ip_set_core.c 		nlmsg_end(skb, nlh);
nlh              1494 net/netfilter/ipset/ip_set_core.c 		pr_debug("nlmsg_len: %u\n", nlh->nlmsg_len);
nlh              1495 net/netfilter/ipset/ip_set_core.c 		dump_attrs(nlh);
nlh              1502 net/netfilter/ipset/ip_set_core.c 		       const struct nlmsghdr *nlh,
nlh              1515 net/netfilter/ipset/ip_set_core.c 		return netlink_dump_start(ctnl, skb, nlh, &c);
nlh              1552 net/netfilter/ipset/ip_set_core.c 		struct nlmsghdr *rep, *nlh = nlmsg_hdr(skb);
nlh              1556 net/netfilter/ipset/ip_set_core.c 				     sizeof(*errmsg) + nlmsg_len(nlh));
nlh              1566 net/netfilter/ipset/ip_set_core.c 				  nlh->nlmsg_seq, NLMSG_ERROR, payload, 0);
nlh              1569 net/netfilter/ipset/ip_set_core.c 		memcpy(&errmsg->msg, nlh, nlh->nlmsg_len);
nlh              1573 net/netfilter/ipset/ip_set_core.c 				nlh->nlmsg_len - min_len, ip_set_adt_policy,
nlh              1596 net/netfilter/ipset/ip_set_core.c 		     const struct nlmsghdr *nlh,
nlh              1604 net/netfilter/ipset/ip_set_core.c 	u32 flags = flag_exist(nlh);
nlh              1650 net/netfilter/ipset/ip_set_core.c 		       struct sk_buff *skb, const struct nlmsghdr *nlh,
nlh              1655 net/netfilter/ipset/ip_set_core.c 			 IPSET_ADD, nlh, attr, extack);
nlh              1659 net/netfilter/ipset/ip_set_core.c 		       struct sk_buff *skb, const struct nlmsghdr *nlh,
nlh              1664 net/netfilter/ipset/ip_set_core.c 			 IPSET_DEL, nlh, attr, extack);
nlh              1668 net/netfilter/ipset/ip_set_core.c 			const struct nlmsghdr *nlh,
nlh              1705 net/netfilter/ipset/ip_set_core.c 			 struct sk_buff *skb, const struct nlmsghdr *nlh,
nlh              1727 net/netfilter/ipset/ip_set_core.c 	nlh2 = start_msg(skb2, NETLINK_CB(skb).portid, nlh->nlmsg_seq, 0,
nlh              1762 net/netfilter/ipset/ip_set_core.c 		       const struct nlmsghdr *nlh,
nlh              1787 net/netfilter/ipset/ip_set_core.c 	nlh2 = start_msg(skb2, NETLINK_CB(skb).portid, nlh->nlmsg_seq, 0,
nlh              1821 net/netfilter/ipset/ip_set_core.c 			   struct sk_buff *skb, const struct nlmsghdr *nlh,
nlh              1836 net/netfilter/ipset/ip_set_core.c 	nlh2 = start_msg(skb2, NETLINK_CB(skb).portid, nlh->nlmsg_seq, 0,
nlh              1862 net/netfilter/ipset/ip_set_core.c 			 struct sk_buff *skb, const struct nlmsghdr *nlh,
nlh              1885 net/netfilter/ipset/ip_set_core.c 	nlh2 = start_msg(skb2, NETLINK_CB(skb).portid, nlh->nlmsg_seq, 0,
nlh              1914 net/netfilter/ipset/ip_set_core.c 			  struct sk_buff *skb, const struct nlmsghdr *nlh,
nlh              1940 net/netfilter/ipset/ip_set_core.c 	nlh2 = start_msg(skb2, NETLINK_CB(skb).portid, nlh->nlmsg_seq, 0,
nlh              3086 net/netfilter/ipvs/ip_vs_ctl.c 	hdr = genlmsg_put(skb, NETLINK_CB(cb->skb).portid, cb->nlh->nlmsg_seq,
nlh              3297 net/netfilter/ipvs/ip_vs_ctl.c 	hdr = genlmsg_put(skb, NETLINK_CB(cb->skb).portid, cb->nlh->nlmsg_seq,
nlh              3328 net/netfilter/ipvs/ip_vs_ctl.c 	if (nlmsg_parse_deprecated(cb->nlh, GENL_HDRLEN, attrs, IPVS_CMD_ATTR_MAX, ip_vs_cmd_policy, cb->extack))
nlh              3461 net/netfilter/ipvs/ip_vs_ctl.c 	hdr = genlmsg_put(skb, NETLINK_CB(cb->skb).portid, cb->nlh->nlmsg_seq,
nlh               514 net/netfilter/nf_conntrack_netlink.c 	struct nlmsghdr *nlh;
nlh               520 net/netfilter/nf_conntrack_netlink.c 	nlh = nlmsg_put(skb, portid, seq, event, sizeof(*nfmsg), flags);
nlh               521 net/netfilter/nf_conntrack_netlink.c 	if (nlh == NULL)
nlh               524 net/netfilter/nf_conntrack_netlink.c 	nfmsg = nlmsg_data(nlh);
nlh               574 net/netfilter/nf_conntrack_netlink.c 	nlmsg_end(skb, nlh);
nlh               579 net/netfilter/nf_conntrack_netlink.c 	nlmsg_cancel(skb, nlh);
nlh               684 net/netfilter/nf_conntrack_netlink.c 	struct nlmsghdr *nlh;
nlh               715 net/netfilter/nf_conntrack_netlink.c 	nlh = nlmsg_put(skb, item->portid, 0, type, sizeof(*nfmsg), flags);
nlh               716 net/netfilter/nf_conntrack_netlink.c 	if (nlh == NULL)
nlh               719 net/netfilter/nf_conntrack_netlink.c 	nfmsg = nlmsg_data(nlh);
nlh               799 net/netfilter/nf_conntrack_netlink.c 	nlmsg_end(skb, nlh);
nlh               808 net/netfilter/nf_conntrack_netlink.c 	nlmsg_cancel(skb, nlh);
nlh               864 net/netfilter/nf_conntrack_netlink.c 	struct nfgenmsg *nfmsg = nlmsg_data(cb->nlh);
nlh               959 net/netfilter/nf_conntrack_netlink.c 					    cb->nlh->nlmsg_seq,
nlh               960 net/netfilter/nf_conntrack_netlink.c 					    NFNL_MSG_TYPE(cb->nlh->nlmsg_type),
nlh              1254 net/netfilter/nf_conntrack_netlink.c 				   const struct nlmsghdr *nlh,
nlh              1261 net/netfilter/nf_conntrack_netlink.c 	struct nfgenmsg *nfmsg = nlmsg_data(nlh);
nlh              1280 net/netfilter/nf_conntrack_netlink.c 						 nlmsg_report(nlh), u3);
nlh              1306 net/netfilter/nf_conntrack_netlink.c 	nf_ct_delete(ct, NETLINK_CB(skb).portid, nlmsg_report(nlh));
nlh              1314 net/netfilter/nf_conntrack_netlink.c 				   const struct nlmsghdr *nlh,
nlh              1322 net/netfilter/nf_conntrack_netlink.c 	struct nfgenmsg *nfmsg = nlmsg_data(nlh);
nlh              1327 net/netfilter/nf_conntrack_netlink.c 	if (nlh->nlmsg_flags & NLM_F_DUMP) {
nlh              1335 net/netfilter/nf_conntrack_netlink.c 		return netlink_dump_start(ctnl, skb, nlh, &c);
nlh              1368 net/netfilter/nf_conntrack_netlink.c 	err = ctnetlink_fill_info(skb2, NETLINK_CB(skb).portid, nlh->nlmsg_seq,
nlh              1369 net/netfilter/nf_conntrack_netlink.c 				  NFNL_MSG_TYPE(nlh->nlmsg_type), ct);
nlh              1401 net/netfilter/nf_conntrack_netlink.c 	struct nfgenmsg *nfmsg = nlmsg_data(cb->nlh);
nlh              1434 net/netfilter/nf_conntrack_netlink.c 						  cb->nlh->nlmsg_seq,
nlh              1435 net/netfilter/nf_conntrack_netlink.c 						  NFNL_MSG_TYPE(cb->nlh->nlmsg_type),
nlh              1469 net/netfilter/nf_conntrack_netlink.c 				  const struct nlmsghdr *nlh,
nlh              1473 net/netfilter/nf_conntrack_netlink.c 	if (nlh->nlmsg_flags & NLM_F_DUMP) {
nlh              1478 net/netfilter/nf_conntrack_netlink.c 		return netlink_dump_start(ctnl, skb, nlh, &c);
nlh              1492 net/netfilter/nf_conntrack_netlink.c 					const struct nlmsghdr *nlh,
nlh              1496 net/netfilter/nf_conntrack_netlink.c 	if (nlh->nlmsg_flags & NLM_F_DUMP) {
nlh              1501 net/netfilter/nf_conntrack_netlink.c 		return netlink_dump_start(ctnl, skb, nlh, &c);
nlh              2099 net/netfilter/nf_conntrack_netlink.c 				   const struct nlmsghdr *nlh,
nlh              2105 net/netfilter/nf_conntrack_netlink.c 	struct nfgenmsg *nfmsg = nlmsg_data(nlh);
nlh              2136 net/netfilter/nf_conntrack_netlink.c 		if (nlh->nlmsg_flags & NLM_F_CREATE) {
nlh              2168 net/netfilter/nf_conntrack_netlink.c 						      nlmsg_report(nlh));
nlh              2178 net/netfilter/nf_conntrack_netlink.c 	if (!(nlh->nlmsg_flags & NLM_F_EXCL)) {
nlh              2190 net/netfilter/nf_conntrack_netlink.c 						      nlmsg_report(nlh));
nlh              2202 net/netfilter/nf_conntrack_netlink.c 	struct nlmsghdr *nlh;
nlh              2208 net/netfilter/nf_conntrack_netlink.c 	nlh = nlmsg_put(skb, portid, seq, event, sizeof(*nfmsg), flags);
nlh              2209 net/netfilter/nf_conntrack_netlink.c 	if (nlh == NULL)
nlh              2212 net/netfilter/nf_conntrack_netlink.c 	nfmsg = nlmsg_data(nlh);
nlh              2230 net/netfilter/nf_conntrack_netlink.c 	nlmsg_end(skb, nlh);
nlh              2235 net/netfilter/nf_conntrack_netlink.c 	nlmsg_cancel(skb, nlh);
nlh              2257 net/netfilter/nf_conntrack_netlink.c 						    cb->nlh->nlmsg_seq,
nlh              2268 net/netfilter/nf_conntrack_netlink.c 				 const struct nlmsghdr *nlh,
nlh              2272 net/netfilter/nf_conntrack_netlink.c 	if (nlh->nlmsg_flags & NLM_F_DUMP) {
nlh              2276 net/netfilter/nf_conntrack_netlink.c 		return netlink_dump_start(ctnl, skb, nlh, &c);
nlh              2286 net/netfilter/nf_conntrack_netlink.c 	struct nlmsghdr *nlh;
nlh              2292 net/netfilter/nf_conntrack_netlink.c 	nlh = nlmsg_put(skb, portid, seq, event, sizeof(*nfmsg), flags);
nlh              2293 net/netfilter/nf_conntrack_netlink.c 	if (nlh == NULL)
nlh              2296 net/netfilter/nf_conntrack_netlink.c 	nfmsg = nlmsg_data(nlh);
nlh              2307 net/netfilter/nf_conntrack_netlink.c 	nlmsg_end(skb, nlh);
nlh              2312 net/netfilter/nf_conntrack_netlink.c 	nlmsg_cancel(skb, nlh);
nlh              2317 net/netfilter/nf_conntrack_netlink.c 			     struct sk_buff *skb, const struct nlmsghdr *nlh,
nlh              2329 net/netfilter/nf_conntrack_netlink.c 					  nlh->nlmsg_seq,
nlh              2330 net/netfilter/nf_conntrack_netlink.c 					  NFNL_MSG_TYPE(nlh->nlmsg_type),
nlh              2802 net/netfilter/nf_conntrack_netlink.c 	struct nlmsghdr *nlh;
nlh              2807 net/netfilter/nf_conntrack_netlink.c 	nlh = nlmsg_put(skb, portid, seq, event, sizeof(*nfmsg), flags);
nlh              2808 net/netfilter/nf_conntrack_netlink.c 	if (nlh == NULL)
nlh              2811 net/netfilter/nf_conntrack_netlink.c 	nfmsg = nlmsg_data(nlh);
nlh              2819 net/netfilter/nf_conntrack_netlink.c 	nlmsg_end(skb, nlh);
nlh              2824 net/netfilter/nf_conntrack_netlink.c 	nlmsg_cancel(skb, nlh);
nlh              2834 net/netfilter/nf_conntrack_netlink.c 	struct nlmsghdr *nlh;
nlh              2858 net/netfilter/nf_conntrack_netlink.c 	nlh = nlmsg_put(skb, item->portid, 0, type, sizeof(*nfmsg), flags);
nlh              2859 net/netfilter/nf_conntrack_netlink.c 	if (nlh == NULL)
nlh              2862 net/netfilter/nf_conntrack_netlink.c 	nfmsg = nlmsg_data(nlh);
nlh              2870 net/netfilter/nf_conntrack_netlink.c 	nlmsg_end(skb, nlh);
nlh              2875 net/netfilter/nf_conntrack_netlink.c 	nlmsg_cancel(skb, nlh);
nlh              2895 net/netfilter/nf_conntrack_netlink.c 	struct nfgenmsg *nfmsg = nlmsg_data(cb->nlh);
nlh              2917 net/netfilter/nf_conntrack_netlink.c 						    cb->nlh->nlmsg_seq,
nlh              2943 net/netfilter/nf_conntrack_netlink.c 	struct nfgenmsg *nfmsg = nlmsg_data(cb->nlh);
nlh              2963 net/netfilter/nf_conntrack_netlink.c 					    cb->nlh->nlmsg_seq,
nlh              2987 net/netfilter/nf_conntrack_netlink.c 				 const struct nlmsghdr *nlh,
nlh              2992 net/netfilter/nf_conntrack_netlink.c 	struct nfgenmsg *nfmsg = nlmsg_data(nlh);
nlh              3025 net/netfilter/nf_conntrack_netlink.c 	err = netlink_dump_start(ctnl, skb, nlh, &c);
nlh              3032 net/netfilter/nf_conntrack_netlink.c 				struct sk_buff *skb, const struct nlmsghdr *nlh,
nlh              3039 net/netfilter/nf_conntrack_netlink.c 	struct nfgenmsg *nfmsg = nlmsg_data(nlh);
nlh              3044 net/netfilter/nf_conntrack_netlink.c 	if (nlh->nlmsg_flags & NLM_F_DUMP) {
nlh              3046 net/netfilter/nf_conntrack_netlink.c 			return ctnetlink_dump_exp_ct(net, ctnl, skb, nlh, cda,
nlh              3053 net/netfilter/nf_conntrack_netlink.c 			return netlink_dump_start(ctnl, skb, nlh, &c);
nlh              3095 net/netfilter/nf_conntrack_netlink.c 				      nlh->nlmsg_seq, IPCTNL_MSG_EXP_NEW, exp);
nlh              3130 net/netfilter/nf_conntrack_netlink.c 				struct sk_buff *skb, const struct nlmsghdr *nlh,
nlh              3136 net/netfilter/nf_conntrack_netlink.c 	struct nfgenmsg *nfmsg = nlmsg_data(nlh);
nlh              3169 net/netfilter/nf_conntrack_netlink.c 						   nlmsg_report(nlh));
nlh              3181 net/netfilter/nf_conntrack_netlink.c 					 nlmsg_report(nlh));
nlh              3186 net/netfilter/nf_conntrack_netlink.c 					 nlmsg_report(nlh));
nlh              3383 net/netfilter/nf_conntrack_netlink.c 				struct sk_buff *skb, const struct nlmsghdr *nlh,
nlh              3389 net/netfilter/nf_conntrack_netlink.c 	struct nfgenmsg *nfmsg = nlmsg_data(nlh);
nlh              3413 net/netfilter/nf_conntrack_netlink.c 		if (nlh->nlmsg_flags & NLM_F_CREATE) {
nlh              3416 net/netfilter/nf_conntrack_netlink.c 						      nlmsg_report(nlh));
nlh              3422 net/netfilter/nf_conntrack_netlink.c 	if (!(nlh->nlmsg_flags & NLM_F_EXCL))
nlh              3433 net/netfilter/nf_conntrack_netlink.c 	struct nlmsghdr *nlh;
nlh              3439 net/netfilter/nf_conntrack_netlink.c 	nlh = nlmsg_put(skb, portid, seq, event, sizeof(*nfmsg), flags);
nlh              3440 net/netfilter/nf_conntrack_netlink.c 	if (nlh == NULL)
nlh              3443 net/netfilter/nf_conntrack_netlink.c 	nfmsg = nlmsg_data(nlh);
nlh              3453 net/netfilter/nf_conntrack_netlink.c 	nlmsg_end(skb, nlh);
nlh              3458 net/netfilter/nf_conntrack_netlink.c 	nlmsg_cancel(skb, nlh);
nlh              3479 net/netfilter/nf_conntrack_netlink.c 						 cb->nlh->nlmsg_seq,
nlh              3490 net/netfilter/nf_conntrack_netlink.c 				  const struct nlmsghdr *nlh,
nlh              3494 net/netfilter/nf_conntrack_netlink.c 	if (nlh->nlmsg_flags & NLM_F_DUMP) {
nlh              3498 net/netfilter/nf_conntrack_netlink.c 		return netlink_dump_start(ctnl, skb, nlh, &c);
nlh                89 net/netfilter/nf_tables_api.c 			 const struct nlmsghdr *nlh,
nlh               102 net/netfilter/nf_tables_api.c 	ctx->report	= nlmsg_report(nlh);
nlh               103 net/netfilter/nf_tables_api.c 	ctx->flags	= nlh->nlmsg_flags;
nlh               104 net/netfilter/nf_tables_api.c 	ctx->seq	= nlh->nlmsg_seq;
nlh               599 net/netfilter/nf_tables_api.c 	struct nlmsghdr *nlh;
nlh               603 net/netfilter/nf_tables_api.c 	nlh = nlmsg_put(skb, portid, seq, event, sizeof(struct nfgenmsg), flags);
nlh               604 net/netfilter/nf_tables_api.c 	if (nlh == NULL)
nlh               607 net/netfilter/nf_tables_api.c 	nfmsg = nlmsg_data(nlh);
nlh               619 net/netfilter/nf_tables_api.c 	nlmsg_end(skb, nlh);
nlh               623 net/netfilter/nf_tables_api.c 	nlmsg_trim(skb, nlh);
nlh               657 net/netfilter/nf_tables_api.c 	const struct nfgenmsg *nfmsg = nlmsg_data(cb->nlh);
nlh               679 net/netfilter/nf_tables_api.c 					      cb->nlh->nlmsg_seq,
nlh               695 net/netfilter/nf_tables_api.c 				      const struct nlmsghdr *nlh,
nlh               704 net/netfilter/nf_tables_api.c 	err = netlink_dump_start(nlsk, skb, nlh, c);
nlh               713 net/netfilter/nf_tables_api.c 			      struct sk_buff *skb, const struct nlmsghdr *nlh,
nlh               717 net/netfilter/nf_tables_api.c 	const struct nfgenmsg *nfmsg = nlmsg_data(nlh);
nlh               724 net/netfilter/nf_tables_api.c 	if (nlh->nlmsg_flags & NLM_F_DUMP) {
nlh               730 net/netfilter/nf_tables_api.c 		return nft_netlink_dump_start_rcu(nlsk, skb, nlh, &c);
nlh               744 net/netfilter/nf_tables_api.c 					nlh->nlmsg_seq, NFT_MSG_NEWTABLE, 0,
nlh               898 net/netfilter/nf_tables_api.c 			      struct sk_buff *skb, const struct nlmsghdr *nlh,
nlh               902 net/netfilter/nf_tables_api.c 	const struct nfgenmsg *nfmsg = nlmsg_data(nlh);
nlh               918 net/netfilter/nf_tables_api.c 		if (nlh->nlmsg_flags & NLM_F_EXCL) {
nlh               922 net/netfilter/nf_tables_api.c 		if (nlh->nlmsg_flags & NLM_F_REPLACE)
nlh               925 net/netfilter/nf_tables_api.c 		nft_ctx_init(&ctx, net, skb, nlh, family, table, NULL, nla);
nlh               956 net/netfilter/nf_tables_api.c 	nft_ctx_init(&ctx, net, skb, nlh, family, table, NULL, nla);
nlh              1069 net/netfilter/nf_tables_api.c 			      struct sk_buff *skb, const struct nlmsghdr *nlh,
nlh              1073 net/netfilter/nf_tables_api.c 	const struct nfgenmsg *nfmsg = nlmsg_data(nlh);
nlh              1080 net/netfilter/nf_tables_api.c 	nft_ctx_init(&ctx, net, skb, nlh, 0, NULL, NULL, nla);
nlh              1098 net/netfilter/nf_tables_api.c 	if (nlh->nlmsg_flags & NLM_F_NONREC &&
nlh              1262 net/netfilter/nf_tables_api.c 	struct nlmsghdr *nlh;
nlh              1266 net/netfilter/nf_tables_api.c 	nlh = nlmsg_put(skb, portid, seq, event, sizeof(struct nfgenmsg), flags);
nlh              1267 net/netfilter/nf_tables_api.c 	if (nlh == NULL)
nlh              1270 net/netfilter/nf_tables_api.c 	nfmsg = nlmsg_data(nlh);
nlh              1322 net/netfilter/nf_tables_api.c 	nlmsg_end(skb, nlh);
nlh              1326 net/netfilter/nf_tables_api.c 	nlmsg_trim(skb, nlh);
nlh              1361 net/netfilter/nf_tables_api.c 	const struct nfgenmsg *nfmsg = nlmsg_data(cb->nlh);
nlh              1385 net/netfilter/nf_tables_api.c 						      cb->nlh->nlmsg_seq,
nlh              1405 net/netfilter/nf_tables_api.c 			      struct sk_buff *skb, const struct nlmsghdr *nlh,
nlh              1409 net/netfilter/nf_tables_api.c 	const struct nfgenmsg *nfmsg = nlmsg_data(nlh);
nlh              1417 net/netfilter/nf_tables_api.c 	if (nlh->nlmsg_flags & NLM_F_DUMP) {
nlh              1423 net/netfilter/nf_tables_api.c 		return nft_netlink_dump_start_rcu(nlsk, skb, nlh, &c);
nlh              1443 net/netfilter/nf_tables_api.c 					nlh->nlmsg_seq, NFT_MSG_NEWCHAIN, 0,
nlh              1879 net/netfilter/nf_tables_api.c 			      struct sk_buff *skb, const struct nlmsghdr *nlh,
nlh              1883 net/netfilter/nf_tables_api.c 	const struct nfgenmsg *nfmsg = nlmsg_data(nlh);
nlh              1952 net/netfilter/nf_tables_api.c 	nft_ctx_init(&ctx, net, skb, nlh, family, table, chain, nla);
nlh              1955 net/netfilter/nf_tables_api.c 		if (nlh->nlmsg_flags & NLM_F_EXCL) {
nlh              1959 net/netfilter/nf_tables_api.c 		if (nlh->nlmsg_flags & NLM_F_REPLACE)
nlh              1970 net/netfilter/nf_tables_api.c 			      struct sk_buff *skb, const struct nlmsghdr *nlh,
nlh              1974 net/netfilter/nf_tables_api.c 	const struct nfgenmsg *nfmsg = nlmsg_data(nlh);
nlh              2005 net/netfilter/nf_tables_api.c 	if (nlh->nlmsg_flags & NLM_F_NONREC &&
nlh              2009 net/netfilter/nf_tables_api.c 	nft_ctx_init(&ctx, net, skb, nlh, family, table, chain, nla);
nlh              2348 net/netfilter/nf_tables_api.c 	struct nlmsghdr *nlh;
nlh              2354 net/netfilter/nf_tables_api.c 	nlh = nlmsg_put(skb, portid, seq, type, sizeof(struct nfgenmsg), flags);
nlh              2355 net/netfilter/nf_tables_api.c 	if (nlh == NULL)
nlh              2358 net/netfilter/nf_tables_api.c 	nfmsg = nlmsg_data(nlh);
nlh              2394 net/netfilter/nf_tables_api.c 	nlmsg_end(skb, nlh);
nlh              2398 net/netfilter/nf_tables_api.c 	nlmsg_trim(skb, nlh);
nlh              2457 net/netfilter/nf_tables_api.c 					cb->nlh->nlmsg_seq,
nlh              2476 net/netfilter/nf_tables_api.c 	const struct nfgenmsg *nfmsg = nlmsg_data(cb->nlh);
nlh              2574 net/netfilter/nf_tables_api.c 			     struct sk_buff *skb, const struct nlmsghdr *nlh,
nlh              2578 net/netfilter/nf_tables_api.c 	const struct nfgenmsg *nfmsg = nlmsg_data(nlh);
nlh              2587 net/netfilter/nf_tables_api.c 	if (nlh->nlmsg_flags & NLM_F_DUMP) {
nlh              2596 net/netfilter/nf_tables_api.c 		return nft_netlink_dump_start_rcu(nlsk, skb, nlh, &c);
nlh              2622 net/netfilter/nf_tables_api.c 				       nlh->nlmsg_seq, NFT_MSG_NEWRULE, 0,
nlh              2715 net/netfilter/nf_tables_api.c 			     struct sk_buff *skb, const struct nlmsghdr *nlh,
nlh              2719 net/netfilter/nf_tables_api.c 	const struct nfgenmsg *nfmsg = nlmsg_data(nlh);
nlh              2758 net/netfilter/nf_tables_api.c 		if (nlh->nlmsg_flags & NLM_F_EXCL) {
nlh              2762 net/netfilter/nf_tables_api.c 		if (nlh->nlmsg_flags & NLM_F_REPLACE)
nlh              2767 net/netfilter/nf_tables_api.c 		if (!(nlh->nlmsg_flags & NLM_F_CREATE) ||
nlh              2768 net/netfilter/nf_tables_api.c 		    nlh->nlmsg_flags & NLM_F_REPLACE)
nlh              2791 net/netfilter/nf_tables_api.c 	nft_ctx_init(&ctx, net, skb, nlh, family, table, chain, nla);
nlh              2856 net/netfilter/nf_tables_api.c 	if (nlh->nlmsg_flags & NLM_F_REPLACE) {
nlh              2876 net/netfilter/nf_tables_api.c 		if (nlh->nlmsg_flags & NLM_F_APPEND) {
nlh              2934 net/netfilter/nf_tables_api.c 			     struct sk_buff *skb, const struct nlmsghdr *nlh,
nlh              2938 net/netfilter/nf_tables_api.c 	const struct nfgenmsg *nfmsg = nlmsg_data(nlh);
nlh              2961 net/netfilter/nf_tables_api.c 	nft_ctx_init(&ctx, net, skb, nlh, family, table, chain, nla);
nlh              3135 net/netfilter/nf_tables_api.c 				     const struct nlmsghdr *nlh,
nlh              3140 net/netfilter/nf_tables_api.c 	const struct nfgenmsg *nfmsg = nlmsg_data(nlh);
nlh              3153 net/netfilter/nf_tables_api.c 	nft_ctx_init(ctx, net, skb, nlh, family, table, NULL, nla);
nlh              3301 net/netfilter/nf_tables_api.c 	struct nlmsghdr *nlh;
nlh              3307 net/netfilter/nf_tables_api.c 	nlh = nlmsg_put(skb, portid, seq, event, sizeof(struct nfgenmsg),
nlh              3309 net/netfilter/nf_tables_api.c 	if (nlh == NULL)
nlh              3312 net/netfilter/nf_tables_api.c 	nfmsg = nlmsg_data(nlh);
nlh              3367 net/netfilter/nf_tables_api.c 	nlmsg_end(skb, nlh);
nlh              3371 net/netfilter/nf_tables_api.c 	nlmsg_trim(skb, nlh);
nlh              3483 net/netfilter/nf_tables_api.c 			    struct sk_buff *skb, const struct nlmsghdr *nlh,
nlh              3491 net/netfilter/nf_tables_api.c 	const struct nfgenmsg *nfmsg = nlmsg_data(nlh);
nlh              3495 net/netfilter/nf_tables_api.c 	err = nft_ctx_init_from_setattr(&ctx, net, skb, nlh, nla, extack,
nlh              3500 net/netfilter/nf_tables_api.c 	if (nlh->nlmsg_flags & NLM_F_DUMP) {
nlh              3509 net/netfilter/nf_tables_api.c 		return nft_netlink_dump_start_rcu(nlsk, skb, nlh, &c);
nlh              3555 net/netfilter/nf_tables_api.c 			    struct sk_buff *skb, const struct nlmsghdr *nlh,
nlh              3559 net/netfilter/nf_tables_api.c 	const struct nfgenmsg *nfmsg = nlmsg_data(nlh);
nlh              3677 net/netfilter/nf_tables_api.c 	nft_ctx_init(&ctx, net, skb, nlh, family, table, NULL, nla);
nlh              3686 net/netfilter/nf_tables_api.c 		if (nlh->nlmsg_flags & NLM_F_EXCL) {
nlh              3690 net/netfilter/nf_tables_api.c 		if (nlh->nlmsg_flags & NLM_F_REPLACE)
nlh              3696 net/netfilter/nf_tables_api.c 	if (!(nlh->nlmsg_flags & NLM_F_CREATE))
nlh              3787 net/netfilter/nf_tables_api.c 			    struct sk_buff *skb, const struct nlmsghdr *nlh,
nlh              3791 net/netfilter/nf_tables_api.c 	const struct nfgenmsg *nfmsg = nlmsg_data(nlh);
nlh              3803 net/netfilter/nf_tables_api.c 	err = nft_ctx_init_from_setattr(&ctx, net, skb, nlh, nla, extack,
nlh              3821 net/netfilter/nf_tables_api.c 	    (nlh->nlmsg_flags & NLM_F_NONREC && atomic_read(&set->nelems) > 0)) {
nlh              3986 net/netfilter/nf_tables_api.c 				      const struct nlmsghdr *nlh,
nlh              3991 net/netfilter/nf_tables_api.c 	const struct nfgenmsg *nfmsg = nlmsg_data(nlh);
nlh              4002 net/netfilter/nf_tables_api.c 	nft_ctx_init(ctx, net, skb, nlh, family, table, NULL, nla);
nlh              4111 net/netfilter/nf_tables_api.c 	struct nlmsghdr *nlh;
nlh              4141 net/netfilter/nf_tables_api.c 	seq    = cb->nlh->nlmsg_seq;
nlh              4143 net/netfilter/nf_tables_api.c 	nlh = nlmsg_put(skb, portid, seq, event, sizeof(struct nfgenmsg),
nlh              4145 net/netfilter/nf_tables_api.c 	if (nlh == NULL)
nlh              4148 net/netfilter/nf_tables_api.c 	nfmsg = nlmsg_data(nlh);
nlh              4173 net/netfilter/nf_tables_api.c 	nlmsg_end(skb, nlh);
nlh              4210 net/netfilter/nf_tables_api.c 	struct nlmsghdr *nlh;
nlh              4215 net/netfilter/nf_tables_api.c 	nlh = nlmsg_put(skb, portid, seq, event, sizeof(struct nfgenmsg),
nlh              4217 net/netfilter/nf_tables_api.c 	if (nlh == NULL)
nlh              4220 net/netfilter/nf_tables_api.c 	nfmsg = nlmsg_data(nlh);
nlh              4240 net/netfilter/nf_tables_api.c 	nlmsg_end(skb, nlh);
nlh              4244 net/netfilter/nf_tables_api.c 	nlmsg_trim(skb, nlh);
nlh              4329 net/netfilter/nf_tables_api.c 				struct sk_buff *skb, const struct nlmsghdr *nlh,
nlh              4339 net/netfilter/nf_tables_api.c 	err = nft_ctx_init_from_elemattr(&ctx, net, skb, nlh, nla, extack,
nlh              4348 net/netfilter/nf_tables_api.c 	if (nlh->nlmsg_flags & NLM_F_DUMP) {
nlh              4361 net/netfilter/nf_tables_api.c 		return nft_netlink_dump_start_rcu(nlsk, skb, nlh, &c);
nlh              4724 net/netfilter/nf_tables_api.c 				struct sk_buff *skb, const struct nlmsghdr *nlh,
nlh              4737 net/netfilter/nf_tables_api.c 	err = nft_ctx_init_from_elemattr(&ctx, net, skb, nlh, nla, extack,
nlh              4751 net/netfilter/nf_tables_api.c 		err = nft_add_set_elem(&ctx, set, attr, nlh->nlmsg_flags);
nlh              4921 net/netfilter/nf_tables_api.c 				struct sk_buff *skb, const struct nlmsghdr *nlh,
nlh              4931 net/netfilter/nf_tables_api.c 	err = nft_ctx_init_from_elemattr(&ctx, net, skb, nlh, nla, extack,
nlh              5216 net/netfilter/nf_tables_api.c 			    struct sk_buff *skb, const struct nlmsghdr *nlh,
nlh              5220 net/netfilter/nf_tables_api.c 	const struct nfgenmsg *nfmsg = nlmsg_data(nlh);
nlh              5250 net/netfilter/nf_tables_api.c 		if (nlh->nlmsg_flags & NLM_F_EXCL) {
nlh              5254 net/netfilter/nf_tables_api.c 		if (nlh->nlmsg_flags & NLM_F_REPLACE)
nlh              5258 net/netfilter/nf_tables_api.c 		nft_ctx_init(&ctx, net, skb, nlh, family, table, NULL, nla);
nlh              5263 net/netfilter/nf_tables_api.c 	nft_ctx_init(&ctx, net, skb, nlh, family, table, NULL, nla);
nlh              5316 net/netfilter/nf_tables_api.c 	struct nlmsghdr *nlh;
nlh              5319 net/netfilter/nf_tables_api.c 	nlh = nlmsg_put(skb, portid, seq, event, sizeof(struct nfgenmsg), flags);
nlh              5320 net/netfilter/nf_tables_api.c 	if (nlh == NULL)
nlh              5323 net/netfilter/nf_tables_api.c 	nfmsg = nlmsg_data(nlh);
nlh              5337 net/netfilter/nf_tables_api.c 	nlmsg_end(skb, nlh);
nlh              5341 net/netfilter/nf_tables_api.c 	nlmsg_trim(skb, nlh);
nlh              5352 net/netfilter/nf_tables_api.c 	const struct nfgenmsg *nfmsg = nlmsg_data(cb->nlh);
nlh              5361 net/netfilter/nf_tables_api.c 	if (NFNL_MSG_TYPE(cb->nlh->nlmsg_type) == NFT_MSG_GETOBJ_RESET)
nlh              5388 net/netfilter/nf_tables_api.c 						    cb->nlh->nlmsg_seq,
nlh              5447 net/netfilter/nf_tables_api.c 			    struct sk_buff *skb, const struct nlmsghdr *nlh,
nlh              5451 net/netfilter/nf_tables_api.c 	const struct nfgenmsg *nfmsg = nlmsg_data(nlh);
nlh              5461 net/netfilter/nf_tables_api.c 	if (nlh->nlmsg_flags & NLM_F_DUMP) {
nlh              5470 net/netfilter/nf_tables_api.c 		return nft_netlink_dump_start_rcu(nlsk, skb, nlh, &c);
nlh              5494 net/netfilter/nf_tables_api.c 	if (NFNL_MSG_TYPE(nlh->nlmsg_type) == NFT_MSG_GETOBJ_RESET)
nlh              5498 net/netfilter/nf_tables_api.c 				      nlh->nlmsg_seq, NFT_MSG_NEWOBJ, 0,
nlh              5520 net/netfilter/nf_tables_api.c 			    struct sk_buff *skb, const struct nlmsghdr *nlh,
nlh              5524 net/netfilter/nf_tables_api.c 	const struct nfgenmsg *nfmsg = nlmsg_data(nlh);
nlh              5561 net/netfilter/nf_tables_api.c 	nft_ctx_init(&ctx, net, skb, nlh, family, table, NULL, nla);
nlh              5814 net/netfilter/nf_tables_api.c 				  const struct nlmsghdr *nlh,
nlh              5818 net/netfilter/nf_tables_api.c 	const struct nfgenmsg *nfmsg = nlmsg_data(nlh);
nlh              5848 net/netfilter/nf_tables_api.c 		if (nlh->nlmsg_flags & NLM_F_EXCL) {
nlh              5856 net/netfilter/nf_tables_api.c 	nft_ctx_init(&ctx, net, skb, nlh, family, table, NULL, nla);
nlh              5937 net/netfilter/nf_tables_api.c 				  const struct nlmsghdr *nlh,
nlh              5941 net/netfilter/nf_tables_api.c 	const struct nfgenmsg *nfmsg = nlmsg_data(nlh);
nlh              5978 net/netfilter/nf_tables_api.c 	nft_ctx_init(&ctx, net, skb, nlh, family, table, NULL, nla);
nlh              5990 net/netfilter/nf_tables_api.c 	struct nlmsghdr *nlh;
nlh              5994 net/netfilter/nf_tables_api.c 	nlh = nlmsg_put(skb, portid, seq, event, sizeof(struct nfgenmsg), flags);
nlh              5995 net/netfilter/nf_tables_api.c 	if (nlh == NULL)
nlh              5998 net/netfilter/nf_tables_api.c 	nfmsg = nlmsg_data(nlh);
nlh              6031 net/netfilter/nf_tables_api.c 	nlmsg_end(skb, nlh);
nlh              6035 net/netfilter/nf_tables_api.c 	nlmsg_trim(skb, nlh);
nlh              6046 net/netfilter/nf_tables_api.c 	const struct nfgenmsg *nfmsg = nlmsg_data(cb->nlh);
nlh              6074 net/netfilter/nf_tables_api.c 							  cb->nlh->nlmsg_seq,
nlh              6130 net/netfilter/nf_tables_api.c 				  const struct nlmsghdr *nlh,
nlh              6134 net/netfilter/nf_tables_api.c 	const struct nfgenmsg *nfmsg = nlmsg_data(nlh);
nlh              6142 net/netfilter/nf_tables_api.c 	if (nlh->nlmsg_flags & NLM_F_DUMP) {
nlh              6151 net/netfilter/nf_tables_api.c 		return nft_netlink_dump_start_rcu(nlsk, skb, nlh, &c);
nlh              6172 net/netfilter/nf_tables_api.c 					    nlh->nlmsg_seq,
nlh              6226 net/netfilter/nf_tables_api.c 	struct nlmsghdr *nlh;
nlh              6231 net/netfilter/nf_tables_api.c 	nlh = nlmsg_put(skb, portid, seq, event, sizeof(struct nfgenmsg), 0);
nlh              6232 net/netfilter/nf_tables_api.c 	if (nlh == NULL)
nlh              6235 net/netfilter/nf_tables_api.c 	nfmsg = nlmsg_data(nlh);
nlh              6245 net/netfilter/nf_tables_api.c 	nlmsg_end(skb, nlh);
nlh              6249 net/netfilter/nf_tables_api.c 	nlmsg_trim(skb, nlh);
nlh              6298 net/netfilter/nf_tables_api.c 	struct nlmsghdr *nlh = nlmsg_hdr(skb);
nlh              6302 net/netfilter/nf_tables_api.c 	if (nlmsg_report(nlh) &&
nlh              6311 net/netfilter/nf_tables_api.c 				      nlh->nlmsg_seq);
nlh              6318 net/netfilter/nf_tables_api.c 		       nlmsg_report(nlh), GFP_KERNEL);
nlh              6326 net/netfilter/nf_tables_api.c 			    struct sk_buff *skb, const struct nlmsghdr *nlh,
nlh              6338 net/netfilter/nf_tables_api.c 				      nlh->nlmsg_seq);
nlh               187 net/netfilter/nf_tables_trace.c 	struct nlmsghdr *nlh;
nlh               222 net/netfilter/nf_tables_trace.c 	nlh = nlmsg_put(skb, 0, 0, event, sizeof(struct nfgenmsg), 0);
nlh               223 net/netfilter/nf_tables_trace.c 	if (!nlh)
nlh               226 net/netfilter/nf_tables_trace.c 	nfmsg = nlmsg_data(nlh);
nlh               278 net/netfilter/nf_tables_trace.c 	nlmsg_end(skb, nlh);
nlh               159 net/netfilter/nfnetlink.c static int nfnetlink_rcv_msg(struct sk_buff *skb, struct nlmsghdr *nlh,
nlh               168 net/netfilter/nfnetlink.c 	if (nlmsg_len(nlh) < sizeof(struct nfgenmsg))
nlh               171 net/netfilter/nfnetlink.c 	type = nlh->nlmsg_type;
nlh               197 net/netfilter/nfnetlink.c 		u8 cb_id = NFNL_MSG_TYPE(nlh->nlmsg_type);
nlh               199 net/netfilter/nfnetlink.c 		struct nlattr *attr = (void *)nlh + min_len;
nlh               200 net/netfilter/nfnetlink.c 		int attrlen = nlh->nlmsg_len - min_len;
nlh               218 net/netfilter/nfnetlink.c 			err = nc->call_rcu(net, net->nfnl, skb, nlh,
nlh               229 net/netfilter/nfnetlink.c 				err = nc->call(net, net->nfnl, skb, nlh,
nlh               244 net/netfilter/nfnetlink.c 	struct nlmsghdr		*nlh;
nlh               249 net/netfilter/nfnetlink.c static int nfnl_err_add(struct list_head *list, struct nlmsghdr *nlh, int err,
nlh               258 net/netfilter/nfnetlink.c 	nfnl_err->nlh = nlh;
nlh               285 net/netfilter/nfnetlink.c 		netlink_ack(skb, nfnl_err->nlh, nfnl_err->err,
nlh               297 net/netfilter/nfnetlink.c static void nfnetlink_rcv_batch(struct sk_buff *skb, struct nlmsghdr *nlh,
nlh               310 net/netfilter/nfnetlink.c 		return netlink_ack(skb, nlh, -EINVAL, NULL);
nlh               316 net/netfilter/nfnetlink.c 		return netlink_ack(oskb, nlh, -ENOMEM, NULL);
nlh               330 net/netfilter/nfnetlink.c 			netlink_ack(oskb, nlh, -EOPNOTSUPP, NULL);
nlh               337 net/netfilter/nfnetlink.c 		netlink_ack(oskb, nlh, -EOPNOTSUPP, NULL);
nlh               343 net/netfilter/nfnetlink.c 		netlink_ack(oskb, nlh, -EOPNOTSUPP, NULL);
nlh               350 net/netfilter/nfnetlink.c 		netlink_ack(oskb, nlh, -ERESTART, NULL);
nlh               367 net/netfilter/nfnetlink.c 		nlh = nlmsg_hdr(skb);
nlh               370 net/netfilter/nfnetlink.c 		if (nlh->nlmsg_len < NLMSG_HDRLEN ||
nlh               371 net/netfilter/nfnetlink.c 		    skb->len < nlh->nlmsg_len ||
nlh               372 net/netfilter/nfnetlink.c 		    nlmsg_len(nlh) < sizeof(struct nfgenmsg)) {
nlh               379 net/netfilter/nfnetlink.c 		if (!(nlh->nlmsg_flags & NLM_F_REQUEST)) {
nlh               384 net/netfilter/nfnetlink.c 		type = nlh->nlmsg_type;
nlh               414 net/netfilter/nfnetlink.c 			u8 cb_id = NFNL_MSG_TYPE(nlh->nlmsg_type);
nlh               416 net/netfilter/nfnetlink.c 			struct nlattr *attr = (void *)nlh + min_len;
nlh               417 net/netfilter/nfnetlink.c 			int attrlen = nlh->nlmsg_len - min_len;
nlh               433 net/netfilter/nfnetlink.c 				err = nc->call_batch(net, net->nfnl, skb, nlh,
nlh               448 net/netfilter/nfnetlink.c 		if (nlh->nlmsg_flags & NLM_F_ACK || err) {
nlh               453 net/netfilter/nfnetlink.c 			if (nfnl_err_add(&err_list, nlh, err, &extack) < 0) {
nlh               472 net/netfilter/nfnetlink.c 		msglen = NLMSG_ALIGN(nlh->nlmsg_len);
nlh               508 net/netfilter/nfnetlink.c static void nfnetlink_rcv_skb_batch(struct sk_buff *skb, struct nlmsghdr *nlh)
nlh               511 net/netfilter/nfnetlink.c 	struct nlattr *attr = (void *)nlh + min_len;
nlh               513 net/netfilter/nfnetlink.c 	int attrlen = nlh->nlmsg_len - min_len;
nlh               519 net/netfilter/nfnetlink.c 	msglen = NLMSG_ALIGN(nlh->nlmsg_len);
nlh               529 net/netfilter/nfnetlink.c 		netlink_ack(skb, nlh, err, NULL);
nlh               535 net/netfilter/nfnetlink.c 	nfgenmsg = nlmsg_data(nlh);
nlh               543 net/netfilter/nfnetlink.c 	nfnetlink_rcv_batch(skb, nlh, res_id, gen_id);
nlh               548 net/netfilter/nfnetlink.c 	struct nlmsghdr *nlh = nlmsg_hdr(skb);
nlh               551 net/netfilter/nfnetlink.c 	    nlh->nlmsg_len < NLMSG_HDRLEN ||
nlh               552 net/netfilter/nfnetlink.c 	    skb->len < nlh->nlmsg_len)
nlh               556 net/netfilter/nfnetlink.c 		netlink_ack(skb, nlh, -EPERM, NULL);
nlh               560 net/netfilter/nfnetlink.c 	if (nlh->nlmsg_type == NFNL_MSG_BATCH_BEGIN)
nlh               561 net/netfilter/nfnetlink.c 		nfnetlink_rcv_skb_batch(skb, nlh);
nlh                48 net/netfilter/nfnetlink_acct.c 			 struct sk_buff *skb, const struct nlmsghdr *nlh,
nlh                68 net/netfilter/nfnetlink_acct.c                 if (nlh->nlmsg_flags & NLM_F_EXCL)
nlh                76 net/netfilter/nfnetlink_acct.c 		if (nlh->nlmsg_flags & NLM_F_REPLACE) {
nlh               134 net/netfilter/nfnetlink_acct.c 	struct nlmsghdr *nlh;
nlh               141 net/netfilter/nfnetlink_acct.c 	nlh = nlmsg_put(skb, portid, seq, event, sizeof(*nfmsg), flags);
nlh               142 net/netfilter/nfnetlink_acct.c 	if (nlh == NULL)
nlh               145 net/netfilter/nfnetlink_acct.c 	nfmsg = nlmsg_data(nlh);
nlh               178 net/netfilter/nfnetlink_acct.c 	nlmsg_end(skb, nlh);
nlh               183 net/netfilter/nfnetlink_acct.c 	nlmsg_cancel(skb, nlh);
nlh               214 net/netfilter/nfnetlink_acct.c 				       cb->nlh->nlmsg_seq,
nlh               215 net/netfilter/nfnetlink_acct.c 				       NFNL_MSG_TYPE(cb->nlh->nlmsg_type),
nlh               268 net/netfilter/nfnetlink_acct.c 			 struct sk_buff *skb, const struct nlmsghdr *nlh,
nlh               276 net/netfilter/nfnetlink_acct.c 	if (nlh->nlmsg_flags & NLM_F_DUMP) {
nlh               284 net/netfilter/nfnetlink_acct.c 		return netlink_dump_start(nfnl, skb, nlh, &c);
nlh               304 net/netfilter/nfnetlink_acct.c 					 nlh->nlmsg_seq,
nlh               305 net/netfilter/nfnetlink_acct.c 					 NFNL_MSG_TYPE(nlh->nlmsg_type),
nlh               341 net/netfilter/nfnetlink_acct.c 			 struct sk_buff *skb, const struct nlmsghdr *nlh,
nlh               412 net/netfilter/nfnetlink_cthelper.c 			     struct sk_buff *skb, const struct nlmsghdr *nlh,
nlh               444 net/netfilter/nfnetlink_cthelper.c 		if (nlh->nlmsg_flags & NLM_F_EXCL)
nlh               528 net/netfilter/nfnetlink_cthelper.c 	struct nlmsghdr *nlh;
nlh               534 net/netfilter/nfnetlink_cthelper.c 	nlh = nlmsg_put(skb, portid, seq, event, sizeof(*nfmsg), flags);
nlh               535 net/netfilter/nfnetlink_cthelper.c 	if (nlh == NULL)
nlh               538 net/netfilter/nfnetlink_cthelper.c 	nfmsg = nlmsg_data(nlh);
nlh               566 net/netfilter/nfnetlink_cthelper.c 	nlmsg_end(skb, nlh);
nlh               571 net/netfilter/nfnetlink_cthelper.c 	nlmsg_cancel(skb, nlh);
nlh               598 net/netfilter/nfnetlink_cthelper.c 					    cb->nlh->nlmsg_seq,
nlh               599 net/netfilter/nfnetlink_cthelper.c 					    NFNL_MSG_TYPE(cb->nlh->nlmsg_type),
nlh               616 net/netfilter/nfnetlink_cthelper.c 			     struct sk_buff *skb, const struct nlmsghdr *nlh,
nlh               631 net/netfilter/nfnetlink_cthelper.c 	if (nlh->nlmsg_flags & NLM_F_DUMP) {
nlh               635 net/netfilter/nfnetlink_cthelper.c 		return netlink_dump_start(nfnl, skb, nlh, &c);
nlh               667 net/netfilter/nfnetlink_cthelper.c 					      nlh->nlmsg_seq,
nlh               668 net/netfilter/nfnetlink_cthelper.c 					      NFNL_MSG_TYPE(nlh->nlmsg_type),
nlh               687 net/netfilter/nfnetlink_cthelper.c 			     struct sk_buff *skb, const struct nlmsghdr *nlh,
nlh                76 net/netfilter/nfnetlink_cttimeout.c 				 const struct nlmsghdr *nlh,
nlh               101 net/netfilter/nfnetlink_cttimeout.c 		if (nlh->nlmsg_flags & NLM_F_EXCL)
nlh               109 net/netfilter/nfnetlink_cttimeout.c 		if (nlh->nlmsg_flags & NLM_F_REPLACE) {
nlh               162 net/netfilter/nfnetlink_cttimeout.c 	struct nlmsghdr *nlh;
nlh               170 net/netfilter/nfnetlink_cttimeout.c 	nlh = nlmsg_put(skb, portid, seq, event, sizeof(*nfmsg), flags);
nlh               171 net/netfilter/nfnetlink_cttimeout.c 	if (nlh == NULL)
nlh               174 net/netfilter/nfnetlink_cttimeout.c 	nfmsg = nlmsg_data(nlh);
nlh               197 net/netfilter/nfnetlink_cttimeout.c 	nlmsg_end(skb, nlh);
nlh               202 net/netfilter/nfnetlink_cttimeout.c 	nlmsg_cancel(skb, nlh);
nlh               228 net/netfilter/nfnetlink_cttimeout.c 					   cb->nlh->nlmsg_seq,
nlh               229 net/netfilter/nfnetlink_cttimeout.c 					   NFNL_MSG_TYPE(cb->nlh->nlmsg_type),
nlh               243 net/netfilter/nfnetlink_cttimeout.c 				 const struct nlmsghdr *nlh,
nlh               251 net/netfilter/nfnetlink_cttimeout.c 	if (nlh->nlmsg_flags & NLM_F_DUMP) {
nlh               255 net/netfilter/nfnetlink_cttimeout.c 		return netlink_dump_start(ctnl, skb, nlh, &c);
nlh               275 net/netfilter/nfnetlink_cttimeout.c 					     nlh->nlmsg_seq,
nlh               276 net/netfilter/nfnetlink_cttimeout.c 					     NFNL_MSG_TYPE(nlh->nlmsg_type),
nlh               314 net/netfilter/nfnetlink_cttimeout.c 				 const struct nlmsghdr *nlh,
nlh               346 net/netfilter/nfnetlink_cttimeout.c 				 const struct nlmsghdr *nlh,
nlh               384 net/netfilter/nfnetlink_cttimeout.c 	struct nlmsghdr *nlh;
nlh               391 net/netfilter/nfnetlink_cttimeout.c 	nlh = nlmsg_put(skb, portid, seq, event, sizeof(*nfmsg), flags);
nlh               392 net/netfilter/nfnetlink_cttimeout.c 	if (nlh == NULL)
nlh               395 net/netfilter/nfnetlink_cttimeout.c 	nfmsg = nlmsg_data(nlh);
nlh               414 net/netfilter/nfnetlink_cttimeout.c 	nlmsg_end(skb, nlh);
nlh               419 net/netfilter/nfnetlink_cttimeout.c 	nlmsg_cancel(skb, nlh);
nlh               425 net/netfilter/nfnetlink_cttimeout.c 				 const struct nlmsghdr *nlh,
nlh               494 net/netfilter/nfnetlink_cttimeout.c 					  nlh->nlmsg_seq,
nlh               495 net/netfilter/nfnetlink_cttimeout.c 					  NFNL_MSG_TYPE(nlh->nlmsg_type),
nlh               349 net/netfilter/nfnetlink_log.c 		struct nlmsghdr *nlh = nlmsg_put(inst->skb, 0, 0,
nlh               353 net/netfilter/nfnetlink_log.c 		if (WARN_ONCE(!nlh, "bad nlskb size: %u, tailroom %d\n",
nlh               455 net/netfilter/nfnetlink_log.c 	struct nlmsghdr *nlh;
nlh               461 net/netfilter/nfnetlink_log.c 	nlh = nlmsg_put(inst->skb, 0, 0,
nlh               464 net/netfilter/nfnetlink_log.c 	if (!nlh)
nlh               466 net/netfilter/nfnetlink_log.c 	nfmsg = nlmsg_data(nlh);
nlh               653 net/netfilter/nfnetlink_log.c 	nlh->nlmsg_len = inst->skb->tail - old_tail;
nlh               849 net/netfilter/nfnetlink_log.c 			      struct sk_buff *skb, const struct nlmsghdr *nlh,
nlh               873 net/netfilter/nfnetlink_log.c 			      struct sk_buff *skb, const struct nlmsghdr *nlh,
nlh               877 net/netfilter/nfnetlink_log.c 	struct nfgenmsg *nfmsg = nlmsg_data(nlh);
nlh               296 net/netfilter/nfnetlink_osf.c 				 struct sk_buff *skb, const struct nlmsghdr *nlh,
nlh               310 net/netfilter/nfnetlink_osf.c 	if (!(nlh->nlmsg_flags & NLM_F_CREATE))
nlh               328 net/netfilter/nfnetlink_osf.c 		if (nlh->nlmsg_flags & NLM_F_EXCL)
nlh               344 net/netfilter/nfnetlink_osf.c 				    const struct nlmsghdr *nlh,
nlh               385 net/netfilter/nfnetlink_queue.c 	struct nlmsghdr *nlh;
nlh               472 net/netfilter/nfnetlink_queue.c 	nlh = nlmsg_put(skb, 0, 0,
nlh               475 net/netfilter/nfnetlink_queue.c 	if (!nlh) {
nlh               480 net/netfilter/nfnetlink_queue.c 	nfmsg = nlmsg_data(nlh);
nlh               623 net/netfilter/nfnetlink_queue.c 	nlh->nlmsg_len = skb->len;
nlh              1061 net/netfilter/nfnetlink_queue.c 				    const struct nlmsghdr *nlh,
nlh              1065 net/netfilter/nfnetlink_queue.c 	struct nfgenmsg *nfmsg = nlmsg_data(nlh);
nlh              1110 net/netfilter/nfnetlink_queue.c 				      const struct nlmsghdr *nlh,
nlh              1127 net/netfilter/nfnetlink_queue.c 				      nlmsg_report(nlh));
nlh              1169 net/netfilter/nfnetlink_queue.c 			      const struct nlmsghdr *nlh,
nlh              1173 net/netfilter/nfnetlink_queue.c 	struct nfgenmsg *nfmsg = nlmsg_data(nlh);
nlh              1205 net/netfilter/nfnetlink_queue.c 			ct = nfqnl_ct_parse(nfnl_ct, nlh, nfqa, entry, &ctinfo);
nlh              1234 net/netfilter/nfnetlink_queue.c 			     struct sk_buff *skb, const struct nlmsghdr *nlh,
nlh              1255 net/netfilter/nfnetlink_queue.c 			     struct sk_buff *skb, const struct nlmsghdr *nlh,
nlh              1259 net/netfilter/nfnetlink_queue.c 	struct nfgenmsg *nfmsg = nlmsg_data(nlh);
nlh               574 net/netfilter/nft_compat.c 	struct nlmsghdr *nlh;
nlh               579 net/netfilter/nft_compat.c 	nlh = nlmsg_put(skb, portid, seq, event, sizeof(*nfmsg), flags);
nlh               580 net/netfilter/nft_compat.c 	if (nlh == NULL)
nlh               583 net/netfilter/nft_compat.c 	nfmsg = nlmsg_data(nlh);
nlh               593 net/netfilter/nft_compat.c 	nlmsg_end(skb, nlh);
nlh               598 net/netfilter/nft_compat.c 	nlmsg_cancel(skb, nlh);
nlh               603 net/netfilter/nft_compat.c 			       struct sk_buff *skb, const struct nlmsghdr *nlh,
nlh               623 net/netfilter/nft_compat.c 	nfmsg = nlmsg_data(nlh);
nlh               662 net/netfilter/nft_compat.c 				  nlh->nlmsg_seq,
nlh               663 net/netfilter/nft_compat.c 				  NFNL_MSG_TYPE(nlh->nlmsg_type),
nlh               238 net/netlabel/netlabel_calipso.c 	cb_arg.seq = cb->nlh->nlmsg_seq;
nlh               657 net/netlabel/netlabel_cipso_v4.c 	cb_arg.seq = cb->nlh->nlmsg_seq;
nlh               523 net/netlabel/netlabel_mgmt.c 	cb_arg.seq = cb->nlh->nlmsg_seq;
nlh               656 net/netlabel/netlabel_mgmt.c 	data = genlmsg_put(skb, NETLINK_CB(cb->skb).portid, cb->nlh->nlmsg_seq,
nlh              1179 net/netlabel/netlabel_unlabeled.c 	cb_arg.seq = cb->nlh->nlmsg_seq;
nlh              1258 net/netlabel/netlabel_unlabeled.c 	cb_arg.seq = cb->nlh->nlmsg_seq;
nlh              2168 net/netlink/af_netlink.c 	struct nlmsghdr *nlh;
nlh              2171 net/netlink/af_netlink.c 	nlh = skb_put(skb, NLMSG_ALIGN(size));
nlh              2172 net/netlink/af_netlink.c 	nlh->nlmsg_type = type;
nlh              2173 net/netlink/af_netlink.c 	nlh->nlmsg_len = size;
nlh              2174 net/netlink/af_netlink.c 	nlh->nlmsg_flags = flags;
nlh              2175 net/netlink/af_netlink.c 	nlh->nlmsg_pid = portid;
nlh              2176 net/netlink/af_netlink.c 	nlh->nlmsg_seq = seq;
nlh              2178 net/netlink/af_netlink.c 		memset(nlmsg_data(nlh) + len, 0, NLMSG_ALIGN(size) - size);
nlh              2179 net/netlink/af_netlink.c 	return nlh;
nlh              2194 net/netlink/af_netlink.c 	struct nlmsghdr *nlh;
nlh              2260 net/netlink/af_netlink.c 	nlh = nlmsg_put_answer(skb, cb, NLMSG_DONE,
nlh              2263 net/netlink/af_netlink.c 	if (WARN_ON(!nlh))
nlh              2266 net/netlink/af_netlink.c 	nl_dump_check_consistent(cb, nlh);
nlh              2268 net/netlink/af_netlink.c 	memcpy(nlmsg_data(nlh), &nlk->dump_done_errno,
nlh              2272 net/netlink/af_netlink.c 		nlh->nlmsg_flags |= NLM_F_ACK_TLVS;
nlh              2274 net/netlink/af_netlink.c 			nlmsg_end(skb, nlh);
nlh              2300 net/netlink/af_netlink.c 			 const struct nlmsghdr *nlh,
nlh              2333 net/netlink/af_netlink.c 	cb->nlh = nlh;
nlh              2376 net/netlink/af_netlink.c void netlink_ack(struct sk_buff *in_skb, struct nlmsghdr *nlh, int err,
nlh              2397 net/netlink/af_netlink.c 			payload += nlmsg_len(nlh);
nlh              2419 net/netlink/af_netlink.c 	rep = __nlmsg_put(skb, NETLINK_CB(in_skb).portid, nlh->nlmsg_seq,
nlh              2423 net/netlink/af_netlink.c 	memcpy(&errmsg->msg, nlh, payload > sizeof(*errmsg) ? nlh->nlmsg_len : sizeof(*nlh));
nlh              2437 net/netlink/af_netlink.c 						    (u8 *)nlh));
nlh              2457 net/netlink/af_netlink.c 	struct nlmsghdr *nlh;
nlh              2464 net/netlink/af_netlink.c 		nlh = nlmsg_hdr(skb);
nlh              2467 net/netlink/af_netlink.c 		if (nlh->nlmsg_len < NLMSG_HDRLEN || skb->len < nlh->nlmsg_len)
nlh              2471 net/netlink/af_netlink.c 		if (!(nlh->nlmsg_flags & NLM_F_REQUEST))
nlh              2475 net/netlink/af_netlink.c 		if (nlh->nlmsg_type < NLMSG_MIN_TYPE)
nlh              2478 net/netlink/af_netlink.c 		err = cb(skb, nlh, &extack);
nlh              2483 net/netlink/af_netlink.c 		if (nlh->nlmsg_flags & NLM_F_ACK || err)
nlh              2484 net/netlink/af_netlink.c 			netlink_ack(skb, nlh, err, &extack);
nlh              2487 net/netlink/af_netlink.c 		msglen = NLMSG_ALIGN(nlh->nlmsg_len);
nlh                48 net/netlink/diag.c 	struct nlmsghdr *nlh;
nlh                52 net/netlink/diag.c 	nlh = nlmsg_put(skb, portid, seq, SOCK_DIAG_BY_FAMILY, sizeof(*rep),
nlh                54 net/netlink/diag.c 	if (!nlh)
nlh                57 net/netlink/diag.c 	rep = nlmsg_data(nlh);
nlh                81 net/netlink/diag.c 	nlmsg_end(skb, nlh);
nlh                85 net/netlink/diag.c 	nlmsg_cancel(skb, nlh);
nlh               101 net/netlink/diag.c 	req = nlmsg_data(cb->nlh);
nlh               138 net/netlink/diag.c 				 cb->nlh->nlmsg_seq,
nlh               168 net/netlink/diag.c 				 cb->nlh->nlmsg_seq,
nlh               190 net/netlink/diag.c 	req = nlmsg_data(cb->nlh);
nlh               444 net/netlink/genetlink.c 	struct nlmsghdr *nlh;
nlh               447 net/netlink/genetlink.c 	nlh = nlmsg_put(skb, portid, seq, family->id, GENL_HDRLEN +
nlh               449 net/netlink/genetlink.c 	if (nlh == NULL)
nlh               452 net/netlink/genetlink.c 	hdr = nlmsg_data(nlh);
nlh               503 net/netlink/genetlink.c 			       struct nlmsghdr *nlh,
nlh               509 net/netlink/genetlink.c 	struct genlmsghdr *hdr = nlmsg_data(nlh);
nlh               518 net/netlink/genetlink.c 	if (nlh->nlmsg_len < nlmsg_msg_size(hdrlen))
nlh               533 net/netlink/genetlink.c 	if ((nlh->nlmsg_flags & NLM_F_DUMP) == NLM_F_DUMP) {
nlh               542 net/netlink/genetlink.c 			if (nlh->nlmsg_len < nlmsg_msg_size(hdrlen))
nlh               551 net/netlink/genetlink.c 				rc = __nla_validate(nlmsg_attrdata(nlh, hdrlen),
nlh               552 net/netlink/genetlink.c 						    nlmsg_attrlen(nlh, hdrlen),
nlh               572 net/netlink/genetlink.c 			rc = __netlink_dump_start(net->genl_sock, skb, nlh, &c);
nlh               583 net/netlink/genetlink.c 			rc = __netlink_dump_start(net->genl_sock, skb, nlh, &c);
nlh               607 net/netlink/genetlink.c 		err = __nlmsg_parse(nlh, hdrlen, attrbuf, family->maxattr,
nlh               613 net/netlink/genetlink.c 	info.snd_seq = nlh->nlmsg_seq;
nlh               615 net/netlink/genetlink.c 	info.nlhdr = nlh;
nlh               616 net/netlink/genetlink.c 	info.genlhdr = nlmsg_data(nlh);
nlh               617 net/netlink/genetlink.c 	info.userhdr = nlmsg_data(nlh) + GENL_HDRLEN;
nlh               641 net/netlink/genetlink.c static int genl_rcv_msg(struct sk_buff *skb, struct nlmsghdr *nlh,
nlh               647 net/netlink/genetlink.c 	family = genl_family_find_byid(nlh->nlmsg_type);
nlh               654 net/netlink/genetlink.c 	err = genl_family_rcv_msg(family, skb, nlh, extack);
nlh               819 net/netlink/genetlink.c 				   cb->nlh->nlmsg_seq, NLM_F_MULTI,
nlh                66 net/nfc/netlink.c 	hdr = genlmsg_put(msg, NETLINK_CB(cb->skb).portid, cb->nlh->nlmsg_seq,
nlh               114 net/nfc/netlink.c 	rc = nlmsg_parse_deprecated(cb->nlh,
nlh               629 net/nfc/netlink.c 					  cb->nlh->nlmsg_seq, cb, NLM_F_MULTI);
nlh              1384 net/nfc/netlink.c 					  cb->nlh->nlmsg_seq, cb, NLM_F_MULTI);
nlh              1378 net/openvswitch/datapath.c 	struct ovs_header *ovs_header = genlmsg_data(nlmsg_data(cb->nlh));
nlh              1384 net/openvswitch/datapath.c 	err = genlmsg_parse_deprecated(cb->nlh, &dp_flow_genl_family, a,
nlh              1410 net/openvswitch/datapath.c 					   cb->nlh->nlmsg_seq, NLM_F_MULTI,
nlh              1835 net/openvswitch/datapath.c 					 cb->nlh->nlmsg_seq, NLM_F_MULTI,
nlh              2266 net/openvswitch/datapath.c 	struct ovs_header *ovs_header = genlmsg_data(nlmsg_data(cb->nlh));
nlh              2286 net/openvswitch/datapath.c 						    cb->nlh->nlmsg_seq,
nlh               135 net/packet/diag.c 	struct nlmsghdr *nlh;
nlh               139 net/packet/diag.c 	nlh = nlmsg_put(skb, portid, seq, SOCK_DIAG_BY_FAMILY, sizeof(*rp), flags);
nlh               140 net/packet/diag.c 	if (!nlh)
nlh               143 net/packet/diag.c 	rp = nlmsg_data(nlh);
nlh               180 net/packet/diag.c 	nlmsg_end(skb, nlh);
nlh               184 net/packet/diag.c 	nlmsg_cancel(skb, nlh);
nlh               197 net/packet/diag.c 	req = nlmsg_data(cb->nlh);
nlh               211 net/packet/diag.c 				 cb->nlh->nlmsg_seq, NLM_F_MULTI,
nlh                51 net/phonet/pn_netlink.c static int addr_doit(struct sk_buff *skb, struct nlmsghdr *nlh,
nlh                69 net/phonet/pn_netlink.c 	err = nlmsg_parse_deprecated(nlh, sizeof(*ifm), tb, IFA_MAX,
nlh                74 net/phonet/pn_netlink.c 	ifm = nlmsg_data(nlh);
nlh                86 net/phonet/pn_netlink.c 	if (nlh->nlmsg_type == RTM_NEWADDR)
nlh                91 net/phonet/pn_netlink.c 		phonet_address_notify(nlh->nlmsg_type, dev, pnaddr);
nlh                99 net/phonet/pn_netlink.c 	struct nlmsghdr *nlh;
nlh               101 net/phonet/pn_netlink.c 	nlh = nlmsg_put(skb, portid, seq, event, sizeof(*ifm), 0);
nlh               102 net/phonet/pn_netlink.c 	if (nlh == NULL)
nlh               105 net/phonet/pn_netlink.c 	ifm = nlmsg_data(nlh);
nlh               113 net/phonet/pn_netlink.c 	nlmsg_end(skb, nlh);
nlh               117 net/phonet/pn_netlink.c 	nlmsg_cancel(skb, nlh);
nlh               145 net/phonet/pn_netlink.c 					cb->nlh->nlmsg_seq, RTM_NEWADDR) < 0)
nlh               164 net/phonet/pn_netlink.c 	struct nlmsghdr *nlh;
nlh               166 net/phonet/pn_netlink.c 	nlh = nlmsg_put(skb, portid, seq, event, sizeof(*rtm), 0);
nlh               167 net/phonet/pn_netlink.c 	if (nlh == NULL)
nlh               170 net/phonet/pn_netlink.c 	rtm = nlmsg_data(nlh);
nlh               183 net/phonet/pn_netlink.c 	nlmsg_end(skb, nlh);
nlh               187 net/phonet/pn_netlink.c 	nlmsg_cancel(skb, nlh);
nlh               218 net/phonet/pn_netlink.c static int route_doit(struct sk_buff *skb, struct nlmsghdr *nlh,
nlh               236 net/phonet/pn_netlink.c 	err = nlmsg_parse_deprecated(nlh, sizeof(*rtm), tb, RTA_MAX,
nlh               241 net/phonet/pn_netlink.c 	rtm = nlmsg_data(nlh);
nlh               254 net/phonet/pn_netlink.c 	if (nlh->nlmsg_type == RTM_NEWROUTE)
nlh               259 net/phonet/pn_netlink.c 		rtm_phonet_notify(nlh->nlmsg_type, dev, dst);
nlh               276 net/phonet/pn_netlink.c 			       cb->nlh->nlmsg_seq, RTM_NEWROUTE) < 0)
nlh                86 net/psample/psample.c 					    cb->nlh->nlmsg_seq, NLM_F_MULTI);
nlh              1074 net/qrtr/qrtr.c static int qrtr_addr_doit(struct sk_buff *skb, struct nlmsghdr *nlh,
nlh              1089 net/qrtr/qrtr.c 	rc = nlmsg_parse_deprecated(nlh, sizeof(*ifm), tb, IFA_MAX,
nlh              1094 net/qrtr/qrtr.c 	ifm = nlmsg_data(nlh);
nlh              1043 net/sched/act_api.c 	struct nlmsghdr *nlh;
nlh              1047 net/sched/act_api.c 	nlh = nlmsg_put(skb, portid, seq, event, sizeof(*t), flags);
nlh              1048 net/sched/act_api.c 	if (!nlh)
nlh              1050 net/sched/act_api.c 	t = nlmsg_data(nlh);
nlh              1064 net/sched/act_api.c 	nlh->nlmsg_len = skb_tail_pointer(skb) - b;
nlh              1142 net/sched/act_api.c 	struct nlmsghdr *nlh;
nlh              1170 net/sched/act_api.c 	nlh = nlmsg_put(skb, portid, n->nlmsg_seq, RTM_DELACTION,
nlh              1172 net/sched/act_api.c 	if (!nlh) {
nlh              1176 net/sched/act_api.c 	t = nlmsg_data(nlh);
nlh              1195 net/sched/act_api.c 	nlh->nlmsg_len = skb_tail_pointer(skb) - b;
nlh              1196 net/sched/act_api.c 	nlh->nlmsg_flags |= NLM_F_ROOT;
nlh              1458 net/sched/act_api.c 	struct nlmsghdr *nlh;
nlh              1463 net/sched/act_api.c 	struct tcamsg *t = (struct tcamsg *) nlmsg_data(cb->nlh);
nlh              1472 net/sched/act_api.c 	ret = nlmsg_parse_deprecated(cb->nlh, sizeof(struct tcamsg), tb,
nlh              1497 net/sched/act_api.c 	nlh = nlmsg_put(skb, NETLINK_CB(cb->skb).portid, cb->nlh->nlmsg_seq,
nlh              1498 net/sched/act_api.c 			cb->nlh->nlmsg_type, sizeof(*t), 0);
nlh              1499 net/sched/act_api.c 	if (!nlh)
nlh              1505 net/sched/act_api.c 	t = nlmsg_data(nlh);
nlh              1531 net/sched/act_api.c 	nlh->nlmsg_len = skb_tail_pointer(skb) - b;
nlh              1533 net/sched/act_api.c 		nlh->nlmsg_flags |= NLM_F_MULTI;
nlh              1788 net/sched/cls_api.c 	struct nlmsghdr  *nlh;
nlh              1791 net/sched/cls_api.c 	nlh = nlmsg_put(skb, portid, seq, event, sizeof(*tcm), flags);
nlh              1792 net/sched/cls_api.c 	if (!nlh)
nlh              1794 net/sched/cls_api.c 	tcm = nlmsg_data(nlh);
nlh              1817 net/sched/cls_api.c 	nlh->nlmsg_len = skb_tail_pointer(skb) - b;
nlh              2444 net/sched/cls_api.c 			     a->cb->nlh->nlmsg_seq, NLM_F_MULTI,
nlh              2454 net/sched/cls_api.c 	struct tcmsg *tcm = nlmsg_data(cb->nlh);
nlh              2478 net/sched/cls_api.c 					  cb->nlh->nlmsg_seq, NLM_F_MULTI,
nlh              2516 net/sched/cls_api.c 	struct tcmsg *tcm = nlmsg_data(cb->nlh);
nlh              2522 net/sched/cls_api.c 	if (nlmsg_len(cb->nlh) < sizeof(*tcm))
nlh              2525 net/sched/cls_api.c 	err = nlmsg_parse_deprecated(cb->nlh, sizeof(*tcm), tca, TCA_MAX,
nlh              2613 net/sched/cls_api.c 	struct nlmsghdr *nlh;
nlh              2620 net/sched/cls_api.c 	nlh = nlmsg_put(skb, portid, seq, event, sizeof(*tcm), flags);
nlh              2621 net/sched/cls_api.c 	if (!nlh)
nlh              2623 net/sched/cls_api.c 	tcm = nlmsg_data(nlh);
nlh              2646 net/sched/cls_api.c 	nlh->nlmsg_len = skb_tail_pointer(skb) - b;
nlh              2900 net/sched/cls_api.c 	struct tcmsg *tcm = nlmsg_data(cb->nlh);
nlh              2907 net/sched/cls_api.c 	if (nlmsg_len(cb->nlh) < sizeof(*tcm))
nlh              2910 net/sched/cls_api.c 	err = nlmsg_parse_deprecated(cb->nlh, sizeof(*tcm), tca, TCA_MAX,
nlh              2978 net/sched/cls_api.c 					 cb->nlh->nlmsg_seq, NLM_F_MULTI,
nlh               873 net/sched/sch_api.c 	struct nlmsghdr  *nlh;
nlh               881 net/sched/sch_api.c 	nlh = nlmsg_put(skb, portid, seq, event, sizeof(*tcm), flags);
nlh               882 net/sched/sch_api.c 	if (!nlh)
nlh               884 net/sched/sch_api.c 	tcm = nlmsg_data(nlh);
nlh               937 net/sched/sch_api.c 	nlh->nlmsg_len = skb_tail_pointer(skb) - b;
nlh              1691 net/sched/sch_api.c 				  cb->nlh->nlmsg_seq, NLM_F_MULTI,
nlh              1713 net/sched/sch_api.c 				  cb->nlh->nlmsg_seq, NLM_F_MULTI,
nlh              1733 net/sched/sch_api.c 	const struct nlmsghdr *nlh = cb->nlh;
nlh              1743 net/sched/sch_api.c 	err = nlmsg_parse_deprecated(nlh, sizeof(struct tcmsg), tca, TCA_MAX,
nlh              1790 net/sched/sch_api.c 	struct nlmsghdr  *nlh;
nlh              1796 net/sched/sch_api.c 	nlh = nlmsg_put(skb, portid, seq, event, sizeof(*tcm), flags);
nlh              1797 net/sched/sch_api.c 	if (!nlh)
nlh              1799 net/sched/sch_api.c 	tcm = nlmsg_data(nlh);
nlh              1822 net/sched/sch_api.c 	nlh->nlmsg_len = skb_tail_pointer(skb) - b;
nlh              2124 net/sched/sch_api.c 			      a->cb->nlh->nlmsg_seq, NLM_F_MULTI,
nlh              2190 net/sched/sch_api.c 	struct tcmsg *tcm = nlmsg_data(cb->nlh);
nlh              2196 net/sched/sch_api.c 	if (nlmsg_len(cb->nlh) < sizeof(*tcm))
nlh               134 net/sctp/diag.c 	struct nlmsghdr  *nlh;
nlh               139 net/sctp/diag.c 	nlh = nlmsg_put(skb, portid, seq, unlh->nlmsg_type, sizeof(*r),
nlh               141 net/sctp/diag.c 	if (!nlh)
nlh               144 net/sctp/diag.c 	r = nlmsg_data(nlh);
nlh               212 net/sctp/diag.c 	nlmsg_end(skb, nlh);
nlh               216 net/sctp/diag.c 	nlmsg_cancel(skb, nlh);
nlh               225 net/sctp/diag.c 	const struct nlmsghdr *nlh;
nlh               255 net/sctp/diag.c 	const struct nlmsghdr *nlh = commp->nlh;
nlh               278 net/sctp/diag.c 				  nlh->nlmsg_seq, 0, nlh,
nlh               322 net/sctp/diag.c 					cb->nlh->nlmsg_seq,
nlh               323 net/sctp/diag.c 					NLM_F_MULTI, cb->nlh,
nlh               333 net/sctp/diag.c 					cb->nlh->nlmsg_seq, 0, cb->nlh,
nlh               403 net/sctp/diag.c 				cb->nlh->nlmsg_seq, NLM_F_MULTI,
nlh               404 net/sctp/diag.c 				cb->nlh, commp->net_admin) < 0) {
nlh               432 net/sctp/diag.c 			      const struct nlmsghdr *nlh,
nlh               440 net/sctp/diag.c 		.nlh = nlh,
nlh                84 net/smc/smc_diag.c 	struct nlmsghdr *nlh;
nlh                86 net/smc/smc_diag.c 	nlh = nlmsg_put(skb, NETLINK_CB(cb->skb).portid, cb->nlh->nlmsg_seq,
nlh                87 net/smc/smc_diag.c 			cb->nlh->nlmsg_type, sizeof(*r), NLM_F_MULTI);
nlh                88 net/smc/smc_diag.c 	if (!nlh)
nlh                91 net/smc/smc_diag.c 	r = nlmsg_data(nlh);
nlh               185 net/smc/smc_diag.c 	nlmsg_end(skb, nlh);
nlh               189 net/smc/smc_diag.c 	nlmsg_cancel(skb, nlh);
nlh               210 net/smc/smc_diag.c 		rc = __smc_diag_dump(sk, skb, cb, nlmsg_data(cb->nlh), bc);
nlh               566 net/smc/smc_pnet.c 			     cb->nlh->nlmsg_seq, NULL, cb->args[0]);
nlh               812 net/tipc/bearer.c 	msg.seq = cb->nlh->nlmsg_seq;
nlh              1147 net/tipc/bearer.c 	msg.seq = cb->nlh->nlmsg_seq;
nlh                53 net/tipc/diag.c 	struct tipc_sock_diag_req *req = nlmsg_data(cb->nlh);
nlh                54 net/tipc/diag.c 	struct nlmsghdr *nlh;
nlh                57 net/tipc/diag.c 	nlh = nlmsg_put_answer(skb, cb, SOCK_DIAG_BY_FAMILY, 0,
nlh                59 net/tipc/diag.c 	if (!nlh)
nlh                67 net/tipc/diag.c 	nlmsg_end(skb, nlh);
nlh               957 net/tipc/name_table.c 	msg.seq = cb->nlh->nlmsg_seq;
nlh               227 net/tipc/net.c 	msg.seq = cb->nlh->nlmsg_seq;
nlh               272 net/tipc/netlink.c int tipc_nlmsg_parse(const struct nlmsghdr *nlh, struct nlattr ***attr)
nlh               280 net/tipc/netlink.c 	return nlmsg_parse_deprecated(nlh, GENL_HDRLEN, *attr, maxattr,
nlh                41 net/tipc/netlink.h int tipc_nlmsg_parse(const struct nlmsghdr *nlh, struct nlattr ***buf);
nlh               191 net/tipc/netlink_compat.c 	cb.nlh = (struct nlmsghdr *)arg->data;
nlh              1993 net/tipc/node.c 	msg.seq = cb->nlh->nlmsg_seq;
nlh              2312 net/tipc/node.c 	msg.seq = cb->nlh->nlmsg_seq;
nlh              2462 net/tipc/node.c 	msg.seq = cb->nlh->nlmsg_seq;
nlh              2490 net/tipc/node.c 		err = tipc_nlmsg_parse(cb->nlh, &attrs);
nlh              2518 net/tipc/node.c 	msg.seq = cb->nlh->nlmsg_seq;
nlh              3336 net/tipc/socket.c 	hdr = genlmsg_put(skb, NETLINK_CB(cb->skb).portid, cb->nlh->nlmsg_seq,
nlh              3516 net/tipc/socket.c 	hdr = genlmsg_put(skb, NETLINK_CB(cb->skb).portid, cb->nlh->nlmsg_seq,
nlh              3601 net/tipc/socket.c 		err = tipc_nlmsg_parse(cb->nlh, &attrs);
nlh               463 net/tipc/udp_media.c 		err = tipc_nlmsg_parse(cb->nlh, &attrs);
nlh               511 net/tipc/udp_media.c 		hdr = genlmsg_put(skb, portid, cb->nlh->nlmsg_seq,
nlh               125 net/unix/diag.c 	struct nlmsghdr *nlh;
nlh               128 net/unix/diag.c 	nlh = nlmsg_put(skb, portid, seq, SOCK_DIAG_BY_FAMILY, sizeof(*rep),
nlh               130 net/unix/diag.c 	if (!nlh)
nlh               133 net/unix/diag.c 	rep = nlmsg_data(nlh);
nlh               172 net/unix/diag.c 	nlmsg_end(skb, nlh);
nlh               176 net/unix/diag.c 	nlmsg_cancel(skb, nlh);
nlh               201 net/unix/diag.c 	req = nlmsg_data(cb->nlh);
nlh               222 net/unix/diag.c 					 cb->nlh->nlmsg_seq,
nlh               258 net/unix/diag.c 			       const struct nlmsghdr *nlh,
nlh               289 net/unix/diag.c 			   nlh->nlmsg_seq, 0, req->udiag_ino);
nlh                19 net/vmw_vsock/diag.c 	struct nlmsghdr *nlh;
nlh                21 net/vmw_vsock/diag.c 	nlh = nlmsg_put(skb, portid, seq, SOCK_DIAG_BY_FAMILY, sizeof(*rep),
nlh                23 net/vmw_vsock/diag.c 	if (!nlh)
nlh                26 net/vmw_vsock/diag.c 	rep = nlmsg_data(nlh);
nlh                58 net/vmw_vsock/diag.c 	req = nlmsg_data(cb->nlh);
nlh                87 net/vmw_vsock/diag.c 						 cb->nlh->nlmsg_seq,
nlh               121 net/vmw_vsock/diag.c 					 cb->nlh->nlmsg_seq,
nlh               171 net/wimax/op-msg.c 	struct nlmsghdr *nlh = (void *) msg->head;
nlh               174 net/wimax/op-msg.c 	nla = nlmsg_find_attr(nlh, sizeof(struct genlmsghdr),
nlh               193 net/wimax/op-msg.c 	struct nlmsghdr *nlh = (void *) msg->head;
nlh               196 net/wimax/op-msg.c 	nla = nlmsg_find_attr(nlh, sizeof(struct genlmsghdr),
nlh               214 net/wimax/op-msg.c 	struct nlmsghdr *nlh = (void *) msg->head;
nlh               217 net/wimax/op-msg.c 	nla = nlmsg_find_attr(nlh, sizeof(struct genlmsghdr),
nlh               322 net/wimax/op-msg.c 	struct nlmsghdr *nlh = info->nlhdr;
nlh               374 net/wimax/op-msg.c 		 nlh->nlmsg_len, nlh->nlmsg_type, nlh->nlmsg_flags,
nlh               375 net/wimax/op-msg.c 		 nlh->nlmsg_seq, nlh->nlmsg_pid);
nlh               814 net/wireless/nl80211.c 		err = nlmsg_parse_deprecated(cb->nlh,
nlh              2472 net/wireless/nl80211.c 	ret = nlmsg_parse_deprecated(cb->nlh,
nlh              2546 net/wireless/nl80211.c 						 cb->nlh->nlmsg_seq,
nlh              3341 net/wireless/nl80211.c 					       cb->nlh->nlmsg_seq, NLM_F_MULTI,
nlh              5313 net/wireless/nl80211.c 				cb->nlh->nlmsg_seq, NLM_F_MULTI,
nlh              6194 net/wireless/nl80211.c 				       cb->nlh->nlmsg_seq, NLM_F_MULTI,
nlh              6393 net/wireless/nl80211.c 				       cb->nlh->nlmsg_seq, NLM_F_MULTI,
nlh              7110 net/wireless/nl80211.c 		err = nl80211_send_regdom(skb, cb, cb->nlh->nlmsg_seq,
nlh              7127 net/wireless/nl80211.c 		err = nl80211_send_regdom(skb, cb, cb->nlh->nlmsg_seq,
nlh              8776 net/wireless/nl80211.c 				cb->nlh->nlmsg_seq, NLM_F_MULTI,
nlh              8914 net/wireless/nl80211.c 				cb->nlh->nlmsg_seq, NLM_F_MULTI,
nlh              9812 net/wireless/nl80211.c 		err = nlmsg_parse_deprecated(cb->nlh,
nlh              9842 net/wireless/nl80211.c 					   cb->nlh->nlmsg_seq, NLM_F_MULTI,
nlh              13018 net/wireless/nl80211.c 	err = nlmsg_parse_deprecated(cb->nlh,
nlh              13137 net/wireless/nl80211.c 					   cb->nlh->nlmsg_seq, NLM_F_MULTI,
nlh              13897 net/wireless/nl80211.c 		struct nlmsghdr *nlh = nlmsg_hdr(skb);
nlh              13899 net/wireless/nl80211.c 		memset(nlmsg_data(nlh), 0, nlmsg_len(nlh));
nlh               422 net/wireless/wext-core.c 	struct nlmsghdr  *nlh;
nlh               424 net/wireless/wext-core.c 	nlh = nlmsg_put(skb, 0, 0, RTM_NEWLINK, sizeof(*r), 0);
nlh               425 net/wireless/wext-core.c 	if (!nlh)
nlh               428 net/wireless/wext-core.c 	r = nlmsg_data(nlh);
nlh               439 net/wireless/wext-core.c 	return nlh;
nlh               441 net/wireless/wext-core.c 	nlmsg_cancel(skb, nlh);
nlh               465 net/wireless/wext-core.c 	struct nlmsghdr *nlh;
nlh               560 net/wireless/wext-core.c 	nlh = rtnetlink_ifinfo_prep(dev, skb);
nlh               561 net/wireless/wext-core.c 	if (WARN_ON(!nlh)) {
nlh               582 net/wireless/wext-core.c 	nlmsg_end(skb, nlh);
nlh               594 net/wireless/wext-core.c 	nlh = rtnetlink_ifinfo_prep(dev, compskb);
nlh               595 net/wireless/wext-core.c 	if (WARN_ON(!nlh)) {
nlh               627 net/wireless/wext-core.c 	nlmsg_end(compskb, nlh);
nlh                86 net/xdp/xsk_diag.c 	struct nlmsghdr *nlh;
nlh                88 net/xdp/xsk_diag.c 	nlh = nlmsg_put(nlskb, portid, seq, SOCK_DIAG_BY_FAMILY, sizeof(*msg),
nlh                90 net/xdp/xsk_diag.c 	if (!nlh)
nlh                93 net/xdp/xsk_diag.c 	msg = nlmsg_data(nlh);
nlh               122 net/xdp/xsk_diag.c 	nlmsg_end(nlskb, nlh);
nlh               127 net/xdp/xsk_diag.c 	nlmsg_cancel(nlskb, nlh);
nlh               133 net/xdp/xsk_diag.c 	struct xdp_diag_req *req = nlmsg_data(cb->nlh);
nlh               149 net/xdp/xsk_diag.c 				  cb->nlh->nlmsg_seq, NLM_F_MULTI,
nlh               671 net/xfrm/xfrm_user.c static int xfrm_add_sa(struct sk_buff *skb, struct nlmsghdr *nlh,
nlh               675 net/xfrm/xfrm_user.c 	struct xfrm_usersa_info *p = nlmsg_data(nlh);
nlh               689 net/xfrm/xfrm_user.c 	if (nlh->nlmsg_type == XFRM_MSG_NEWSA)
nlh               706 net/xfrm/xfrm_user.c 	c.seq = nlh->nlmsg_seq;
nlh               707 net/xfrm/xfrm_user.c 	c.portid = nlh->nlmsg_pid;
nlh               708 net/xfrm/xfrm_user.c 	c.event = nlh->nlmsg_type;
nlh               750 net/xfrm/xfrm_user.c static int xfrm_del_sa(struct sk_buff *skb, struct nlmsghdr *nlh,
nlh               757 net/xfrm/xfrm_user.c 	struct xfrm_usersa_id *p = nlmsg_data(nlh);
nlh               776 net/xfrm/xfrm_user.c 	c.seq = nlh->nlmsg_seq;
nlh               777 net/xfrm/xfrm_user.c 	c.portid = nlh->nlmsg_pid;
nlh               778 net/xfrm/xfrm_user.c 	c.event = nlh->nlmsg_type;
nlh               979 net/xfrm/xfrm_user.c 	struct nlmsghdr *nlh;
nlh               982 net/xfrm/xfrm_user.c 	nlh = nlmsg_put(skb, NETLINK_CB(in_skb).portid, sp->nlmsg_seq,
nlh               984 net/xfrm/xfrm_user.c 	if (nlh == NULL)
nlh               987 net/xfrm/xfrm_user.c 	p = nlmsg_data(nlh);
nlh               991 net/xfrm/xfrm_user.c 		nlmsg_cancel(skb, nlh);
nlh               994 net/xfrm/xfrm_user.c 	nlmsg_end(skb, nlh);
nlh              1021 net/xfrm/xfrm_user.c 	info.nlmsg_seq = cb->nlh->nlmsg_seq;
nlh              1030 net/xfrm/xfrm_user.c 		err = nlmsg_parse_deprecated(cb->nlh, 0, attrs, XFRMA_MAX,
nlh              1111 net/xfrm/xfrm_user.c 	struct nlmsghdr *nlh;
nlh              1116 net/xfrm/xfrm_user.c 	nlh = nlmsg_put(skb, portid, seq, XFRM_MSG_NEWSPDINFO, sizeof(u32), 0);
nlh              1117 net/xfrm/xfrm_user.c 	if (nlh == NULL) /* shouldn't really happen ... */
nlh              1120 net/xfrm/xfrm_user.c 	f = nlmsg_data(nlh);
nlh              1149 net/xfrm/xfrm_user.c 		nlmsg_cancel(skb, nlh);
nlh              1153 net/xfrm/xfrm_user.c 	nlmsg_end(skb, nlh);
nlh              1157 net/xfrm/xfrm_user.c static int xfrm_set_spdinfo(struct sk_buff *skb, struct nlmsghdr *nlh,
nlh              1202 net/xfrm/xfrm_user.c static int xfrm_get_spdinfo(struct sk_buff *skb, struct nlmsghdr *nlh,
nlh              1207 net/xfrm/xfrm_user.c 	u32 *flags = nlmsg_data(nlh);
nlh              1209 net/xfrm/xfrm_user.c 	u32 seq = nlh->nlmsg_seq;
nlh              1234 net/xfrm/xfrm_user.c 	struct nlmsghdr *nlh;
nlh              1238 net/xfrm/xfrm_user.c 	nlh = nlmsg_put(skb, portid, seq, XFRM_MSG_NEWSADINFO, sizeof(u32), 0);
nlh              1239 net/xfrm/xfrm_user.c 	if (nlh == NULL) /* shouldn't really happen ... */
nlh              1242 net/xfrm/xfrm_user.c 	f = nlmsg_data(nlh);
nlh              1253 net/xfrm/xfrm_user.c 		nlmsg_cancel(skb, nlh);
nlh              1257 net/xfrm/xfrm_user.c 	nlmsg_end(skb, nlh);
nlh              1261 net/xfrm/xfrm_user.c static int xfrm_get_sadinfo(struct sk_buff *skb, struct nlmsghdr *nlh,
nlh              1266 net/xfrm/xfrm_user.c 	u32 *flags = nlmsg_data(nlh);
nlh              1268 net/xfrm/xfrm_user.c 	u32 seq = nlh->nlmsg_seq;
nlh              1281 net/xfrm/xfrm_user.c static int xfrm_get_sa(struct sk_buff *skb, struct nlmsghdr *nlh,
nlh              1285 net/xfrm/xfrm_user.c 	struct xfrm_usersa_id *p = nlmsg_data(nlh);
nlh              1294 net/xfrm/xfrm_user.c 	resp_skb = xfrm_state_netlink(skb, x, nlh->nlmsg_seq);
nlh              1305 net/xfrm/xfrm_user.c static int xfrm_alloc_userspi(struct sk_buff *skb, struct nlmsghdr *nlh,
nlh              1319 net/xfrm/xfrm_user.c 	p = nlmsg_data(nlh);
nlh              1355 net/xfrm/xfrm_user.c 	resp_skb = xfrm_state_netlink(skb, x, nlh->nlmsg_seq);
nlh              1645 net/xfrm/xfrm_user.c static int xfrm_add_policy(struct sk_buff *skb, struct nlmsghdr *nlh,
nlh              1649 net/xfrm/xfrm_user.c 	struct xfrm_userpolicy_info *p = nlmsg_data(nlh);
nlh              1670 net/xfrm/xfrm_user.c 	excl = nlh->nlmsg_type == XFRM_MSG_NEWPOLICY;
nlh              1680 net/xfrm/xfrm_user.c 	c.event = nlh->nlmsg_type;
nlh              1681 net/xfrm/xfrm_user.c 	c.seq = nlh->nlmsg_seq;
nlh              1682 net/xfrm/xfrm_user.c 	c.portid = nlh->nlmsg_pid;
nlh              1767 net/xfrm/xfrm_user.c 	struct nlmsghdr *nlh;
nlh              1770 net/xfrm/xfrm_user.c 	nlh = nlmsg_put(skb, NETLINK_CB(in_skb).portid, sp->nlmsg_seq,
nlh              1772 net/xfrm/xfrm_user.c 	if (nlh == NULL)
nlh              1775 net/xfrm/xfrm_user.c 	p = nlmsg_data(nlh);
nlh              1787 net/xfrm/xfrm_user.c 		nlmsg_cancel(skb, nlh);
nlh              1790 net/xfrm/xfrm_user.c 	nlmsg_end(skb, nlh);
nlh              1821 net/xfrm/xfrm_user.c 	info.nlmsg_seq = cb->nlh->nlmsg_seq;
nlh              1855 net/xfrm/xfrm_user.c static int xfrm_get_policy(struct sk_buff *skb, struct nlmsghdr *nlh,
nlh              1869 net/xfrm/xfrm_user.c 	p = nlmsg_data(nlh);
nlh              1870 net/xfrm/xfrm_user.c 	delete = nlh->nlmsg_type == XFRM_MSG_DELPOLICY;
nlh              1911 net/xfrm/xfrm_user.c 		resp_skb = xfrm_policy_netlink(skb, xp, p->dir, nlh->nlmsg_seq);
nlh              1925 net/xfrm/xfrm_user.c 		c.event = nlh->nlmsg_type;
nlh              1926 net/xfrm/xfrm_user.c 		c.seq = nlh->nlmsg_seq;
nlh              1927 net/xfrm/xfrm_user.c 		c.portid = nlh->nlmsg_pid;
nlh              1936 net/xfrm/xfrm_user.c static int xfrm_flush_sa(struct sk_buff *skb, struct nlmsghdr *nlh,
nlh              1941 net/xfrm/xfrm_user.c 	struct xfrm_usersa_flush *p = nlmsg_data(nlh);
nlh              1951 net/xfrm/xfrm_user.c 	c.event = nlh->nlmsg_type;
nlh              1952 net/xfrm/xfrm_user.c 	c.seq = nlh->nlmsg_seq;
nlh              1953 net/xfrm/xfrm_user.c 	c.portid = nlh->nlmsg_pid;
nlh              1977 net/xfrm/xfrm_user.c 	struct nlmsghdr *nlh;
nlh              1980 net/xfrm/xfrm_user.c 	nlh = nlmsg_put(skb, c->portid, c->seq, XFRM_MSG_NEWAE, sizeof(*id), 0);
nlh              1981 net/xfrm/xfrm_user.c 	if (nlh == NULL)
nlh              1984 net/xfrm/xfrm_user.c 	id = nlmsg_data(nlh);
nlh              2028 net/xfrm/xfrm_user.c 	nlmsg_end(skb, nlh);
nlh              2032 net/xfrm/xfrm_user.c 	nlmsg_cancel(skb, nlh);
nlh              2036 net/xfrm/xfrm_user.c static int xfrm_get_ae(struct sk_buff *skb, struct nlmsghdr *nlh,
nlh              2046 net/xfrm/xfrm_user.c 	struct xfrm_aevent_id *p = nlmsg_data(nlh);
nlh              2068 net/xfrm/xfrm_user.c 	c.seq = nlh->nlmsg_seq;
nlh              2069 net/xfrm/xfrm_user.c 	c.portid = nlh->nlmsg_pid;
nlh              2080 net/xfrm/xfrm_user.c static int xfrm_new_ae(struct sk_buff *skb, struct nlmsghdr *nlh,
nlh              2089 net/xfrm/xfrm_user.c 	struct xfrm_aevent_id *p = nlmsg_data(nlh);
nlh              2100 net/xfrm/xfrm_user.c 	if (!(nlh->nlmsg_flags&NLM_F_REPLACE))
nlh              2120 net/xfrm/xfrm_user.c 	c.event = nlh->nlmsg_type;
nlh              2121 net/xfrm/xfrm_user.c 	c.seq = nlh->nlmsg_seq;
nlh              2122 net/xfrm/xfrm_user.c 	c.portid = nlh->nlmsg_pid;
nlh              2131 net/xfrm/xfrm_user.c static int xfrm_flush_policy(struct sk_buff *skb, struct nlmsghdr *nlh,
nlh              2151 net/xfrm/xfrm_user.c 	c.event = nlh->nlmsg_type;
nlh              2152 net/xfrm/xfrm_user.c 	c.seq = nlh->nlmsg_seq;
nlh              2153 net/xfrm/xfrm_user.c 	c.portid = nlh->nlmsg_pid;
nlh              2159 net/xfrm/xfrm_user.c static int xfrm_add_pol_expire(struct sk_buff *skb, struct nlmsghdr *nlh,
nlh              2164 net/xfrm/xfrm_user.c 	struct xfrm_user_polexpire *up = nlmsg_data(nlh);
nlh              2216 net/xfrm/xfrm_user.c 	km_policy_expired(xp, p->dir, up->hard, nlh->nlmsg_pid);
nlh              2223 net/xfrm/xfrm_user.c static int xfrm_add_sa_expire(struct sk_buff *skb, struct nlmsghdr *nlh,
nlh              2229 net/xfrm/xfrm_user.c 	struct xfrm_user_expire *ue = nlmsg_data(nlh);
nlh              2244 net/xfrm/xfrm_user.c 	km_state_expired(x, ue->hard, nlh->nlmsg_pid);
nlh              2257 net/xfrm/xfrm_user.c static int xfrm_add_acquire(struct sk_buff *skb, struct nlmsghdr *nlh,
nlh              2267 net/xfrm/xfrm_user.c 	struct xfrm_user_acquire *ua = nlmsg_data(nlh);
nlh              2362 net/xfrm/xfrm_user.c static int xfrm_do_migrate(struct sk_buff *skb, struct nlmsghdr *nlh,
nlh              2365 net/xfrm/xfrm_user.c 	struct xfrm_userpolicy_id *pi = nlmsg_data(nlh);
nlh              2404 net/xfrm/xfrm_user.c static int xfrm_do_migrate(struct sk_buff *skb, struct nlmsghdr *nlh,
nlh              2460 net/xfrm/xfrm_user.c 	struct nlmsghdr *nlh;
nlh              2463 net/xfrm/xfrm_user.c 	nlh = nlmsg_put(skb, 0, 0, XFRM_MSG_MIGRATE, sizeof(*pol_id), 0);
nlh              2464 net/xfrm/xfrm_user.c 	if (nlh == NULL)
nlh              2467 net/xfrm/xfrm_user.c 	pol_id = nlmsg_data(nlh);
nlh              2492 net/xfrm/xfrm_user.c 	nlmsg_end(skb, nlh);
nlh              2496 net/xfrm/xfrm_user.c 	nlmsg_cancel(skb, nlh);
nlh              2633 net/xfrm/xfrm_user.c static int xfrm_user_rcv_msg(struct sk_buff *skb, struct nlmsghdr *nlh,
nlh              2644 net/xfrm/xfrm_user.c 	type = nlh->nlmsg_type;
nlh              2657 net/xfrm/xfrm_user.c 	    (nlh->nlmsg_flags & NLM_F_DUMP)) {
nlh              2667 net/xfrm/xfrm_user.c 			return netlink_dump_start(net->xfrm.nlsk, skb, nlh, &c);
nlh              2671 net/xfrm/xfrm_user.c 	err = nlmsg_parse_deprecated(nlh, xfrm_msg_min[type], attrs,
nlh              2680 net/xfrm/xfrm_user.c 	return link->doit(skb, nlh, attrs);
nlh              2701 net/xfrm/xfrm_user.c 	struct nlmsghdr *nlh;
nlh              2704 net/xfrm/xfrm_user.c 	nlh = nlmsg_put(skb, c->portid, 0, XFRM_MSG_EXPIRE, sizeof(*ue), 0);
nlh              2705 net/xfrm/xfrm_user.c 	if (nlh == NULL)
nlh              2708 net/xfrm/xfrm_user.c 	ue = nlmsg_data(nlh);
nlh              2722 net/xfrm/xfrm_user.c 	nlmsg_end(skb, nlh);
nlh              2763 net/xfrm/xfrm_user.c 	struct nlmsghdr *nlh;
nlh              2771 net/xfrm/xfrm_user.c 	nlh = nlmsg_put(skb, c->portid, c->seq, XFRM_MSG_FLUSHSA, sizeof(*p), 0);
nlh              2772 net/xfrm/xfrm_user.c 	if (nlh == NULL) {
nlh              2777 net/xfrm/xfrm_user.c 	p = nlmsg_data(nlh);
nlh              2780 net/xfrm/xfrm_user.c 	nlmsg_end(skb, nlh);
nlh              2834 net/xfrm/xfrm_user.c 	struct nlmsghdr *nlh;
nlh              2852 net/xfrm/xfrm_user.c 	nlh = nlmsg_put(skb, c->portid, c->seq, c->event, headlen, 0);
nlh              2854 net/xfrm/xfrm_user.c 	if (nlh == NULL)
nlh              2857 net/xfrm/xfrm_user.c 	p = nlmsg_data(nlh);
nlh              2861 net/xfrm/xfrm_user.c 		id = nlmsg_data(nlh);
nlh              2879 net/xfrm/xfrm_user.c 	nlmsg_end(skb, nlh);
nlh              2927 net/xfrm/xfrm_user.c 	struct nlmsghdr *nlh;
nlh              2930 net/xfrm/xfrm_user.c 	nlh = nlmsg_put(skb, 0, 0, XFRM_MSG_ACQUIRE, sizeof(*ua), 0);
nlh              2931 net/xfrm/xfrm_user.c 	if (nlh == NULL)
nlh              2934 net/xfrm/xfrm_user.c 	ua = nlmsg_data(nlh);
nlh              2954 net/xfrm/xfrm_user.c 		nlmsg_cancel(skb, nlh);
nlh              2958 net/xfrm/xfrm_user.c 	nlmsg_end(skb, nlh);
nlh              3053 net/xfrm/xfrm_user.c 	struct nlmsghdr *nlh;
nlh              3056 net/xfrm/xfrm_user.c 	nlh = nlmsg_put(skb, c->portid, 0, XFRM_MSG_POLEXPIRE, sizeof(*upe), 0);
nlh              3057 net/xfrm/xfrm_user.c 	if (nlh == NULL)
nlh              3060 net/xfrm/xfrm_user.c 	upe = nlmsg_data(nlh);
nlh              3072 net/xfrm/xfrm_user.c 		nlmsg_cancel(skb, nlh);
nlh              3077 net/xfrm/xfrm_user.c 	nlmsg_end(skb, nlh);
nlh              3103 net/xfrm/xfrm_user.c 	struct nlmsghdr *nlh;
nlh              3121 net/xfrm/xfrm_user.c 	nlh = nlmsg_put(skb, c->portid, c->seq, c->event, headlen, 0);
nlh              3123 net/xfrm/xfrm_user.c 	if (nlh == NULL)
nlh              3126 net/xfrm/xfrm_user.c 	p = nlmsg_data(nlh);
nlh              3130 net/xfrm/xfrm_user.c 		id = nlmsg_data(nlh);
nlh              3157 net/xfrm/xfrm_user.c 	nlmsg_end(skb, nlh);
nlh              3169 net/xfrm/xfrm_user.c 	struct nlmsghdr *nlh;
nlh              3177 net/xfrm/xfrm_user.c 	nlh = nlmsg_put(skb, c->portid, c->seq, XFRM_MSG_FLUSHPOLICY, 0, 0);
nlh              3179 net/xfrm/xfrm_user.c 	if (nlh == NULL)
nlh              3185 net/xfrm/xfrm_user.c 	nlmsg_end(skb, nlh);
nlh              3224 net/xfrm/xfrm_user.c 	struct nlmsghdr *nlh;
nlh              3226 net/xfrm/xfrm_user.c 	nlh = nlmsg_put(skb, 0, 0, XFRM_MSG_REPORT, sizeof(*ur), 0);
nlh              3227 net/xfrm/xfrm_user.c 	if (nlh == NULL)
nlh              3230 net/xfrm/xfrm_user.c 	ur = nlmsg_data(nlh);
nlh              3237 net/xfrm/xfrm_user.c 			nlmsg_cancel(skb, nlh);
nlh              3241 net/xfrm/xfrm_user.c 	nlmsg_end(skb, nlh);
nlh              3270 net/xfrm/xfrm_user.c 	struct nlmsghdr *nlh;
nlh              3272 net/xfrm/xfrm_user.c 	nlh = nlmsg_put(skb, 0, 0, XFRM_MSG_MAPPING, sizeof(*um), 0);
nlh              3273 net/xfrm/xfrm_user.c 	if (nlh == NULL)
nlh              3276 net/xfrm/xfrm_user.c 	um = nlmsg_data(nlh);
nlh              3288 net/xfrm/xfrm_user.c 	nlmsg_end(skb, nlh);
nlh                46 samples/connector/cn_test.c 	struct nlmsghdr *nlh;
nlh                59 samples/connector/cn_test.c 	nlh = nlmsg_put(skb, 0, 0x123, NLMSG_DONE, size - sizeof(*nlh), 0);
nlh                60 samples/connector/cn_test.c 	if (!nlh) {
nlh                65 samples/connector/cn_test.c 	msg = nlmsg_data(nlh);
nlh                48 samples/connector/ucon.c 	struct nlmsghdr *nlh;
nlh                56 samples/connector/ucon.c 	nlh = (struct nlmsghdr *)buf;
nlh                57 samples/connector/ucon.c 	nlh->nlmsg_seq = seq++;
nlh                58 samples/connector/ucon.c 	nlh->nlmsg_pid = getpid();
nlh                59 samples/connector/ucon.c 	nlh->nlmsg_type = NLMSG_DONE;
nlh                60 samples/connector/ucon.c 	nlh->nlmsg_len = size;
nlh                61 samples/connector/ucon.c 	nlh->nlmsg_flags = 0;
nlh                63 samples/connector/ucon.c 	m = NLMSG_DATA(nlh);
nlh                70 samples/connector/ucon.c 	err = send(s, nlh, size, 0);
nlh              5528 security/selinux/hooks.c 	struct nlmsghdr *nlh;
nlh              5534 security/selinux/hooks.c 		nlh = (struct nlmsghdr *)data;
nlh              5542 security/selinux/hooks.c 		if (nlh->nlmsg_len < NLMSG_HDRLEN || nlh->nlmsg_len > data_len)
nlh              5545 security/selinux/hooks.c 		rc = selinux_nlmsg_lookup(sclass, nlh->nlmsg_type, &perm);
nlh              5555 security/selinux/hooks.c 				sk->sk_protocol, nlh->nlmsg_type,
nlh              5570 security/selinux/hooks.c 		msg_len = NLMSG_ALIGN(nlh->nlmsg_len);
nlh                43 security/selinux/netlink.c static void selnl_add_payload(struct nlmsghdr *nlh, int len, int msgtype, void *data)
nlh                47 security/selinux/netlink.c 		struct selnl_msg_setenforce *msg = nlmsg_data(nlh);
nlh                55 security/selinux/netlink.c 		struct selnl_msg_policyload *msg = nlmsg_data(nlh);
nlh                72 security/selinux/netlink.c 	struct nlmsghdr *nlh;
nlh                81 security/selinux/netlink.c 	nlh = nlmsg_put(skb, 0, 0, msgtype, len, 0);
nlh                82 security/selinux/netlink.c 	if (!nlh)
nlh                84 security/selinux/netlink.c 	selnl_add_payload(nlh, len, msgtype, data);
nlh                85 security/selinux/netlink.c 	nlh->nlmsg_len = skb->tail - tmp;
nlh                94 tools/include/uapi/linux/netlink.h #define NLMSG_DATA(nlh)  ((void*)(((char*)nlh) + NLMSG_LENGTH(0)))
nlh                95 tools/include/uapi/linux/netlink.h #define NLMSG_NEXT(nlh,len)	 ((len) -= NLMSG_ALIGN((nlh)->nlmsg_len), \
nlh                96 tools/include/uapi/linux/netlink.h 				  (struct nlmsghdr*)(((char*)(nlh)) + NLMSG_ALIGN((nlh)->nlmsg_len)))
nlh                97 tools/include/uapi/linux/netlink.h #define NLMSG_OK(nlh,len) ((len) >= (int)sizeof(struct nlmsghdr) && \
nlh                98 tools/include/uapi/linux/netlink.h 			   (nlh)->nlmsg_len >= sizeof(struct nlmsghdr) && \
nlh                99 tools/include/uapi/linux/netlink.h 			   (nlh)->nlmsg_len <= (len))
nlh               100 tools/include/uapi/linux/netlink.h #define NLMSG_PAYLOAD(nlh,len) ((nlh)->nlmsg_len - NLMSG_SPACE((len)))
nlh               190 tools/lib/bpf/netlink.c static int __dump_link_nlmsg(struct nlmsghdr *nlh,
nlh               194 tools/lib/bpf/netlink.c 	struct ifinfomsg *ifi = NLMSG_DATA(nlh);
nlh               197 tools/lib/bpf/netlink.c 	len = nlh->nlmsg_len - NLMSG_LENGTH(sizeof(*ifi));
nlh               288 tools/lib/bpf/netlink.c 		struct nlmsghdr nlh;
nlh               291 tools/lib/bpf/netlink.c 		.nlh.nlmsg_len = NLMSG_LENGTH(sizeof(struct ifinfomsg)),
nlh               292 tools/lib/bpf/netlink.c 		.nlh.nlmsg_type = RTM_GETLINK,
nlh               293 tools/lib/bpf/netlink.c 		.nlh.nlmsg_flags = NLM_F_DUMP | NLM_F_REQUEST,
nlh               298 tools/lib/bpf/netlink.c 	req.nlh.nlmsg_seq = seq;
nlh               299 tools/lib/bpf/netlink.c 	if (send(sock, &req, req.nlh.nlmsg_len, 0) < 0)
nlh               306 tools/lib/bpf/netlink.c static int __dump_class_nlmsg(struct nlmsghdr *nlh,
nlh               311 tools/lib/bpf/netlink.c 	struct tcmsg *t = NLMSG_DATA(nlh);
nlh               314 tools/lib/bpf/netlink.c 	len = nlh->nlmsg_len - NLMSG_LENGTH(sizeof(*t));
nlh               326 tools/lib/bpf/netlink.c 		struct nlmsghdr nlh;
nlh               329 tools/lib/bpf/netlink.c 		.nlh.nlmsg_len = NLMSG_LENGTH(sizeof(struct tcmsg)),
nlh               330 tools/lib/bpf/netlink.c 		.nlh.nlmsg_type = RTM_GETTCLASS,
nlh               331 tools/lib/bpf/netlink.c 		.nlh.nlmsg_flags = NLM_F_DUMP | NLM_F_REQUEST,
nlh               337 tools/lib/bpf/netlink.c 	req.nlh.nlmsg_seq = seq;
nlh               338 tools/lib/bpf/netlink.c 	if (send(sock, &req, req.nlh.nlmsg_len, 0) < 0)
nlh               345 tools/lib/bpf/netlink.c static int __dump_qdisc_nlmsg(struct nlmsghdr *nlh,
nlh               350 tools/lib/bpf/netlink.c 	struct tcmsg *t = NLMSG_DATA(nlh);
nlh               353 tools/lib/bpf/netlink.c 	len = nlh->nlmsg_len - NLMSG_LENGTH(sizeof(*t));
nlh               365 tools/lib/bpf/netlink.c 		struct nlmsghdr nlh;
nlh               368 tools/lib/bpf/netlink.c 		.nlh.nlmsg_len = NLMSG_LENGTH(sizeof(struct tcmsg)),
nlh               369 tools/lib/bpf/netlink.c 		.nlh.nlmsg_type = RTM_GETQDISC,
nlh               370 tools/lib/bpf/netlink.c 		.nlh.nlmsg_flags = NLM_F_DUMP | NLM_F_REQUEST,
nlh               376 tools/lib/bpf/netlink.c 	req.nlh.nlmsg_seq = seq;
nlh               377 tools/lib/bpf/netlink.c 	if (send(sock, &req, req.nlh.nlmsg_len, 0) < 0)
nlh               384 tools/lib/bpf/netlink.c static int __dump_filter_nlmsg(struct nlmsghdr *nlh,
nlh               389 tools/lib/bpf/netlink.c 	struct tcmsg *t = NLMSG_DATA(nlh);
nlh               392 tools/lib/bpf/netlink.c 	len = nlh->nlmsg_len - NLMSG_LENGTH(sizeof(*t));
nlh               404 tools/lib/bpf/netlink.c 		struct nlmsghdr nlh;
nlh               407 tools/lib/bpf/netlink.c 		.nlh.nlmsg_len = NLMSG_LENGTH(sizeof(struct tcmsg)),
nlh               408 tools/lib/bpf/netlink.c 		.nlh.nlmsg_type = RTM_GETTFILTER,
nlh               409 tools/lib/bpf/netlink.c 		.nlh.nlmsg_flags = NLM_F_DUMP | NLM_F_REQUEST,
nlh               416 tools/lib/bpf/netlink.c 	req.nlh.nlmsg_seq = seq;
nlh               417 tools/lib/bpf/netlink.c 	if (send(sock, &req, req.nlh.nlmsg_len, 0) < 0)
nlh                80 tools/lib/bpf/nlattr.c static inline int nlmsg_len(const struct nlmsghdr *nlh)
nlh                82 tools/lib/bpf/nlattr.c 	return nlh->nlmsg_len - NLMSG_HDRLEN;
nlh               157 tools/lib/bpf/nlattr.c int libbpf_nla_dump_errormsg(struct nlmsghdr *nlh)
nlh               169 tools/lib/bpf/nlattr.c 	if (!(nlh->nlmsg_flags & NLM_F_ACK_TLVS))
nlh               172 tools/lib/bpf/nlattr.c 	err = (struct nlmsgerr *)NLMSG_DATA(nlh);
nlh               176 tools/lib/bpf/nlattr.c 	if (!(nlh->nlmsg_flags & NLM_F_CAPPED))
nlh               180 tools/lib/bpf/nlattr.c 	alen = nlh->nlmsg_len - hlen;
nlh               104 tools/lib/bpf/nlattr.h int libbpf_nla_dump_errormsg(struct nlmsghdr *nlh);
nlh               180 tools/testing/vsock/vsock_diag_test.c 		struct nlmsghdr nlh;
nlh               183 tools/testing/vsock/vsock_diag_test.c 		.nlh = {