/kernel/linux/linux-5.10/tools/testing/selftests/netfilter/ |
H A D | nf-queue.c | 77 static int queue_cb(const struct nlmsghdr *nlh, void *data) in queue_cb() argument 85 mnl_attr_parse(nlh, sizeof(struct nfgenmsg), parse_attr_cb, tb); in queue_cb() 123 struct nlmsghdr *nlh = mnl_nlmsg_put_header(buf); in nfq_build_cfg_request() local 130 nlh->nlmsg_type = (NFNL_SUBSYS_QUEUE << 8) | NFQNL_MSG_CONFIG; in nfq_build_cfg_request() 131 nlh->nlmsg_flags = NLM_F_REQUEST; in nfq_build_cfg_request() 133 nfg = mnl_nlmsg_put_extra_header(nlh, sizeof(*nfg)); in nfq_build_cfg_request() 139 mnl_attr_put(nlh, NFQA_CFG_CMD, sizeof(cmd), &cmd); in nfq_build_cfg_request() 141 return nlh; in nfq_build_cfg_request() 147 struct nlmsghdr *nlh = mnl_nlmsg_put_header(buf); in nfq_build_cfg_params() local 154 nlh in nfq_build_cfg_params() 174 struct nlmsghdr *nlh; nfq_build_verdict() local 212 struct nlmsghdr *nlh; open_queue() local 274 struct nlmsghdr *nlh; mainloop() local [all...] |
/kernel/linux/linux-6.6/tools/testing/selftests/netfilter/ |
H A D | nf-queue.c | 77 static int queue_cb(const struct nlmsghdr *nlh, void *data) in queue_cb() argument 85 mnl_attr_parse(nlh, sizeof(struct nfgenmsg), parse_attr_cb, tb); in queue_cb() 123 struct nlmsghdr *nlh = mnl_nlmsg_put_header(buf); in nfq_build_cfg_request() local 130 nlh->nlmsg_type = (NFNL_SUBSYS_QUEUE << 8) | NFQNL_MSG_CONFIG; in nfq_build_cfg_request() 131 nlh->nlmsg_flags = NLM_F_REQUEST; in nfq_build_cfg_request() 133 nfg = mnl_nlmsg_put_extra_header(nlh, sizeof(*nfg)); in nfq_build_cfg_request() 139 mnl_attr_put(nlh, NFQA_CFG_CMD, sizeof(cmd), &cmd); in nfq_build_cfg_request() 141 return nlh; in nfq_build_cfg_request() 147 struct nlmsghdr *nlh = mnl_nlmsg_put_header(buf); in nfq_build_cfg_params() local 154 nlh in nfq_build_cfg_params() 174 struct nlmsghdr *nlh; nfq_build_verdict() local 212 struct nlmsghdr *nlh; open_queue() local 274 struct nlmsghdr *nlh; mainloop() local [all...] |
/kernel/linux/linux-5.10/drivers/staging/gdm724x/ |
H A D | netlink_k.c | 20 #define ND_NLMSG_DATA(nlh) ((void *)((char *)NLMSG_DATA(nlh) + \ 23 #define ND_NLMSG_R_LEN(nlh) (nlh->nlmsg_len - ND_IFINDEX_LEN) 24 #define ND_NLMSG_IFIDX(nlh) NLMSG_DATA(nlh) 31 struct nlmsghdr *nlh; in netlink_rcv_cb() local 47 nlh = (struct nlmsghdr *)skb->data; in netlink_rcv_cb() 49 if (skb->len < nlh->nlmsg_len || nlh in netlink_rcv_cb() 97 struct nlmsghdr *nlh; netlink_send() local [all...] |
/kernel/linux/linux-6.6/drivers/staging/gdm724x/ |
H A D | netlink_k.c | 20 #define ND_NLMSG_DATA(nlh) ((void *)((char *)NLMSG_DATA(nlh) + \ 23 #define ND_NLMSG_R_LEN(nlh) ((nlh)->nlmsg_len - ND_IFINDEX_LEN) 24 #define ND_NLMSG_IFIDX(nlh) NLMSG_DATA(nlh) 31 struct nlmsghdr *nlh; in netlink_rcv_cb() local 47 nlh = (struct nlmsghdr *)skb->data; in netlink_rcv_cb() 49 if (skb->len < nlh->nlmsg_len || nlh in netlink_rcv_cb() 97 struct nlmsghdr *nlh; netlink_send() local [all...] |
/kernel/linux/linux-6.6/tools/net/ynl/generated/ |
H A D | fou-user.c | 75 struct nlmsghdr *nlh; in fou_add() local 78 nlh = ynl_gemsg_start_req(ys, ys->family_id, FOU_CMD_ADD, 1); in fou_add() 82 mnl_attr_put_u16(nlh, FOU_ATTR_PORT, req->port); in fou_add() 84 mnl_attr_put_u8(nlh, FOU_ATTR_IPPROTO, req->ipproto); in fou_add() 86 mnl_attr_put_u8(nlh, FOU_ATTR_TYPE, req->type); in fou_add() 88 mnl_attr_put(nlh, FOU_ATTR_REMCSUM_NOPARTIAL, 0, NULL); in fou_add() 90 mnl_attr_put_u32(nlh, FOU_ATTR_LOCAL_V4, req->local_v4); in fou_add() 92 mnl_attr_put_u32(nlh, FOU_ATTR_PEER_V4, req->peer_v4); in fou_add() 94 mnl_attr_put(nlh, FOU_ATTR_LOCAL_V6, req->_present.local_v6_len, req->local_v6); in fou_add() 96 mnl_attr_put(nlh, FOU_ATTR_PEER_V in fou_add() 120 struct nlmsghdr *nlh; fou_del() local 166 fou_get_rsp_parse(const struct nlmsghdr *nlh, void *data) fou_get_rsp_parse() argument 246 struct nlmsghdr *nlh; fou_get() local 304 struct nlmsghdr *nlh; fou_get_dump() local [all...] |
H A D | ethtool-user.c | 675 int ethtool_header_put(struct nlmsghdr *nlh, unsigned int attr_type, in ethtool_header_put() argument 680 nest = mnl_attr_nest_start(nlh, attr_type); in ethtool_header_put() 682 mnl_attr_put_u32(nlh, ETHTOOL_A_HEADER_DEV_INDEX, obj->dev_index); in ethtool_header_put() 684 mnl_attr_put_strz(nlh, ETHTOOL_A_HEADER_DEV_NAME, obj->dev_name); in ethtool_header_put() 686 mnl_attr_put_u32(nlh, ETHTOOL_A_HEADER_FLAGS, obj->flags); in ethtool_header_put() 687 mnl_attr_nest_end(nlh, nest); in ethtool_header_put() 732 int ethtool_pause_stat_put(struct nlmsghdr *nlh, unsigned int attr_type, in ethtool_pause_stat_put() argument 737 nest = mnl_attr_nest_start(nlh, attr_type); in ethtool_pause_stat_put() 739 mnl_attr_put_u64(nlh, ETHTOOL_A_PAUSE_STAT_TX_FRAMES, obj->tx_frames); in ethtool_pause_stat_put() 741 mnl_attr_put_u64(nlh, ETHTOOL_A_PAUSE_STAT_RX_FRAME in ethtool_pause_stat_put() 783 ethtool_fec_stat_put(struct nlmsghdr *nlh, unsigned int attr_type, struct ethtool_fec_stat *obj) ethtool_fec_stat_put() argument 957 ethtool_bitset_bit_put(struct nlmsghdr *nlh, unsigned int attr_type, struct ethtool_bitset_bit *obj) ethtool_bitset_bit_put() argument 1043 ethtool_string_put(struct nlmsghdr *nlh, unsigned int attr_type, struct ethtool_string *obj) ethtool_string_put() argument 1140 ethtool_bitset_bits_put(struct nlmsghdr *nlh, unsigned int attr_type, struct ethtool_bitset_bits *obj) ethtool_bitset_bits_put() argument 1202 ethtool_strings_put(struct nlmsghdr *nlh, unsigned int attr_type, struct ethtool_strings *obj) ethtool_strings_put() argument 1260 ethtool_bitset_put(struct nlmsghdr *nlh, unsigned int attr_type, struct ethtool_bitset *obj) ethtool_bitset_put() argument 1322 ethtool_stringset_put(struct nlmsghdr *nlh, unsigned int attr_type, struct ethtool_stringset_ *obj) ethtool_stringset_put() argument 1462 ethtool_stringsets_put(struct nlmsghdr *nlh, unsigned int attr_type, struct ethtool_stringsets *obj) ethtool_stringsets_put() argument 1563 ethtool_strset_get_rsp_parse(const struct nlmsghdr *nlh, void *data) ethtool_strset_get_rsp_parse() argument 1605 struct nlmsghdr *nlh; ethtool_strset_get() local 1655 struct nlmsghdr *nlh; ethtool_strset_get_dump() local 1699 ethtool_linkinfo_get_rsp_parse(const struct nlmsghdr *nlh, void *data) ethtool_linkinfo_get_rsp_parse() argument 1757 struct nlmsghdr *nlh; ethtool_linkinfo_get() local 1802 struct nlmsghdr *nlh; ethtool_linkinfo_get_dump() local 1846 struct nlmsghdr *nlh; ethtool_linkinfo_set() local 1888 ethtool_linkmodes_get_rsp_parse(const struct nlmsghdr *nlh, void *data) ethtool_linkmodes_get_rsp_parse() argument 1975 struct nlmsghdr *nlh; ethtool_linkmodes_get() local 2022 struct nlmsghdr *nlh; ethtool_linkmodes_get_dump() local 2070 struct nlmsghdr *nlh; ethtool_linkmodes_set() local 2118 ethtool_linkstate_get_rsp_parse(const struct nlmsghdr *nlh, void *data) ethtool_linkstate_get_rsp_parse() argument 2182 struct nlmsghdr *nlh; ethtool_linkstate_get() local 2227 struct nlmsghdr *nlh; ethtool_linkstate_get_dump() local 2268 ethtool_debug_get_rsp_parse(const struct nlmsghdr *nlh, void *data) ethtool_debug_get_rsp_parse() argument 2310 struct nlmsghdr *nlh; ethtool_debug_get() local 2356 struct nlmsghdr *nlh; ethtool_debug_get_dump() local 2401 struct nlmsghdr *nlh; ethtool_debug_set() local 2435 ethtool_wol_get_rsp_parse(const struct nlmsghdr *nlh, void *data) ethtool_wol_get_rsp_parse() argument 2487 struct nlmsghdr *nlh; ethtool_wol_get() local 2533 struct nlmsghdr *nlh; ethtool_wol_get_dump() local 2580 struct nlmsghdr *nlh; ethtool_wol_set() local 2618 ethtool_features_get_rsp_parse(const struct nlmsghdr *nlh, void *data) ethtool_features_get_rsp_parse() argument 2687 struct nlmsghdr *nlh; ethtool_features_get() local 2736 struct nlmsghdr *nlh; ethtool_features_get_dump() local 2795 ethtool_features_set_rsp_parse(const struct nlmsghdr *nlh, void *data) ethtool_features_set_rsp_parse() argument 2864 struct nlmsghdr *nlh; ethtool_features_set() local 2913 ethtool_privflags_get_rsp_parse(const struct nlmsghdr *nlh, void *data) ethtool_privflags_get_rsp_parse() argument 2956 struct nlmsghdr *nlh; ethtool_privflags_get() local 3002 struct nlmsghdr *nlh; ethtool_privflags_get_dump() local 3048 struct nlmsghdr *nlh; ethtool_privflags_set() local 3080 ethtool_rings_get_rsp_parse(const struct nlmsghdr *nlh, void *data) ethtool_rings_get_rsp_parse() argument 3188 struct nlmsghdr *nlh; ethtool_rings_get() local 3233 struct nlmsghdr *nlh; ethtool_rings_get_dump() local 3276 struct nlmsghdr *nlh; ethtool_rings_set() local 3336 ethtool_channels_get_rsp_parse(const struct nlmsghdr *nlh, void *data) ethtool_channels_get_rsp_parse() argument 3409 struct nlmsghdr *nlh; ethtool_channels_get() local 3454 struct nlmsghdr *nlh; ethtool_channels_get_dump() local 3498 struct nlmsghdr *nlh; ethtool_channels_set() local 3544 ethtool_coalesce_get_rsp_parse(const struct nlmsghdr *nlh, void *data) ethtool_coalesce_get_rsp_parse() argument 3712 struct nlmsghdr *nlh; ethtool_coalesce_get() local 3757 struct nlmsghdr *nlh; ethtool_coalesce_get_dump() local 3801 struct nlmsghdr *nlh; ethtool_coalesce_set() local 3886 ethtool_pause_get_rsp_parse(const struct nlmsghdr *nlh, void *data) ethtool_pause_get_rsp_parse() argument 3948 struct nlmsghdr *nlh; ethtool_pause_get() local 3994 struct nlmsghdr *nlh; ethtool_pause_get_dump() local 4039 struct nlmsghdr *nlh; ethtool_pause_set() local 4081 ethtool_eee_get_rsp_parse(const struct nlmsghdr *nlh, void *data) ethtool_eee_get_rsp_parse() argument 4152 struct nlmsghdr *nlh; ethtool_eee_get() local 4198 struct nlmsghdr *nlh; ethtool_eee_get_dump() local 4245 struct nlmsghdr *nlh; ethtool_eee_set() local 4290 ethtool_tsinfo_get_rsp_parse(const struct nlmsghdr *nlh, void *data) ethtool_tsinfo_get_rsp_parse() argument 4355 struct nlmsghdr *nlh; ethtool_tsinfo_get() local 4403 struct nlmsghdr *nlh; ethtool_tsinfo_get_dump() local 4440 struct nlmsghdr *nlh; ethtool_cable_test_act() local 4468 struct nlmsghdr *nlh; ethtool_cable_test_tdr_act() local 4499 ethtool_tunnel_info_get_rsp_parse(const struct nlmsghdr *nlh, void *data) ethtool_tunnel_info_get_rsp_parse() argument 4542 struct nlmsghdr *nlh; ethtool_tunnel_info_get() local 4589 struct nlmsghdr *nlh; ethtool_tunnel_info_get_dump() local 4631 ethtool_fec_get_rsp_parse(const struct nlmsghdr *nlh, void *data) ethtool_fec_get_rsp_parse() argument 4692 struct nlmsghdr *nlh; ethtool_fec_get() local 4738 struct nlmsghdr *nlh; ethtool_fec_get_dump() local 4785 struct nlmsghdr *nlh; ethtool_fec_set() local 4826 ethtool_module_eeprom_get_rsp_parse(const struct nlmsghdr *nlh, void *data) ethtool_module_eeprom_get_rsp_parse() argument 4895 struct nlmsghdr *nlh; ethtool_module_eeprom_get() local 4942 struct nlmsghdr *nlh; ethtool_module_eeprom_get_dump() local 4982 ethtool_phc_vclocks_get_rsp_parse(const struct nlmsghdr *nlh, void *data) ethtool_phc_vclocks_get_rsp_parse() argument 5021 struct nlmsghdr *nlh; ethtool_phc_vclocks_get() local 5067 struct nlmsghdr *nlh; ethtool_phc_vclocks_get_dump() local 5107 ethtool_module_get_rsp_parse(const struct nlmsghdr *nlh, void *data) ethtool_module_get_rsp_parse() argument 5150 struct nlmsghdr *nlh; ethtool_module_get() local 5195 struct nlmsghdr *nlh; ethtool_module_get_dump() local 5238 struct nlmsghdr *nlh; ethtool_module_set() local 5272 ethtool_pse_get_rsp_parse(const struct nlmsghdr *nlh, void *data) ethtool_pse_get_rsp_parse() argument 5320 struct nlmsghdr *nlh; ethtool_pse_get() local 5364 struct nlmsghdr *nlh; ethtool_pse_get_dump() local 5400 struct nlmsghdr *nlh; ethtool_pse_set() local 5438 ethtool_rss_get_rsp_parse(const struct nlmsghdr *nlh, void *data) ethtool_rss_get_rsp_parse() argument 5501 struct nlmsghdr *nlh; ethtool_rss_get() local 5547 struct nlmsghdr *nlh; ethtool_rss_get_dump() local 5587 ethtool_plca_get_cfg_rsp_parse(const struct nlmsghdr *nlh, void *data) ethtool_plca_get_cfg_rsp_parse() argument 5660 struct nlmsghdr *nlh; ethtool_plca_get_cfg() local 5705 struct nlmsghdr *nlh; ethtool_plca_get_cfg_dump() local 5749 struct nlmsghdr *nlh; ethtool_plca_set_cfg() local 5795 ethtool_plca_get_status_rsp_parse(const struct nlmsghdr *nlh, void *data) ethtool_plca_get_status_rsp_parse() argument 5869 struct nlmsghdr *nlh; ethtool_plca_get_status() local 5915 struct nlmsghdr *nlh; ethtool_plca_get_status_dump() local 5956 ethtool_mm_get_rsp_parse(const struct nlmsghdr *nlh, void *data) ethtool_mm_get_rsp_parse() argument 6038 struct nlmsghdr *nlh; ethtool_mm_get() local 6083 struct nlmsghdr *nlh; ethtool_mm_get_dump() local 6127 struct nlmsghdr *nlh; ethtool_mm_set() local 6154 ethtool_cable_test_ntf_rsp_parse(const struct nlmsghdr *nlh, void *data) ethtool_cable_test_ntf_rsp_parse() argument 6194 ethtool_cable_test_tdr_ntf_rsp_parse(const struct nlmsghdr *nlh, void *data) ethtool_cable_test_tdr_ntf_rsp_parse() argument [all...] |
H A D | devlink-user.c | 438 int devlink_get_rsp_parse(const struct nlmsghdr *nlh, void *data) in devlink_get_rsp_parse() argument 448 mnl_attr_for_each(attr, nlh, sizeof(struct genlmsghdr)) { in devlink_get_rsp_parse() 503 struct nlmsghdr *nlh; in devlink_get() local 506 nlh = ynl_gemsg_start_req(ys, ys->family_id, DEVLINK_CMD_GET, 1); in devlink_get() 511 mnl_attr_put_strz(nlh, DEVLINK_ATTR_BUS_NAME, req->bus_name); in devlink_get() 513 mnl_attr_put_strz(nlh, DEVLINK_ATTR_DEV_NAME, req->dev_name); in devlink_get() 520 err = ynl_exec(ys, nlh, &yrs); in devlink_get() 550 struct nlmsghdr *nlh; in devlink_get_dump() local 559 nlh = ynl_gemsg_start_dump(ys, ys->family_id, DEVLINK_CMD_GET, 1); in devlink_get_dump() 561 err = ynl_exec_dump(ys, nlh, in devlink_get_dump() 588 devlink_port_get_rsp_parse(const struct nlmsghdr *nlh, void *data) devlink_port_get_rsp_parse() argument 637 struct nlmsghdr *nlh; devlink_port_get() local 668 devlink_port_get_rsp_dump_parse(const struct nlmsghdr *nlh, void *data) devlink_port_get_rsp_dump_parse() argument 731 struct nlmsghdr *nlh; devlink_port_get_dump() local 775 devlink_sb_get_rsp_parse(const struct nlmsghdr *nlh, void *data) devlink_sb_get_rsp_parse() argument 824 struct nlmsghdr *nlh; devlink_sb_get() local 873 struct nlmsghdr *nlh; devlink_sb_get_dump() local 917 devlink_sb_pool_get_rsp_parse(const struct nlmsghdr *nlh, void *data) devlink_sb_pool_get_rsp_parse() argument 971 struct nlmsghdr *nlh; devlink_sb_pool_get() local 1023 struct nlmsghdr *nlh; devlink_sb_pool_get_dump() local 1069 devlink_sb_port_pool_get_rsp_parse(const struct nlmsghdr *nlh, void *data) devlink_sb_port_pool_get_rsp_parse() argument 1129 struct nlmsghdr *nlh; devlink_sb_port_pool_get() local 1184 struct nlmsghdr *nlh; devlink_sb_port_pool_get_dump() local 1230 devlink_sb_tc_pool_bind_get_rsp_parse(const struct nlmsghdr *nlh, void *data) devlink_sb_tc_pool_bind_get_rsp_parse() argument 1296 struct nlmsghdr *nlh; devlink_sb_tc_pool_bind_get() local 1353 struct nlmsghdr *nlh; devlink_sb_tc_pool_bind_get_dump() local 1399 devlink_param_get_rsp_parse(const struct nlmsghdr *nlh, void *data) devlink_param_get_rsp_parse() argument 1454 struct nlmsghdr *nlh; devlink_param_get() local 1505 struct nlmsghdr *nlh; devlink_param_get_dump() local 1551 devlink_region_get_rsp_parse(const struct nlmsghdr *nlh, void *data) devlink_region_get_rsp_parse() argument 1611 struct nlmsghdr *nlh; devlink_region_get() local 1664 struct nlmsghdr *nlh; devlink_region_get_dump() local 1721 devlink_info_get_rsp_parse(const struct nlmsghdr *nlh, void *data) devlink_info_get_rsp_parse() argument 1849 struct nlmsghdr *nlh; devlink_info_get() local 1908 struct nlmsghdr *nlh; devlink_info_get_dump() local 1950 devlink_health_reporter_get_rsp_parse(const struct nlmsghdr *nlh, void *data) devlink_health_reporter_get_rsp_parse() argument 2012 struct nlmsghdr *nlh; devlink_health_reporter_get() local 2066 struct nlmsghdr *nlh; devlink_health_reporter_get_dump() local 2114 devlink_trap_get_rsp_parse(const struct nlmsghdr *nlh, void *data) devlink_trap_get_rsp_parse() argument 2169 struct nlmsghdr *nlh; devlink_trap_get() local 2220 struct nlmsghdr *nlh; devlink_trap_get_dump() local 2266 devlink_trap_group_get_rsp_parse(const struct nlmsghdr *nlh, void *data) devlink_trap_group_get_rsp_parse() argument 2322 struct nlmsghdr *nlh; devlink_trap_group_get() local 2373 struct nlmsghdr *nlh; devlink_trap_group_get_dump() local 2419 devlink_trap_policer_get_rsp_parse(const struct nlmsghdr *nlh, void *data) devlink_trap_policer_get_rsp_parse() argument 2469 struct nlmsghdr *nlh; devlink_trap_policer_get() local 2520 struct nlmsghdr *nlh; devlink_trap_policer_get_dump() local 2566 devlink_rate_get_rsp_parse(const struct nlmsghdr *nlh, void *data) devlink_rate_get_rsp_parse() argument 2626 struct nlmsghdr *nlh; devlink_rate_get() local 2679 struct nlmsghdr *nlh; devlink_rate_get_dump() local 2723 devlink_linecard_get_rsp_parse(const struct nlmsghdr *nlh, void *data) devlink_linecard_get_rsp_parse() argument 2772 struct nlmsghdr *nlh; devlink_linecard_get() local 2822 struct nlmsghdr *nlh; devlink_linecard_get_dump() local 2866 devlink_selftests_get_rsp_parse(const struct nlmsghdr *nlh, void *data) devlink_selftests_get_rsp_parse() argument 2911 struct nlmsghdr *nlh; devlink_selftests_get() local 2958 struct nlmsghdr *nlh; devlink_selftests_get_dump() local [all...] |
/kernel/linux/linux-6.6/net/netfilter/ |
H A D | nfnetlink.c | 216 static int nfnetlink_rcv_msg(struct sk_buff *skb, struct nlmsghdr *nlh, in nfnetlink_rcv_msg() argument 225 if (nlmsg_len(nlh) < sizeof(struct nfgenmsg)) in nfnetlink_rcv_msg() 228 type = nlh->nlmsg_type; in nfnetlink_rcv_msg() 256 u8 cb_id = NFNL_MSG_TYPE(nlh->nlmsg_type); in nfnetlink_rcv_msg() 258 struct nlattr *attr = (void *)nlh + min_len; in nfnetlink_rcv_msg() 259 int attrlen = nlh->nlmsg_len - min_len; in nfnetlink_rcv_msg() 264 .nlh = nlh, in nfnetlink_rcv_msg() 265 .nfmsg = nlmsg_data(nlh), in nfnetlink_rcv_msg() 318 struct nlmsghdr *nlh; member 323 nfnl_err_add(struct list_head *list, struct nlmsghdr *nlh, int err, const struct netlink_ext_ack *extack) nfnl_err_add() argument 371 nfnetlink_rcv_batch(struct sk_buff *skb, struct nlmsghdr *nlh, u16 subsys_id, u32 genid) nfnetlink_rcv_batch() argument 604 nfnetlink_rcv_skb_batch(struct sk_buff *skb, struct nlmsghdr *nlh) nfnetlink_rcv_skb_batch() argument 644 struct nlmsghdr *nlh = nlmsg_hdr(skb); nfnetlink_rcv() local [all...] |
/kernel/linux/linux-5.10/drivers/infiniband/core/ |
H A D | iwpm_msg.c | 67 struct nlmsghdr *nlh; in iwpm_register_pid() local 79 skb = iwpm_create_nlmsg(RDMA_NL_IWPM_REG_PID, &nlh, nl_client); in iwpm_register_pid() 84 nlh->nlmsg_seq = iwpm_get_nlmsg_seq(); in iwpm_register_pid() 85 nlmsg_request = iwpm_get_nlmsg_request(nlh->nlmsg_seq, nl_client, GFP_KERNEL); in iwpm_register_pid() 94 ret = ibnl_put_attr(skb, nlh, sizeof(u32), &msg_seq, IWPM_NLA_REG_PID_SEQ); in iwpm_register_pid() 97 ret = ibnl_put_attr(skb, nlh, IFNAMSIZ, in iwpm_register_pid() 101 ret = ibnl_put_attr(skb, nlh, IWPM_DEVNAME_SIZE, in iwpm_register_pid() 105 ret = ibnl_put_attr(skb, nlh, IWPM_ULIBNAME_SIZE, in iwpm_register_pid() 110 nlmsg_end(skb, nlh); in iwpm_register_pid() 151 struct nlmsghdr *nlh; in iwpm_add_mapping() local 238 struct nlmsghdr *nlh; iwpm_add_and_query_mapping() local 329 struct nlmsghdr *nlh; iwpm_remove_mapping() local [all...] |
H A D | netlink.c | 131 void *ibnl_put_msg(struct sk_buff *skb, struct nlmsghdr **nlh, int seq, in ibnl_put_msg() argument 134 *nlh = nlmsg_put(skb, 0, seq, RDMA_NL_GET_TYPE(client, op), len, flags); in ibnl_put_msg() 135 if (!*nlh) in ibnl_put_msg() 137 return nlmsg_data(*nlh); in ibnl_put_msg() 141 int ibnl_put_attr(struct sk_buff *skb, struct nlmsghdr *nlh, in ibnl_put_attr() argument 145 nlmsg_cancel(skb, nlh); in ibnl_put_attr() 152 static int rdma_nl_rcv_msg(struct sk_buff *skb, struct nlmsghdr *nlh, in rdma_nl_rcv_msg() argument 155 int type = nlh->nlmsg_type; in rdma_nl_rcv_msg() 181 err = cb_table[op].doit(skb, nlh, extack); in rdma_nl_rcv_msg() 185 if ((nlh in rdma_nl_rcv_msg() 212 struct nlmsghdr *nlh; rdma_nl_rcv_skb() local [all...] |
/kernel/linux/linux-6.6/drivers/infiniband/core/ |
H A D | iwpm_msg.c | 67 struct nlmsghdr *nlh; in iwpm_register_pid() local 75 skb = iwpm_create_nlmsg(RDMA_NL_IWPM_REG_PID, &nlh, nl_client); in iwpm_register_pid() 80 nlh->nlmsg_seq = iwpm_get_nlmsg_seq(); in iwpm_register_pid() 81 nlmsg_request = iwpm_get_nlmsg_request(nlh->nlmsg_seq, nl_client, GFP_KERNEL); in iwpm_register_pid() 90 ret = ibnl_put_attr(skb, nlh, sizeof(u32), &msg_seq, IWPM_NLA_REG_PID_SEQ); in iwpm_register_pid() 93 ret = ibnl_put_attr(skb, nlh, IFNAMSIZ, in iwpm_register_pid() 97 ret = ibnl_put_attr(skb, nlh, IWPM_DEVNAME_SIZE, in iwpm_register_pid() 101 ret = ibnl_put_attr(skb, nlh, IWPM_ULIBNAME_SIZE, in iwpm_register_pid() 106 nlmsg_end(skb, nlh); in iwpm_register_pid() 147 struct nlmsghdr *nlh; in iwpm_add_mapping() local 230 struct nlmsghdr *nlh; iwpm_add_and_query_mapping() local 317 struct nlmsghdr *nlh; iwpm_remove_mapping() local [all...] |
H A D | netlink.c | 131 void *ibnl_put_msg(struct sk_buff *skb, struct nlmsghdr **nlh, int seq, in ibnl_put_msg() argument 134 *nlh = nlmsg_put(skb, 0, seq, RDMA_NL_GET_TYPE(client, op), len, flags); in ibnl_put_msg() 135 if (!*nlh) in ibnl_put_msg() 137 return nlmsg_data(*nlh); in ibnl_put_msg() 141 int ibnl_put_attr(struct sk_buff *skb, struct nlmsghdr *nlh, in ibnl_put_attr() argument 145 nlmsg_cancel(skb, nlh); in ibnl_put_attr() 152 static int rdma_nl_rcv_msg(struct sk_buff *skb, struct nlmsghdr *nlh, in rdma_nl_rcv_msg() argument 155 int type = nlh->nlmsg_type; in rdma_nl_rcv_msg() 181 err = cb_table[op].doit(skb, nlh, extack); in rdma_nl_rcv_msg() 185 if ((nlh in rdma_nl_rcv_msg() 212 struct nlmsghdr *nlh; rdma_nl_rcv_skb() local [all...] |
/kernel/linux/linux-5.10/net/netfilter/ |
H A D | nfnetlink.c | 182 static int nfnetlink_rcv_msg(struct sk_buff *skb, struct nlmsghdr *nlh, in nfnetlink_rcv_msg() argument 191 if (nlmsg_len(nlh) < sizeof(struct nfgenmsg)) in nfnetlink_rcv_msg() 194 type = nlh->nlmsg_type; in nfnetlink_rcv_msg() 220 u8 cb_id = NFNL_MSG_TYPE(nlh->nlmsg_type); in nfnetlink_rcv_msg() 222 struct nlattr *attr = (void *)nlh + min_len; in nfnetlink_rcv_msg() 223 int attrlen = nlh->nlmsg_len - min_len; in nfnetlink_rcv_msg() 241 err = nc->call_rcu(net, net->nfnl, skb, nlh, in nfnetlink_rcv_msg() 252 err = nc->call(net, net->nfnl, skb, nlh, in nfnetlink_rcv_msg() 267 struct nlmsghdr *nlh; member 272 static int nfnl_err_add(struct list_head *list, struct nlmsghdr *nlh, in argument 320 nfnetlink_rcv_batch(struct sk_buff *skb, struct nlmsghdr *nlh, u16 subsys_id, u32 genid) nfnetlink_rcv_batch() argument 544 nfnetlink_rcv_skb_batch(struct sk_buff *skb, struct nlmsghdr *nlh) nfnetlink_rcv_skb_batch() argument 584 struct nlmsghdr *nlh = nlmsg_hdr(skb); nfnetlink_rcv() local [all...] |
/kernel/linux/linux-5.10/drivers/scsi/ |
H A D | scsi_netlink.c | 34 struct nlmsghdr *nlh; in scsi_nl_rcv_msg() local 42 nlh = nlmsg_hdr(skb); in scsi_nl_rcv_msg() 43 if ((nlh->nlmsg_len < (sizeof(*nlh) + sizeof(*hdr))) || in scsi_nl_rcv_msg() 44 (skb->len < nlh->nlmsg_len)) { in scsi_nl_rcv_msg() 50 rlen = NLMSG_ALIGN(nlh->nlmsg_len); in scsi_nl_rcv_msg() 54 if (nlh->nlmsg_type != SCSI_TRANSPORT_MSG) { in scsi_nl_rcv_msg() 59 hdr = nlmsg_data(nlh); in scsi_nl_rcv_msg() 71 if (nlh->nlmsg_len < (sizeof(*nlh) in scsi_nl_rcv_msg() [all...] |
/kernel/linux/linux-6.6/drivers/scsi/ |
H A D | scsi_netlink.c | 34 struct nlmsghdr *nlh; in scsi_nl_rcv_msg() local 42 nlh = nlmsg_hdr(skb); in scsi_nl_rcv_msg() 43 if ((nlh->nlmsg_len < (sizeof(*nlh) + sizeof(*hdr))) || in scsi_nl_rcv_msg() 44 (skb->len < nlh->nlmsg_len)) { in scsi_nl_rcv_msg() 50 rlen = NLMSG_ALIGN(nlh->nlmsg_len); in scsi_nl_rcv_msg() 54 if (nlh->nlmsg_type != SCSI_TRANSPORT_MSG) { in scsi_nl_rcv_msg() 59 hdr = nlmsg_data(nlh); in scsi_nl_rcv_msg() 71 if (nlh->nlmsg_len < (sizeof(*nlh) in scsi_nl_rcv_msg() [all...] |
/kernel/linux/linux-5.10/net/phonet/ |
H A D | pn_netlink.c | 51 static int addr_doit(struct sk_buff *skb, struct nlmsghdr *nlh, in addr_doit() argument 69 err = nlmsg_parse_deprecated(nlh, sizeof(*ifm), tb, IFA_MAX, in addr_doit() 74 ifm = nlmsg_data(nlh); in addr_doit() 86 if (nlh->nlmsg_type == RTM_NEWADDR) in addr_doit() 91 phonet_address_notify(nlh->nlmsg_type, dev, pnaddr); in addr_doit() 99 struct nlmsghdr *nlh; in fill_addr() local 101 nlh = nlmsg_put(skb, portid, seq, event, sizeof(*ifm), 0); in fill_addr() 102 if (nlh == NULL) in fill_addr() 105 ifm = nlmsg_data(nlh); in fill_addr() 113 nlmsg_end(skb, nlh); in fill_addr() 164 struct nlmsghdr *nlh; fill_route() local 218 route_doit(struct sk_buff *skb, struct nlmsghdr *nlh, struct netlink_ext_ack *extack) route_doit() argument [all...] |
/kernel/linux/linux-6.6/net/phonet/ |
H A D | pn_netlink.c | 51 static int addr_doit(struct sk_buff *skb, struct nlmsghdr *nlh, in addr_doit() argument 69 err = nlmsg_parse_deprecated(nlh, sizeof(*ifm), tb, IFA_MAX, in addr_doit() 74 ifm = nlmsg_data(nlh); in addr_doit() 86 if (nlh->nlmsg_type == RTM_NEWADDR) in addr_doit() 91 phonet_address_notify(nlh->nlmsg_type, dev, pnaddr); in addr_doit() 99 struct nlmsghdr *nlh; in fill_addr() local 101 nlh = nlmsg_put(skb, portid, seq, event, sizeof(*ifm), 0); in fill_addr() 102 if (nlh == NULL) in fill_addr() 105 ifm = nlmsg_data(nlh); in fill_addr() 113 nlmsg_end(skb, nlh); in fill_addr() 164 struct nlmsghdr *nlh; fill_route() local 218 route_doit(struct sk_buff *skb, struct nlmsghdr *nlh, struct netlink_ext_ack *extack) route_doit() argument [all...] |
/kernel/linux/linux-6.6/tools/net/ynl/lib/ |
H A D | ynl.c | 139 ynl_ext_ack_check(struct ynl_sock *ys, const struct nlmsghdr *nlh, in ynl_ext_ack_check() argument 148 if (!(nlh->nlmsg_flags & NLM_F_ACK_TLVS)) in ynl_ext_ack_check() 151 mnl_attr_for_each(attr, nlh, hlen) { in ynl_ext_ack_check() 191 start = mnl_nlmsg_get_payload_offset(ys->nlh, in ynl_ext_ack_check() 193 end = mnl_nlmsg_get_payload_tail(ys->nlh); in ynl_ext_ack_check() 217 start = mnl_nlmsg_get_payload_offset(ys->nlh, in ynl_ext_ack_check() 219 end = mnl_nlmsg_get_payload_tail(ys->nlh); in ynl_ext_ack_check() 256 static int ynl_cb_error(const struct nlmsghdr *nlh, void *data) in ynl_cb_error() argument 258 const struct nlmsgerr *err = mnl_nlmsg_get_payload(nlh); in ynl_cb_error() 268 if (!(nlh in ynl_cb_error() 276 ynl_cb_done(const struct nlmsghdr *nlh, void *data) ynl_cb_done() argument 293 ynl_cb_noop(const struct nlmsghdr *nlh, void *data) ynl_cb_noop() argument 396 struct nlmsghdr *nlh; ynl_msg_start() local 413 struct nlmsghdr *nlh; ynl_gemsg_start() local 470 ynl_cb_null(const struct nlmsghdr *nlh, void *data) ynl_cb_null() argument 516 ynl_get_family_info_cb(const struct nlmsghdr *nlh, void *data) ynl_get_family_info_cb() argument 550 struct nlmsghdr *nlh; ynl_sock_read_family() local 698 ynl_ntf_parse(struct ynl_sock *ys, const struct nlmsghdr *nlh) ynl_ntf_parse() argument 735 ynl_ntf_trampoline(const struct nlmsghdr *nlh, void *data) ynl_ntf_trampoline() argument 792 ynl_check_alien(struct ynl_sock *ys, const struct nlmsghdr *nlh, __u32 rsp_cmd) ynl_check_alien() argument 809 ynl_req_trampoline(const struct nlmsghdr *nlh, void *data) ynl_req_trampoline() argument 847 ynl_dump_trampoline(const struct nlmsghdr *nlh, void *data) ynl_dump_trampoline() argument [all...] |
/kernel/linux/linux-6.6/include/net/ |
H A D | netlink.h | 22 * nlmsg_data(nlh)---^ ^ 23 * nlmsg_next(nlh)-----------------------+ 26 * <---------------------- nlmsg_len(nlh) ---------------------> 27 * <------ hdrlen ------> <- nlmsg_attrlen(nlh, hdrlen) -> 31 * nlmsg_attrdata(nlh, hdrlen)---^ 57 * nlmsg_data(nlh) head of message payload 58 * nlmsg_len(nlh) length of message payload 59 * nlmsg_attrdata(nlh, hdrlen) head of attributes data 60 * nlmsg_attrlen(nlh, hdrlen) length of attributes data 63 * nlmsg_ok(nlh, remainin 466 struct nlmsghdr *nlh; global() member 580 nlmsg_data(const struct nlmsghdr *nlh) nlmsg_data() argument 589 nlmsg_len(const struct nlmsghdr *nlh) nlmsg_len() argument 599 nlmsg_attrdata(const struct nlmsghdr *nlh, int hdrlen) nlmsg_attrdata() argument 611 nlmsg_attrlen(const struct nlmsghdr *nlh, int hdrlen) nlmsg_attrlen() argument 621 nlmsg_ok(const struct nlmsghdr *nlh, int remaining) nlmsg_ok() argument 637 nlmsg_next(const struct nlmsghdr *nlh, int *remaining) nlmsg_next() argument 734 __nlmsg_parse(const struct nlmsghdr *nlh, int hdrlen, struct nlattr *tb[], int maxtype, const struct nla_policy *policy, unsigned int validate, struct netlink_ext_ack *extack) __nlmsg_parse() argument 761 nlmsg_parse(const struct nlmsghdr *nlh, int hdrlen, struct nlattr *tb[], int maxtype, const struct nla_policy *policy, struct netlink_ext_ack *extack) nlmsg_parse() argument 781 nlmsg_parse_deprecated(const struct nlmsghdr *nlh, int hdrlen, struct nlattr *tb[], int maxtype, const struct nla_policy *policy, struct netlink_ext_ack *extack) nlmsg_parse_deprecated() argument 802 nlmsg_parse_deprecated_strict(const struct nlmsghdr *nlh, int hdrlen, struct nlattr *tb[], int maxtype, const struct nla_policy *policy, struct netlink_ext_ack *extack) nlmsg_parse_deprecated_strict() argument 819 nlmsg_find_attr(const struct nlmsghdr *nlh, int hdrlen, int attrtype) nlmsg_find_attr() argument 879 nlmsg_validate_deprecated(const struct nlmsghdr *nlh, int hdrlen, int maxtype, const struct nla_policy *policy, struct netlink_ext_ack *extack) nlmsg_validate_deprecated() argument 900 nlmsg_report(const struct nlmsghdr *nlh) nlmsg_report() argument 911 nlmsg_seq(const struct nlmsghdr *nlh) nlmsg_seq() argument 1011 nlmsg_end(struct sk_buff *skb, struct nlmsghdr *nlh) nlmsg_end() argument 1050 nlmsg_cancel(struct sk_buff *skb, struct nlmsghdr *nlh) nlmsg_cancel() argument 1131 nl_dump_check_consistent(struct netlink_callback *cb, struct nlmsghdr *nlh) nl_dump_check_consistent() argument [all...] |
/kernel/linux/linux-5.10/net/xfrm/ |
H A D | xfrm_user.c | 679 static int xfrm_add_sa(struct sk_buff *skb, struct nlmsghdr *nlh, in xfrm_add_sa() argument 683 struct xfrm_usersa_info *p = nlmsg_data(nlh); in xfrm_add_sa() 697 if (nlh->nlmsg_type == XFRM_MSG_NEWSA) in xfrm_add_sa() 714 c.seq = nlh->nlmsg_seq; in xfrm_add_sa() 715 c.portid = nlh->nlmsg_pid; in xfrm_add_sa() 716 c.event = nlh->nlmsg_type; in xfrm_add_sa() 758 static int xfrm_del_sa(struct sk_buff *skb, struct nlmsghdr *nlh, in xfrm_del_sa() argument 765 struct xfrm_usersa_id *p = nlmsg_data(nlh); in xfrm_del_sa() 784 c.seq = nlh->nlmsg_seq; in xfrm_del_sa() 785 c.portid = nlh in xfrm_del_sa() 993 struct nlmsghdr *nlh; dump_one_state() local 1157 struct nlmsghdr *nlh; build_spdinfo() local 1203 xfrm_set_spdinfo(struct sk_buff *skb, struct nlmsghdr *nlh, struct nlattr **attrs) xfrm_set_spdinfo() argument 1248 xfrm_get_spdinfo(struct sk_buff *skb, struct nlmsghdr *nlh, struct nlattr **attrs) xfrm_get_spdinfo() argument 1280 struct nlmsghdr *nlh; build_sadinfo() local 1307 xfrm_get_sadinfo(struct sk_buff *skb, struct nlmsghdr *nlh, struct nlattr **attrs) xfrm_get_sadinfo() argument 1327 xfrm_get_sa(struct sk_buff *skb, struct nlmsghdr *nlh, struct nlattr **attrs) xfrm_get_sa() argument 1351 xfrm_alloc_userspi(struct sk_buff *skb, struct nlmsghdr *nlh, struct nlattr **attrs) xfrm_alloc_userspi() argument 1703 xfrm_add_policy(struct sk_buff *skb, struct nlmsghdr *nlh, struct nlattr **attrs) xfrm_add_policy() argument 1826 struct nlmsghdr *nlh; dump_one_policy() local 1930 struct nlmsghdr *nlh; xfrm_notify_userpolicy() local 1964 xfrm_set_default(struct sk_buff *skb, struct nlmsghdr *nlh, struct nlattr **attrs) xfrm_set_default() argument 1985 xfrm_get_default(struct sk_buff *skb, struct nlmsghdr *nlh, struct nlattr **attrs) xfrm_get_default() argument 2015 xfrm_get_policy(struct sk_buff *skb, struct nlmsghdr *nlh, struct nlattr **attrs) xfrm_get_policy() argument 2098 xfrm_flush_sa(struct sk_buff *skb, struct nlmsghdr *nlh, struct nlattr **attrs) xfrm_flush_sa() argument 2139 struct nlmsghdr *nlh; build_aevent() local 2198 xfrm_get_ae(struct sk_buff *skb, struct nlmsghdr *nlh, struct nlattr **attrs) xfrm_get_ae() argument 2242 xfrm_new_ae(struct sk_buff *skb, struct nlmsghdr *nlh, struct nlattr **attrs) xfrm_new_ae() argument 2293 xfrm_flush_policy(struct sk_buff *skb, struct nlmsghdr *nlh, struct nlattr **attrs) xfrm_flush_policy() argument 2321 xfrm_add_pol_expire(struct sk_buff *skb, struct nlmsghdr *nlh, struct nlattr **attrs) xfrm_add_pol_expire() argument 2387 xfrm_add_sa_expire(struct sk_buff *skb, struct nlmsghdr *nlh, struct nlattr **attrs) xfrm_add_sa_expire() argument 2421 xfrm_add_acquire(struct sk_buff *skb, struct nlmsghdr *nlh, struct nlattr **attrs) xfrm_add_acquire() argument 2526 xfrm_do_migrate(struct sk_buff *skb, struct nlmsghdr *nlh, struct nlattr **attrs) xfrm_do_migrate() argument 2572 xfrm_do_migrate(struct sk_buff *skb, struct nlmsghdr *nlh, struct nlattr **attrs) xfrm_do_migrate() argument 2628 struct nlmsghdr *nlh; build_migrate() local 2808 xfrm_user_rcv_msg(struct sk_buff *skb, struct nlmsghdr *nlh, struct netlink_ext_ack *extack) xfrm_user_rcv_msg() argument 2907 struct nlmsghdr *nlh; build_expire() local 2969 struct nlmsghdr *nlh; xfrm_notify_sa_flush() local 3043 struct nlmsghdr *nlh; xfrm_notify_sa() local 3136 struct nlmsghdr *nlh; build_acquire() local 3262 struct nlmsghdr *nlh; build_polexpire() local 3312 struct nlmsghdr *nlh; xfrm_notify_policy() local 3378 struct nlmsghdr *nlh; xfrm_notify_policy_flush() local 3433 struct nlmsghdr *nlh; build_report() local 3479 struct nlmsghdr *nlh; build_mapping() local [all...] |
/kernel/linux/linux-5.10/tools/bpf/bpftool/ |
H A D | net.c | 197 static int __dump_class_nlmsg(struct nlmsghdr *nlh, in __dump_class_nlmsg() argument 202 struct tcmsg *t = NLMSG_DATA(nlh); in __dump_class_nlmsg() 205 len = nlh->nlmsg_len - NLMSG_LENGTH(sizeof(*t)); in __dump_class_nlmsg() 217 struct nlmsghdr nlh; in netlink_get_class() member 220 .nlh.nlmsg_len = NLMSG_LENGTH(sizeof(struct tcmsg)), in netlink_get_class() 221 .nlh.nlmsg_type = RTM_GETTCLASS, in netlink_get_class() 222 .nlh.nlmsg_flags = NLM_F_DUMP | NLM_F_REQUEST, in netlink_get_class() 228 req.nlh.nlmsg_seq = seq; in netlink_get_class() 229 if (send(sock, &req, req.nlh.nlmsg_len, 0) < 0) in netlink_get_class() 236 static int __dump_qdisc_nlmsg(struct nlmsghdr *nlh, in __dump_qdisc_nlmsg() argument 256 struct nlmsghdr nlh; netlink_get_qdisc() member 275 __dump_filter_nlmsg(struct nlmsghdr *nlh, dump_nlmsg_t dump_filter_nlmsg, void *cookie) __dump_filter_nlmsg() argument 295 struct nlmsghdr nlh; netlink_get_filter() member 315 __dump_link_nlmsg(struct nlmsghdr *nlh, dump_nlmsg_t dump_link_nlmsg, void *cookie) __dump_link_nlmsg() argument 334 struct nlmsghdr nlh; netlink_get_link() member [all...] |
/kernel/linux/linux-5.10/include/net/ |
H A D | netlink.h | 22 * nlmsg_data(nlh)---^ ^ 23 * nlmsg_next(nlh)-----------------------+ 26 * <---------------------- nlmsg_len(nlh) ---------------------> 27 * <------ hdrlen ------> <- nlmsg_attrlen(nlh, hdrlen) -> 31 * nlmsg_attrdata(nlh, hdrlen)---^ 57 * nlmsg_data(nlh) head of message payload 58 * nlmsg_len(nlh) length of message payload 59 * nlmsg_attrdata(nlh, hdrlen) head of attributes data 60 * nlmsg_attrlen(nlh, hdrlen) length of attributes data 63 * nlmsg_ok(nlh, remainin 454 struct nlmsghdr *nlh; global() member 568 nlmsg_data(const struct nlmsghdr *nlh) nlmsg_data() argument 577 nlmsg_len(const struct nlmsghdr *nlh) nlmsg_len() argument 587 nlmsg_attrdata(const struct nlmsghdr *nlh, int hdrlen) nlmsg_attrdata() argument 599 nlmsg_attrlen(const struct nlmsghdr *nlh, int hdrlen) nlmsg_attrlen() argument 609 nlmsg_ok(const struct nlmsghdr *nlh, int remaining) nlmsg_ok() argument 625 nlmsg_next(const struct nlmsghdr *nlh, int *remaining) nlmsg_next() argument 722 __nlmsg_parse(const struct nlmsghdr *nlh, int hdrlen, struct nlattr *tb[], int maxtype, const struct nla_policy *policy, unsigned int validate, struct netlink_ext_ack *extack) __nlmsg_parse() argument 748 nlmsg_parse(const struct nlmsghdr *nlh, int hdrlen, struct nlattr *tb[], int maxtype, const struct nla_policy *policy, struct netlink_ext_ack *extack) nlmsg_parse() argument 767 nlmsg_parse_deprecated(const struct nlmsghdr *nlh, int hdrlen, struct nlattr *tb[], int maxtype, const struct nla_policy *policy, struct netlink_ext_ack *extack) nlmsg_parse_deprecated() argument 787 nlmsg_parse_deprecated_strict(const struct nlmsghdr *nlh, int hdrlen, struct nlattr *tb[], int maxtype, const struct nla_policy *policy, struct netlink_ext_ack *extack) nlmsg_parse_deprecated_strict() argument 804 nlmsg_find_attr(const struct nlmsghdr *nlh, int hdrlen, int attrtype) nlmsg_find_attr() argument 865 nlmsg_validate_deprecated(const struct nlmsghdr *nlh, int hdrlen, int maxtype, const struct nla_policy *policy, struct netlink_ext_ack *extack) nlmsg_validate_deprecated() argument 886 nlmsg_report(const struct nlmsghdr *nlh) nlmsg_report() argument 965 nlmsg_end(struct sk_buff *skb, struct nlmsghdr *nlh) nlmsg_end() argument 1004 nlmsg_cancel(struct sk_buff *skb, struct nlmsghdr *nlh) nlmsg_cancel() argument 1085 nl_dump_check_consistent(struct netlink_callback *cb, struct nlmsghdr *nlh) nl_dump_check_consistent() argument [all...] |
/kernel/linux/linux-5.10/tools/include/uapi/linux/ |
H A D | netlink.h | 94 #define NLMSG_DATA(nlh) ((void*)(((char*)nlh) + NLMSG_LENGTH(0))) 95 #define NLMSG_NEXT(nlh,len) ((len) -= NLMSG_ALIGN((nlh)->nlmsg_len), \ 96 (struct nlmsghdr*)(((char*)(nlh)) + NLMSG_ALIGN((nlh)->nlmsg_len))) 97 #define NLMSG_OK(nlh,len) ((len) >= (int)sizeof(struct nlmsghdr) && \ 98 (nlh)->nlmsg_len >= sizeof(struct nlmsghdr) && \ 99 (nlh)->nlmsg_len <= (len)) 100 #define NLMSG_PAYLOAD(nlh,le [all...] |
/kernel/linux/linux-6.6/tools/include/uapi/linux/ |
H A D | netlink.h | 94 #define NLMSG_DATA(nlh) ((void*)(((char*)nlh) + NLMSG_LENGTH(0))) 95 #define NLMSG_NEXT(nlh,len) ((len) -= NLMSG_ALIGN((nlh)->nlmsg_len), \ 96 (struct nlmsghdr*)(((char*)(nlh)) + NLMSG_ALIGN((nlh)->nlmsg_len))) 97 #define NLMSG_OK(nlh,len) ((len) >= (int)sizeof(struct nlmsghdr) && \ 98 (nlh)->nlmsg_len >= sizeof(struct nlmsghdr) && \ 99 (nlh)->nlmsg_len <= (len)) 100 #define NLMSG_PAYLOAD(nlh,le [all...] |
/kernel/linux/patches/linux-4.19/prebuilts/usr/include/linux/ |
H A D | netlink.h | 70 #define NLMSG_DATA(nlh) ((void*)(((char*)nlh) + NLMSG_LENGTH(0))) 71 #define NLMSG_NEXT(nlh,len) ((len) -= NLMSG_ALIGN((nlh)->nlmsg_len), \ 72 (struct nlmsghdr*)(((char*)(nlh)) + NLMSG_ALIGN((nlh)->nlmsg_len))) 73 #define NLMSG_OK(nlh,len) ((len) >= (int)sizeof(struct nlmsghdr) && \ 74 (nlh)->nlmsg_len >= sizeof(struct nlmsghdr) && \ 75 (nlh)->nlmsg_len <= (len)) 76 #define NLMSG_PAYLOAD(nlh,le [all...] |