Home
last modified time | relevance | path

Searched refs:buffer (Results 1 – 25 of 66) sorted by relevance

123

/net/netfilter/
Dnf_nat_sip.c38 const char *buffer, unsigned int buflen) in mangle_packet() argument
52 buffer, buflen, false)) in mangle_packet()
60 buffer, buflen)) in mangle_packet()
70 static int sip_sprintf_addr(const struct nf_conn *ct, char *buffer, in sip_sprintf_addr() argument
74 return sprintf(buffer, "%pI4", &addr->ip); in sip_sprintf_addr()
77 return sprintf(buffer, "[%pI6c]", &addr->ip6); in sip_sprintf_addr()
79 return sprintf(buffer, "%pI6c", &addr->ip6); in sip_sprintf_addr()
83 static int sip_sprintf_addr_port(const struct nf_conn *ct, char *buffer, in sip_sprintf_addr_port() argument
87 return sprintf(buffer, "%pI4:%u", &addr->ip, port); in sip_sprintf_addr_port()
89 return sprintf(buffer, "[%pI6c]:%u", &addr->ip6, port); in sip_sprintf_addr_port()
[all …]
Dnf_nat_ftp.c34 char *buffer, size_t buflen, in nf_nat_ftp_fmt_cmd() argument
40 return snprintf(buffer, buflen, "%u,%u,%u,%u,%u,%u", in nf_nat_ftp_fmt_cmd()
49 return snprintf(buffer, buflen, "|1|%pI4|%u|", in nf_nat_ftp_fmt_cmd()
52 return snprintf(buffer, buflen, "|2|%pI6|%u|", in nf_nat_ftp_fmt_cmd()
55 return snprintf(buffer, buflen, "|||%u|", port); in nf_nat_ftp_fmt_cmd()
75 char buffer[sizeof("|1||65535|") + INET6_ADDRSTRLEN]; in nf_nat_ftp() local
108 buflen = nf_nat_ftp_fmt_cmd(ct, type, buffer, sizeof(buffer), in nf_nat_ftp()
116 matchlen, buffer, buflen)) in nf_nat_ftp()
Dnf_nat_irc.c39 char buffer[sizeof("4294967296 65635")]; in help() local
84 snprintf(buffer, sizeof(buffer), "%u %u", ntohl(newaddr.ip), port); in help()
86 buffer, &newaddr.ip, port); in help()
89 matchlen, buffer, strlen(buffer))) { in help()
Dnf_nat_amanda.c35 char buffer[sizeof("65535")]; in help() local
65 sprintf(buffer, "%u", port); in help()
68 buffer, strlen(buffer))) { in help()
/net/core/
Dsysctl_net_core.c48 void __user *buffer, size_t *lenp, loff_t *ppos) in rps_sock_flow_sysctl() argument
66 ret = proc_dointvec(&tmp, write, buffer, lenp, ppos); in rps_sock_flow_sysctl()
118 void __user *buffer, size_t *lenp, in flow_limit_cpu_sysctl() argument
130 ret = cpumask_parse_user(buffer, *lenp, mask); in flow_limit_cpu_sysctl()
183 if (copy_to_user(buffer, kbuf, len)) { in flow_limit_cpu_sysctl()
197 void __user *buffer, size_t *lenp, in flow_limit_table_len_sysctl() argument
207 ret = proc_dointvec(table, write, buffer, lenp, ppos); in flow_limit_table_len_sysctl()
220 void __user *buffer, size_t *lenp, loff_t *ppos) in set_default_qdisc() argument
231 ret = proc_dostring(&tbl, write, buffer, lenp, ppos); in set_default_qdisc()
239 void __user *buffer, size_t *lenp, loff_t *ppos) in proc_do_dev_weight() argument
[all …]
/net/sched/
Dsch_tbf.c100 s64 buffer; /* Token bucket depth/rate: MUST BE >= MTU/B */ member
223 toks = min_t(s64, now - q->t_c, q->buffer); in tbf_dequeue()
232 if (toks > q->buffer) in tbf_dequeue()
233 toks = q->buffer; in tbf_dequeue()
277 q->tokens = q->buffer; in tbf_reset()
303 s64 buffer, mtu; in tbf_change() local
326 buffer = min_t(u64, PSCHED_TICKS2NS(qopt->buffer), ~0U); in tbf_change()
335 buffer = psched_l2t_ns(&rate, max_size); in tbf_change()
337 max_size = min_t(u64, psched_ns_t2l(&rate, buffer), ~0U); in tbf_change()
401 q->buffer = buffer; in tbf_change()
[all …]
Dsch_htb.c98 s64 buffer, cbuffer;/* token bucket depth/rate */ member
482 return cl->cmode == HTB_CAN_SEND ? -cl->buffer : 0; in htb_hiwater()
622 if (toks > cl->buffer) in htb_accnt_tokens()
623 toks = cl->buffer; in htb_accnt_tokens()
1096 opt.buffer = PSCHED_NS2TICKS(cl->buffer); in htb_dump_class()
1201 parent->tokens = parent->buffer; in htb_parent_to_leaf()
1425 cl->tokens = PSCHED_TICKS2NS(hopt->buffer); in htb_change_class()
1480 cl->buffer = PSCHED_TICKS2NS(hopt->buffer); in htb_change_class()
/net/sctp/
Dsysctl.c44 void __user *buffer, size_t *lenp,
47 void __user *buffer, size_t *lenp,
50 void __user *buffer, size_t *lenp,
53 void __user *buffer, size_t *lenp,
56 void __user *buffer, size_t *lenp,
326 void __user *buffer, size_t *lenp, in proc_sctp_do_hmac_alg() argument
346 ret = proc_dostring(&tbl, write, buffer, lenp, ppos); in proc_sctp_do_hmac_alg()
372 void __user *buffer, size_t *lenp, in proc_sctp_do_rto_min() argument
389 ret = proc_dointvec(&tbl, write, buffer, lenp, ppos); in proc_sctp_do_rto_min()
401 void __user *buffer, size_t *lenp, in proc_sctp_do_rto_max() argument
[all …]
/net/sunrpc/
Dsysctl.c63 void __user *buffer, size_t *lenp, loff_t *ppos) in proc_do_xprt() argument
73 return simple_read_from_buffer(buffer, *lenp, ppos, tmpbuf, len); in proc_do_xprt()
78 void __user *buffer, size_t *lenp, loff_t *ppos) in proc_dodebug() argument
93 if (!access_ok(buffer, left)) in proc_dodebug()
95 p = buffer; in proc_dodebug()
124 if (copy_to_user(buffer, tmpbuf, len)) in proc_dodebug()
127 if (put_user('\n', (char __user *)buffer + len)) in proc_dodebug()
Ddebugfs.c269 char *buffer = (char *)filp->private_data; in fault_disconnect_read() local
272 size = sprintf(buffer, "%u\n", rpc_inject_disconnect); in fault_disconnect_read()
273 return simple_read_from_buffer(user_buf, len, offset, buffer, size); in fault_disconnect_read()
280 char buffer[16]; in fault_disconnect_write() local
282 if (len >= sizeof(buffer)) in fault_disconnect_write()
283 len = sizeof(buffer) - 1; in fault_disconnect_write()
284 if (copy_from_user(buffer, user_buf, len)) in fault_disconnect_write()
286 buffer[len] = '\0'; in fault_disconnect_write()
287 if (kstrtouint(buffer, 10, &rpc_inject_disconnect)) in fault_disconnect_write()
/net/ipv4/
Dsysctl_net_ipv4.c74 void __user *buffer, in ipv4_local_port_range() argument
91 ret = proc_dointvec_minmax(&tmp, write, buffer, lenp, ppos); in ipv4_local_port_range()
110 void __user *buffer, size_t *lenp, loff_t *ppos) in ipv4_privileged_ports() argument
127 ret = proc_dointvec_minmax(&tmp, write, buffer, lenp, ppos); in ipv4_privileged_ports()
171 void __user *buffer, in ipv4_ping_group_range() argument
189 ret = proc_dointvec_minmax(&tmp, write, buffer, lenp, ppos); in ipv4_ping_group_range()
207 void __user *buffer, in ipv4_fwd_update_priority() argument
215 ret = proc_dointvec_minmax(table, write, buffer, lenp, ppos); in ipv4_fwd_update_priority()
224 void __user *buffer, size_t *lenp, loff_t *ppos) in proc_tcp_congestion_control() argument
237 ret = proc_dostring(&tbl, write, buffer, lenp, ppos); in proc_tcp_congestion_control()
[all …]
Dcipso_ipv4.c1184 unsigned char *buffer, in cipso_v4_gentag_rbm() argument
1203 &buffer[4], in cipso_v4_gentag_rbm()
1218 buffer[0] = CIPSO_V4_TAG_RBITMAP; in cipso_v4_gentag_rbm()
1219 buffer[1] = tag_len; in cipso_v4_gentag_rbm()
1220 buffer[3] = level; in cipso_v4_gentag_rbm()
1281 unsigned char *buffer, in cipso_v4_gentag_enum() argument
1300 &buffer[4], in cipso_v4_gentag_enum()
1309 buffer[0] = CIPSO_V4_TAG_ENUM; in cipso_v4_gentag_enum()
1310 buffer[1] = tag_len; in cipso_v4_gentag_enum()
1311 buffer[3] = level; in cipso_v4_gentag_enum()
[all …]
/net/rds/
Dconnection.c644 u64 *buffer, in rds_for_each_conn_info() argument
661 if (!visitor(conn, buffer)) in rds_for_each_conn_info()
668 rds_info_copy(iter, buffer, item_len); in rds_for_each_conn_info()
682 u64 *buffer, in rds_walk_conn_path_info() argument
710 if (!visitor(cp, buffer)) in rds_walk_conn_path_info()
718 rds_info_copy(iter, buffer, item_len); in rds_walk_conn_path_info()
727 static int rds_conn_info_visitor(struct rds_conn_path *cp, void *buffer) in rds_conn_info_visitor() argument
729 struct rds_info_connection *cinfo = buffer; in rds_conn_info_visitor()
757 static int rds6_conn_info_visitor(struct rds_conn_path *cp, void *buffer) in rds6_conn_info_visitor() argument
759 struct rds6_info_connection *cinfo6 = buffer; in rds6_conn_info_visitor()
[all …]
Dib.c291 void *buffer) in rds_ib_conn_info_visitor() argument
293 struct rds_info_rdma_connection *iinfo = buffer; in rds_ib_conn_info_visitor()
330 void *buffer) in rds6_ib_conn_info_visitor() argument
332 struct rds6_info_rdma_connection *iinfo6 = buffer; in rds6_ib_conn_info_visitor()
369 u64 buffer[(sizeof(struct rds_info_rdma_connection) + 7) / 8]; in rds_ib_ic_info() local
373 buffer, in rds_ib_ic_info()
383 u64 buffer[(sizeof(struct rds6_info_rdma_connection) + 7) / 8]; in rds6_ib_ic_info() local
387 buffer, in rds6_ib_ic_info()
Drecv.c173 } buffer; in rds_recv_incoming_exthdrs() local
176 len = sizeof(buffer); in rds_recv_incoming_exthdrs()
177 type = rds_message_next_extension(hdr, &pos, &buffer, &len); in rds_recv_incoming_exthdrs()
183 rds_rdma_unuse(rs, be32_to_cpu(buffer.rdma.h_rdma_rkey), 0); in rds_recv_incoming_exthdrs()
190 be32_to_cpu(buffer.rdma_dest.h_rdma_rkey), in rds_recv_incoming_exthdrs()
191 be32_to_cpu(buffer.rdma_dest.h_rdma_offset)); in rds_recv_incoming_exthdrs()
206 } buffer; in rds_recv_hs_exthdrs() local
210 len = sizeof(buffer); in rds_recv_hs_exthdrs()
211 type = rds_message_next_extension(hdr, &pos, &buffer, &len); in rds_recv_hs_exthdrs()
218 be16_to_cpu(buffer.rds_npaths)); in rds_recv_hs_exthdrs()
[all …]
/net/decnet/
Dsysctl_net_decnet.c137 void __user *buffer, in dn_node_address_handler() argument
152 if (copy_from_user(addr, buffer, len)) in dn_node_address_handler()
178 if (copy_to_user(buffer, addr, len)) in dn_node_address_handler()
188 void __user *buffer, in dn_def_dev_handler() argument
204 if (copy_from_user(devname, buffer, *lenp)) in dn_def_dev_handler()
241 if (copy_to_user(buffer, devname, len)) in dn_def_dev_handler()
/net/ipv4/netfilter/
Dipt_CLUSTERIP.c276 char buffer[16]; in clusterip_config_init() local
279 sprintf(buffer, "%pI4", &ip); in clusterip_config_init()
281 c->pde = proc_create_data(buffer, 0600, in clusterip_config_init()
779 char buffer[PROC_WRITELEN+1]; in clusterip_proc_write() local
785 if (copy_from_user(buffer, input, size)) in clusterip_proc_write()
787 buffer[size] = 0; in clusterip_proc_write()
789 if (*buffer == '+') { in clusterip_proc_write()
790 rc = kstrtoul(buffer+1, 10, &nodenum); in clusterip_proc_write()
795 } else if (*buffer == '-') { in clusterip_proc_write()
796 rc = kstrtoul(buffer+1, 10, &nodenum); in clusterip_proc_write()
/net/x25/
Dx25_facilities.c188 int x25_create_facilities(unsigned char *buffer, in x25_create_facilities() argument
192 unsigned char *p = buffer + 1; in x25_create_facilities()
200 buffer[0] = 0; in x25_create_facilities()
254 len = p - buffer; in x25_create_facilities()
255 buffer[0] = len - 1; in x25_create_facilities()
/net/iucv/
Diucv.c1110 u8 flags, void *buffer, in iucv_message_receive_iprmdata() argument
1127 for (array = buffer; size > 0; array++) { in iucv_message_receive_iprmdata()
1136 memcpy(buffer, rmmsg, min_t(size_t, size, 8)); in iucv_message_receive_iprmdata()
1159 u8 flags, void *buffer, size_t size, size_t *residual) in __iucv_message_receive() argument
1166 buffer, size, residual); in __iucv_message_receive()
1173 parm->db.ipbfadr1 = (u32)(addr_t) buffer; in __iucv_message_receive()
1209 u8 flags, void *buffer, size_t size, size_t *residual) in iucv_message_receive() argument
1215 buffer, size, residual); in iucv_message_receive()
1217 rc = __iucv_message_receive(path, msg, flags, buffer, size, residual); in iucv_message_receive()
1324 u8 flags, u32 srccls, void *buffer, size_t size) in __iucv_message_send() argument
[all …]
/net/sunrpc/xprtrdma/
Dsvc_rdma_recvfrom.c125 void *buffer; in svc_rdma_recv_ctxt_alloc() local
130 buffer = kmalloc(rdma->sc_max_req_size, GFP_KERNEL); in svc_rdma_recv_ctxt_alloc()
131 if (!buffer) in svc_rdma_recv_ctxt_alloc()
133 addr = ib_dma_map_single(rdma->sc_pd->device, buffer, in svc_rdma_recv_ctxt_alloc()
146 ctxt->rc_recv_buf = buffer; in svc_rdma_recv_ctxt_alloc()
151 kfree(buffer); in svc_rdma_recv_ctxt_alloc()
Dsvc_rdma_sendto.c131 void *buffer; in svc_rdma_send_ctxt_alloc() local
140 buffer = kmalloc(rdma->sc_max_req_size, GFP_KERNEL); in svc_rdma_send_ctxt_alloc()
141 if (!buffer) in svc_rdma_send_ctxt_alloc()
143 addr = ib_dma_map_single(rdma->sc_pd->device, buffer, in svc_rdma_send_ctxt_alloc()
153 ctxt->sc_xprt_buf = buffer; in svc_rdma_send_ctxt_alloc()
161 kfree(buffer); in svc_rdma_send_ctxt_alloc()
Dsvc_rdma.c83 void __user *buffer, size_t *lenp, in read_reset_stat() argument
106 if (len && copy_to_user(buffer, str_buf, len)) in read_reset_stat()
/net/phonet/
Dsysctl.c52 void __user *buffer, in proc_local_port_range() argument
65 ret = proc_dointvec_minmax(&tmp, write, buffer, lenp, ppos); in proc_local_port_range()
/net/rose/
Drose_subr.c27 static int rose_create_facilities(unsigned char *buffer, struct rose_sock *rose);
435 static int rose_create_facilities(unsigned char *buffer, struct rose_sock *rose) in rose_create_facilities() argument
437 unsigned char *p = buffer + 1; in rose_create_facilities()
524 len = p - buffer; in rose_create_facilities()
525 buffer[0] = len - 1; in rose_create_facilities()
/net/netfilter/ipvs/
Dip_vs_sync.c962 static void ip_vs_process_message_v0(struct netns_ipvs *ipvs, const char *buffer, in ip_vs_process_message_v0() argument
965 struct ip_vs_sync_mesg_v0 *m = (struct ip_vs_sync_mesg_v0 *)buffer; in ip_vs_process_message_v0()
973 p = (char *)buffer + sizeof(struct ip_vs_sync_mesg_v0); in ip_vs_process_message_v0()
977 if (p + SIMPLE_CONN_SIZE > buffer+buflen) { in ip_vs_process_message_v0()
987 if (p > buffer+buflen) { in ip_vs_process_message_v0()
1207 static void ip_vs_process_message(struct netns_ipvs *ipvs, __u8 *buffer, in ip_vs_process_message() argument
1210 struct ip_vs_sync_mesg *m2 = (struct ip_vs_sync_mesg *)buffer; in ip_vs_process_message()
1232 msg_end = buffer + sizeof(struct ip_vs_sync_mesg); in ip_vs_process_message()
1241 if (p + sizeof(s->v4) > buffer+buflen) { in ip_vs_process_message()
1249 if (msg_end > buffer+buflen) { in ip_vs_process_message()
[all …]

123