Home
last modified time | relevance | path

Searched refs:data (Results 1 – 25 of 696) sorted by relevance

12345678910>>...28

/net/ipv4/
Dsysctl_net_ipv4.c76 container_of(table->data, struct net, ipv4.ip_local_ports.range); in ipv4_local_port_range()
80 .data = &range, in ipv4_local_port_range()
110 struct net *net = container_of(table->data, struct net, in ipv4_privileged_ports()
116 .data = &pports, in ipv4_privileged_ports()
143 kgid_t *data = table->data; in inet_get_ping_group_range_table() local
145 container_of(table->data, struct net, ipv4.ping_group_range.range); in inet_get_ping_group_range_table()
150 *low = data[0]; in inet_get_ping_group_range_table()
151 *high = data[1]; in inet_get_ping_group_range_table()
158 kgid_t *data = table->data; in set_ping_group_range() local
160 container_of(table->data, struct net, ipv4.ping_group_range.range); in set_ping_group_range()
[all …]
Dipip.c132 const struct iphdr *iph = (const struct iphdr *)skb->data; in ipip_err()
389 static int ipip_tunnel_validate(struct nlattr *tb[], struct nlattr *data[], in ipip_tunnel_validate() argument
394 if (!data || !data[IFLA_IPTUN_PROTO]) in ipip_tunnel_validate()
397 proto = nla_get_u8(data[IFLA_IPTUN_PROTO]); in ipip_tunnel_validate()
404 static void ipip_netlink_parms(struct nlattr *data[], in ipip_netlink_parms() argument
415 if (!data) in ipip_netlink_parms()
418 if (data[IFLA_IPTUN_LINK]) in ipip_netlink_parms()
419 parms->link = nla_get_u32(data[IFLA_IPTUN_LINK]); in ipip_netlink_parms()
421 if (data[IFLA_IPTUN_LOCAL]) in ipip_netlink_parms()
422 parms->iph.saddr = nla_get_in_addr(data[IFLA_IPTUN_LOCAL]); in ipip_netlink_parms()
[all …]
Dip_gre.c228 const struct iphdr *iph = (struct iphdr *)skb->data; in gre_err()
281 ershdr = (struct erspan_base_hdr *)(skb->data + gre_hdr_len); in erspan_rcv()
637 tnl_params = (const struct iphdr *)skb->data; in ipgre_xmit()
647 skb_checksum_start(skb) < skb->data) in ipgre_xmit()
1039 static int ipgre_tunnel_validate(struct nlattr *tb[], struct nlattr *data[], in ipgre_tunnel_validate() argument
1044 if (!data) in ipgre_tunnel_validate()
1048 if (data[IFLA_GRE_IFLAGS]) in ipgre_tunnel_validate()
1049 flags |= nla_get_be16(data[IFLA_GRE_IFLAGS]); in ipgre_tunnel_validate()
1050 if (data[IFLA_GRE_OFLAGS]) in ipgre_tunnel_validate()
1051 flags |= nla_get_be16(data[IFLA_GRE_OFLAGS]); in ipgre_tunnel_validate()
[all …]
/net/nfc/nci/
Dntf.c33 struct nci_core_conn_credit_ntf *ntf = (void *) skb->data; in nci_core_conn_credits_ntf_packet()
68 __u8 status = skb->data[0]; in nci_core_generic_error_ntf_packet()
82 struct nci_core_intf_error_ntf *ntf = (void *) skb->data; in nci_core_conn_intf_error_ntf_packet()
95 __u8 *data) in nci_extract_rf_params_nfca_passive_poll() argument
97 nfca_poll->sens_res = __le16_to_cpu(*((__le16 *)data)); in nci_extract_rf_params_nfca_passive_poll()
98 data += 2; in nci_extract_rf_params_nfca_passive_poll()
100 nfca_poll->nfcid1_len = min_t(__u8, *data++, NFC_NFCID1_MAXSIZE); in nci_extract_rf_params_nfca_passive_poll()
105 memcpy(nfca_poll->nfcid1, data, nfca_poll->nfcid1_len); in nci_extract_rf_params_nfca_passive_poll()
106 data += nfca_poll->nfcid1_len; in nci_extract_rf_params_nfca_passive_poll()
108 nfca_poll->sel_res_len = *data++; in nci_extract_rf_params_nfca_passive_poll()
[all …]
Dhci.c22 const u8 *data; member
50 u8 data[]; member
142 const u8 data_type, const u8 *data, in nci_hci_send_data() argument
178 skb_put_data(skb, data + i, len); in nci_hci_send_data()
202 struct nci_data *data = (struct nci_data *)opt; in nci_hci_send_data_req() local
204 nci_hci_send_data(ndev, data->pipe, data->cmd, in nci_hci_send_data_req()
205 data->data, data->data_len); in nci_hci_send_data_req()
228 struct nci_data data; in nci_hci_send_cmd() local
239 data.conn_id = conn_info->conn_id; in nci_hci_send_cmd()
240 data.pipe = pipe; in nci_hci_send_cmd()
[all …]
/net/lapb/
Dlapb_subr.c111 lapb_dbg(2, "(%p) S%d RX %3ph\n", lapb->dev, lapb->state, skb->data); in lapb_decode()
121 if (skb->data[0] == LAPB_ADDR_D) in lapb_decode()
123 if (skb->data[0] == LAPB_ADDR_C) in lapb_decode()
126 if (skb->data[0] == LAPB_ADDR_C) in lapb_decode()
128 if (skb->data[0] == LAPB_ADDR_D) in lapb_decode()
133 if (skb->data[0] == LAPB_ADDR_B) in lapb_decode()
135 if (skb->data[0] == LAPB_ADDR_A) in lapb_decode()
138 if (skb->data[0] == LAPB_ADDR_A) in lapb_decode()
140 if (skb->data[0] == LAPB_ADDR_B) in lapb_decode()
148 if (!(skb->data[0] & LAPB_S)) { in lapb_decode()
[all …]
/net/mac80211/
Dethtool.c66 u64 *data) in ieee80211_get_stats() argument
78 memset(data, 0, sizeof(u64) * STA_STATS_LEN); in ieee80211_get_stats()
82 data[i++] += sta->rx_stats.packets; \ in ieee80211_get_stats()
83 data[i++] += sta->rx_stats.bytes; \ in ieee80211_get_stats()
84 data[i++] += sta->rx_stats.num_duplicates; \ in ieee80211_get_stats()
85 data[i++] += sta->rx_stats.fragments; \ in ieee80211_get_stats()
86 data[i++] += sta->rx_stats.dropped; \ in ieee80211_get_stats()
88 data[i++] += sinfo.tx_packets; \ in ieee80211_get_stats()
89 data[i++] += sinfo.tx_bytes; \ in ieee80211_get_stats()
90 data[i++] += sta->status_stats.filtered; \ in ieee80211_get_stats()
[all …]
/net/netfilter/
Dnft_cmp.c20 struct nft_data data; member
33 d = memcmp(&regs->data[priv->sreg], &priv->data, priv->len); in nft_cmp_eval()
78 .size = sizeof(priv->data), in nft_cmp_init()
82 err = nft_data_init(NULL, &priv->data, &desc, tb[NFTA_CMP_DATA]); in nft_cmp_init()
104 if (nft_data_dump(skb, NFTA_CMP_DATA, &priv->data, in nft_cmp_dump()
119 static void nft_payload_n2h(union nft_cmp_offload_data *data, in nft_payload_n2h() argument
124 data->val16 = ntohs(*((u16 *)val)); in nft_payload_n2h()
127 data->val32 = ntohl(*((u32 *)val)); in nft_payload_n2h()
130 data->val64 = be64_to_cpu(*((u64 *)val)); in nft_payload_n2h()
146 u8 *data, *datamask; in __nft_cmp_offload() local
[all …]
Dnf_conntrack_irc.c72 static int parse_dcc(char *data, const char *data_end, __be32 *ip, in parse_dcc() argument
78 while (*data++ != ' ') in parse_dcc()
79 if (data > data_end - 12) in parse_dcc()
84 for (tmp = data; tmp <= data_end; tmp++) in parse_dcc()
90 *ad_beg_p = data; in parse_dcc()
91 *ip = cpu_to_be32(simple_strtoul(data, &data, 10)); in parse_dcc()
94 while (*data == ' ') { in parse_dcc()
95 if (data >= data_end) in parse_dcc()
97 data++; in parse_dcc()
100 *port = simple_strtoul(data, &data, 10); in parse_dcc()
[all …]
Dnft_immediate.c24 nft_data_copy(&regs->data[priv->dreg], &priv->data, priv->dlen); in nft_immediate_eval()
52 .size = sizeof(priv->data), in nft_immediate_init()
61 err = nft_data_init(ctx, &priv->data, &desc, tb[NFTA_IMMEDIATE_DATA]); in nft_immediate_init()
68 &priv->dreg, &priv->data, desc.type, in nft_immediate_init()
74 struct nft_chain *chain = priv->data.verdict.chain; in nft_immediate_init()
76 switch (priv->data.verdict.code) { in nft_immediate_init()
91 nft_data_release(&priv->data, desc.type); in nft_immediate_init()
99 const struct nft_data *data = &priv->data; in nft_immediate_activate() local
105 switch (data->verdict.code) { in nft_immediate_activate()
108 chain = data->verdict.chain; in nft_immediate_activate()
[all …]
Dxt_ipvs.c51 const struct xt_ipvs_mtinfo *data = par->matchinfo; in ipvs_mt() local
60 if (data->bitmask == XT_IPVS_IPVS_PROPERTY) { in ipvs_mt()
62 !!(data->invert & XT_IPVS_IPVS_PROPERTY); in ipvs_mt()
74 if (data->bitmask & XT_IPVS_PROTO) in ipvs_mt()
75 if ((iph.protocol == data->l4proto) ^ in ipvs_mt()
76 !(data->invert & XT_IPVS_PROTO)) { in ipvs_mt()
101 if (data->bitmask & XT_IPVS_VPORT) in ipvs_mt()
102 if ((cp->vport == data->vport) ^ in ipvs_mt()
103 !(data->invert & XT_IPVS_VPORT)) { in ipvs_mt()
108 if (data->bitmask & XT_IPVS_VPORTCTL) in ipvs_mt()
[all …]
Dnf_conntrack_h323_main.c54 unsigned char **data, int dataoff,
59 unsigned char **data, int dataoff,
66 unsigned int protoff, unsigned char **data,
71 unsigned int protoff, unsigned char **data,
77 unsigned char **data, int dataoff,
86 unsigned char **data, int dataoff,
93 unsigned char **data, int dataoff,
100 unsigned char **data, int dataoff,
107 unsigned char **data, TransportAddress *taddr, int idx,
120 unsigned char **data, int *datalen, int *dataoff) in get_tpkt_data() argument
[all …]
Dxt_l2tp.c49 static bool l2tp_match(const struct xt_l2tp_info *info, struct l2tp_data *data) in l2tp_match() argument
51 if ((info->flags & XT_L2TP_TYPE) && (info->type != data->type)) in l2tp_match()
54 if ((info->flags & XT_L2TP_VERSION) && (info->version != data->version)) in l2tp_match()
59 ((data->type == XT_L2TP_TYPE_CONTROL) || (data->version == 2)) && in l2tp_match()
60 (info->tid != data->tid)) in l2tp_match()
64 if ((info->flags & XT_L2TP_SID) && (data->type == XT_L2TP_TYPE_DATA) && in l2tp_match()
65 (info->sid != data->sid)) in l2tp_match()
87 struct l2tp_data data = { 0, }; in l2tp_udp_mt() local
101 data.type = XT_L2TP_TYPE_CONTROL; in l2tp_udp_mt()
103 data.type = XT_L2TP_TYPE_DATA; in l2tp_udp_mt()
[all …]
Dnf_conntrack_ftp.c122 static int try_number(const char *data, size_t dlen, u_int32_t array[], in try_number() argument
130 for (i = 0, len = 0; len < dlen && i < array_size; len++, data++) { in try_number()
131 if (*data >= '0' && *data <= '9') { in try_number()
132 array[i] = array[i]*10 + *data - '0'; in try_number()
134 else if (*data == sep) in try_number()
140 if ((*data == term || !term) && i == array_size - 1) in try_number()
144 len, i, *data); in try_number()
154 static int try_rfc959(const char *data, size_t dlen, in try_rfc959() argument
161 length = try_number(data, dlen, array, 6, ',', term); in try_rfc959()
181 static int try_rfc1123(const char *data, size_t dlen, in try_rfc1123() argument
[all …]
/net/sunrpc/auth_gss/
Dgss_rpc_upcall.c226 return kmemdup_nul(netobj->data, netobj->len, GFP_KERNEL); in gssp_stringify()
266 struct gssp_upcall_data *data) in gssp_accept_sec_context_upcall() argument
269 .state = data->in_handle in gssp_accept_sec_context_upcall()
272 .input_token = data->in_token, in gssp_accept_sec_context_upcall()
286 .output_token = &data->out_token in gssp_accept_sec_context_upcall()
298 if (data->in_handle.len != 0) in gssp_accept_sec_context_upcall()
312 data->major_status = res.status.major_status; in gssp_accept_sec_context_upcall()
313 data->minor_status = res.status.minor_status; in gssp_accept_sec_context_upcall()
315 data->out_handle = rctxh.exported_context_token; in gssp_accept_sec_context_upcall()
316 data->mech_oid.len = rctxh.mech.len; in gssp_accept_sec_context_upcall()
[all …]
Dgss_krb5_keys.c163 if (crypto_sync_skcipher_setkey(cipher, inkey->data, inkey->len)) in krb5_derive_key()
181 inblock.data = (char *) inblockdata; in krb5_derive_key()
184 outblock.data = (char *) outblockdata; in krb5_derive_key()
190 memcpy(inblock.data, in_constant->data, inblock.len); in krb5_derive_key()
192 krb5_nfold(in_constant->len * 8, in_constant->data, in krb5_derive_key()
193 inblock.len * 8, inblock.data); in krb5_derive_key()
200 (*(gk5e->encrypt))(cipher, NULL, inblock.data, in krb5_derive_key()
201 outblock.data, inblock.len); in krb5_derive_key()
204 memcpy(rawkey + n, outblock.data, (keybytes - n)); in krb5_derive_key()
208 memcpy(rawkey + n, outblock.data, outblock.len); in krb5_derive_key()
[all …]
/net/bluetooth/
Dhci_debugfs.c199 struct oob_data *data; in remote_oob_show() local
202 list_for_each_entry(data, &hdev->remote_oob_data, list) { in remote_oob_show()
204 &data->bdaddr, data->bdaddr_type, data->present, in remote_oob_show()
205 16, data->hash192, 16, data->rand192, in remote_oob_show()
206 16, data->hash256, 16, data->rand256); in remote_oob_show()
215 static int conn_info_min_age_set(void *data, u64 val) in conn_info_min_age_set() argument
217 struct hci_dev *hdev = data; in conn_info_min_age_set()
229 static int conn_info_min_age_get(void *data, u64 *val) in conn_info_min_age_get() argument
231 struct hci_dev *hdev = data; in conn_info_min_age_get()
243 static int conn_info_max_age_set(void *data, u64 val) in conn_info_max_age_set() argument
[all …]
/net/ethtool/
Dlinkstate.c65 struct linkstate_reply_data *data) in linkstate_get_link_ext_state() argument
72 err = dev->ethtool_ops->get_link_ext_state(dev, &data->ethtool_link_ext_state_info); in linkstate_get_link_ext_state()
76 data->link_ext_state_provided = true; in linkstate_get_link_ext_state()
85 struct linkstate_reply_data *data = LINKSTATE_REPDATA(reply_base); in linkstate_prepare_data() local
92 data->link = __ethtool_get_link(dev); in linkstate_prepare_data()
97 data->sqi = ret; in linkstate_prepare_data()
102 data->sqi_max = ret; in linkstate_prepare_data()
105 ret = linkstate_get_link_ext_state(dev, data); in linkstate_prepare_data()
119 struct linkstate_reply_data *data = LINKSTATE_REPDATA(reply_base); in linkstate_reply_size() local
125 if (data->sqi != -EOPNOTSUPP) in linkstate_reply_size()
[all …]
/net/sctp/
Dsysctl.c59 .data = &sysctl_sctp_mem,
66 .data = &sysctl_sctp_rmem,
73 .data = &sysctl_sctp_wmem,
95 .data = &init_net.sctp.rto_min,
104 .data = &init_net.sctp.rto_max,
113 .data = &init_net.sctp.pf_retrans,
122 .data = &init_net.sctp.ps_retrans,
131 .data = &init_net.sctp.rto_initial,
140 .data = &init_net.sctp.rto_alpha,
149 .data = &init_net.sctp.rto_beta,
[all …]
/net/netfilter/ipvs/
Dip_vs_ftp.c68 struct tcphdr *th = (struct tcphdr *)((char *)skb->data + ipvsh->len); in ip_vs_ftp_data_ptr()
96 static int ip_vs_ftp_get_addrport(char *data, char *data_limit, in ip_vs_ftp_get_addrport() argument
108 if (data_limit - data < plen) { in ip_vs_ftp_get_addrport()
110 if (strncasecmp(data, pattern, data_limit - data) == 0) in ip_vs_ftp_get_addrport()
116 if (strncasecmp(data, pattern, plen) != 0) { in ip_vs_ftp_get_addrport()
119 s = data + plen; in ip_vs_ftp_get_addrport()
142 for (data = s; ; data++) { in ip_vs_ftp_get_addrport()
143 if (data == data_limit) in ip_vs_ftp_get_addrport()
145 c = *data; in ip_vs_ftp_get_addrport()
161 *end = data; in ip_vs_ftp_get_addrport()
[all …]
/net/wireless/
Dlib80211_crypt_ccmp.c213 hdr = (struct ieee80211_hdr *)skb->data; in lib80211_ccmp_encrypt()
220 sg_set_buf(&sg[1], skb->data + hdr_len + CCMP_HDR_LEN, in lib80211_ccmp_encrypt()
272 hdr = (struct ieee80211_hdr *)skb->data; in lib80211_ccmp_decrypt()
273 pos = skb->data + hdr_len; in lib80211_ccmp_decrypt()
340 memmove(skb->data + CCMP_HDR_LEN, skb->data, hdr_len); in lib80211_ccmp_decrypt()
349 struct lib80211_ccmp_data *data = priv; in lib80211_ccmp_set_key() local
351 struct crypto_aead *tfm = data->tfm; in lib80211_ccmp_set_key()
353 keyidx = data->key_idx; in lib80211_ccmp_set_key()
354 memset(data, 0, sizeof(*data)); in lib80211_ccmp_set_key()
355 data->key_idx = keyidx; in lib80211_ccmp_set_key()
[all …]
/net/core/
Dsysctl_net_core.c55 .data = &size, in rps_sock_flow_sysctl()
202 ptr = table->data; in flow_limit_table_len_sysctl()
221 .data = id, in set_default_qdisc()
260 fake_table.data = buf; in proc_do_rss_key()
270 int ret, jit_enable = *(int *)table->data; in proc_dointvec_minmax_bpf_enable()
276 tmp.data = &jit_enable; in proc_dointvec_minmax_bpf_enable()
281 *(int *)table->data = jit_enable; in proc_dointvec_minmax_bpf_enable()
318 .data = &sysctl_wmem_max,
326 .data = &sysctl_rmem_max,
334 .data = &sysctl_wmem_default,
[all …]
/net/ipv6/
Dsysctl_net_ipv6.c35 net = container_of(table->data, struct net, in proc_rt6_multipath_hash_policy()
47 .data = &init_net.ipv6.sysctl.bindv6only,
54 .data = &init_net.ipv6.sysctl.anycast_src_echo_reply,
61 .data = &init_net.ipv6.sysctl.flowlabel_consistency,
68 .data = &init_net.ipv6.sysctl.auto_flowlabels,
77 .data = &init_net.ipv6.sysctl.fwmark_reflect,
84 .data = &init_net.ipv6.sysctl.idgen_retries,
91 .data = &init_net.ipv6.sysctl.idgen_delay,
98 .data = &init_net.ipv6.sysctl.flowlabel_state_ranges,
105 .data = &init_net.ipv6.sysctl.ip_nonlocal_bind,
[all …]
/net/bpf/
Dtest_run.c130 union bpf_attr __user *uattr, const void *data, in bpf_test_finish() argument
146 if (data_out && copy_to_user(data_out, data, copy_size)) in bpf_test_finish()
226 void *data; in bpf_test_init() local
235 data = kzalloc(size + headroom + tailroom, GFP_USER); in bpf_test_init()
236 if (!data) in bpf_test_init()
239 if (copy_from_user(data + headroom, data_in, user_size)) { in bpf_test_init()
240 kfree(data); in bpf_test_init()
244 return data; in bpf_test_init()
298 __bpf_prog_test_run_raw_tp(void *data) in __bpf_prog_test_run_raw_tp() argument
300 struct bpf_raw_tp_test_run_info *info = data; in __bpf_prog_test_run_raw_tp()
[all …]
/net/caif/
Dcfpkt_skbuff.c108 int cfpkt_peek_head(struct cfpkt *pkt, void *data, u16 len) in cfpkt_peek_head() argument
112 memcpy(data, skb->data, len); in cfpkt_peek_head()
115 return !cfpkt_extr_head(pkt, data, len) && in cfpkt_peek_head()
116 !cfpkt_add_head(pkt, data, len); in cfpkt_peek_head()
119 int cfpkt_extr_head(struct cfpkt *pkt, void *data, u16 len) in cfpkt_extr_head() argument
139 if (data) in cfpkt_extr_head()
140 memcpy(data, from, len); in cfpkt_extr_head()
148 u8 *data = dta; in cfpkt_extr_trail() local
157 if (unlikely(skb->data + len > skb_tail_pointer(skb))) { in cfpkt_extr_trail()
163 memcpy(data, from, len); in cfpkt_extr_trail()
[all …]

12345678910>>...28