Searched refs:buffer (Results 1 - 25 of 61) sorted by relevance

123

/net/netfilter/
H A Dnf_nat_ftp.c30 char *buffer, size_t buflen,
36 return snprintf(buffer, buflen, "%u,%u,%u,%u,%u,%u",
45 return snprintf(buffer, buflen, "|1|%pI4|%u|",
48 return snprintf(buffer, buflen, "|2|%pI6|%u|",
51 return snprintf(buffer, buflen, "|||%u|", port);
71 char buffer[sizeof("|1||65535|") + INET6_ADDRSTRLEN]; local
104 buflen = nf_nat_ftp_fmt_cmd(ct, type, buffer, sizeof(buffer),
112 matchlen, buffer, buflen))
29 nf_nat_ftp_fmt_cmd(struct nf_conn *ct, enum nf_ct_ftp_type type, char *buffer, size_t buflen, union nf_inet_addr *addr, u16 port) argument
H A Dnf_nat_amanda.c34 char buffer[sizeof("65535")]; local
65 sprintf(buffer, "%u", port);
68 buffer, strlen(buffer));
H A Dnf_nat_sip.c35 const char *buffer, unsigned int buflen)
49 buffer, buflen, false))
57 buffer, buflen))
67 static int sip_sprintf_addr(const struct nf_conn *ct, char *buffer, argument
71 return sprintf(buffer, "%pI4", &addr->ip);
74 return sprintf(buffer, "[%pI6c]", &addr->ip6);
76 return sprintf(buffer, "%pI6c", &addr->ip6);
80 static int sip_sprintf_addr_port(const struct nf_conn *ct, char *buffer, argument
84 return sprintf(buffer, "%pI4:%u", &addr->ip, port);
86 return sprintf(buffer, "[
31 mangle_packet(struct sk_buff *skb, unsigned int protoff, unsigned int dataoff, const char **dptr, unsigned int *datalen, unsigned int matchoff, unsigned int matchlen, const char *buffer, unsigned int buflen) argument
99 char buffer[INET6_ADDRSTRLEN + sizeof("[]:nnnnn")]; local
180 char buffer[INET6_ADDRSTRLEN + sizeof("[]:nnnnn")]; local
354 char buffer[INET6_ADDRSTRLEN + sizeof("[]:nnnnn")]; local
421 char buffer[sizeof("65536")]; local
441 mangle_sdp_packet(struct sk_buff *skb, unsigned int protoff, unsigned int dataoff, const char **dptr, unsigned int *datalen, unsigned int sdpoff, enum sdp_header_types type, enum sdp_header_types term, char *buffer, int buflen) argument
470 char buffer[INET6_ADDRSTRLEN]; local
488 char buffer[sizeof("nnnnn")]; local
507 char buffer[INET6_ADDRSTRLEN]; local
[all...]
H A Dnf_nat_irc.c36 char buffer[sizeof("4294967296 65635")]; local
65 protoff, matchoff, matchlen, buffer,
66 strlen(buffer));
/net/sunrpc/
H A Dsysctl.c62 void __user *buffer, size_t *lenp, loff_t *ppos)
72 return simple_read_from_buffer(buffer, *lenp, ppos, tmpbuf, len);
77 void __user *buffer, size_t *lenp, loff_t *ppos)
92 if (!access_ok(VERIFY_READ, buffer, left))
94 p = buffer;
117 if (!access_ok(VERIFY_WRITE, buffer, left))
122 if (__copy_to_user(buffer, tmpbuf, len))
125 if (put_user('\n', (char __user *)buffer + len))
61 proc_do_xprt(ctl_table *table, int write, void __user *buffer, size_t *lenp, loff_t *ppos) argument
76 proc_dodebug(ctl_table *table, int write, void __user *buffer, size_t *lenp, loff_t *ppos) argument
/net/irda/
H A Ddiscovery.c159 discinfo_t * buffer = NULL; local
179 /* Create buffer as needed.
184 if(buffer == NULL) {
185 /* Create the client specific buffer */
187 buffer = kmalloc(n * sizeof(struct irda_device_info), GFP_ATOMIC);
188 if (buffer == NULL) {
196 memcpy(&(buffer[i]), &(curr->data),
212 if(buffer == NULL)
216 irlmp_discovery_expiry(buffer, i);
218 /* Free up our buffer */
272 discinfo_t * buffer = NULL; local
[all...]
H A Dirsysctl.c77 void __user *buffer, size_t *lenp, loff_t *ppos)
81 ret = proc_dostring(table, write, buffer, lenp, ppos);
94 void __user *buffer, size_t *lenp, loff_t *ppos)
98 ret = proc_dointvec(table, write, buffer, lenp, ppos);
76 do_devname(ctl_table *table, int write, void __user *buffer, size_t *lenp, loff_t *ppos) argument
93 do_discovery(ctl_table *table, int write, void __user *buffer, size_t *lenp, loff_t *ppos) argument
/net/ceph/
H A DMakefile6 libceph-y := ceph_common.o messenger.o msgpool.o buffer.o pagelist.o \
H A Dcrypto.h5 #include <linux/ceph/buffer.h>
H A Dbuffer.c7 #include <linux/ceph/buffer.h>
/net/phonet/
H A Dsysctl.c65 void __user *buffer,
78 ret = proc_dointvec_minmax(&tmp, write, buffer, lenp, ppos);
64 proc_local_port_range(ctl_table *table, int write, void __user *buffer, size_t *lenp, loff_t *ppos) argument
/net/sched/
H A Dsch_tbf.c104 s64 buffer; /* Token bucket depth/rate: MUST BE >= MTU/B */ member in struct:tbf_sched_data
164 toks = min_t(s64, now - q->t_c, q->buffer);
173 if (toks > q->buffer)
174 toks = q->buffer;
217 q->tokens = q->buffer;
260 if (rtab->data[n] > qopt->buffer)
297 q->buffer = PSCHED_TICKS2NS(qopt->buffer);
298 q->tokens = q->buffer;
359 opt.buffer
[all...]
/net/decnet/
H A Dsysctl_net_decnet.c13 * Steve Whitehouse - Memory buffer settings, like the tcp ones
136 void __user *buffer,
151 if (copy_from_user(addr, buffer, len))
177 if (copy_to_user(buffer, addr, len))
187 void __user *buffer,
203 if (copy_from_user(devname, buffer, *lenp))
240 if (copy_to_user(buffer, devname, len))
135 dn_node_address_handler(ctl_table *table, int write, void __user *buffer, size_t *lenp, loff_t *ppos) argument
186 dn_def_dev_handler(ctl_table *table, int write, void __user *buffer, size_t *lenp, loff_t *ppos) argument
/net/x25/
H A Dx25_facilities.c187 int x25_create_facilities(unsigned char *buffer, argument
191 unsigned char *p = buffer + 1;
199 buffer[0] = 0;
253 len = p - buffer;
254 buffer[0] = len - 1;
/net/rose/
H A Drose_subr.c30 static int rose_create_facilities(unsigned char *buffer, struct rose_sock *rose);
108 char buffer[100]; local
116 faclen = rose_create_facilities(buffer, rose);
149 memcpy(dptr, buffer, faclen);
435 static int rose_create_facilities(unsigned char *buffer, struct rose_sock *rose) argument
437 unsigned char *p = buffer + 1;
524 len = p - buffer;
525 buffer[0] = len - 1;
/net/ipv4/
H A Dsysctl_net_ipv4.c53 void __user *buffer,
67 ret = proc_dointvec_minmax(&tmp, write, buffer, lenp, ppos);
104 void __user *buffer,
122 ret = proc_dointvec_minmax(&tmp, write, buffer, lenp, ppos);
140 void __user *buffer,
144 int ret = proc_dointvec(ctl, write, buffer, lenp, ppos);
154 void __user *buffer, size_t *lenp, loff_t *ppos)
165 ret = proc_dostring(&tbl, write, buffer, lenp, ppos);
173 void __user *buffer, size_t *lenp,
183 ret = proc_dostring(&tbl, write, buffer, len
52 ipv4_local_port_range(ctl_table *table, int write, void __user *buffer, size_t *lenp, loff_t *ppos) argument
103 ipv4_ping_group_range(ctl_table *table, int write, void __user *buffer, size_t *lenp, loff_t *ppos) argument
139 proc_tcp_default_init_rwnd(ctl_table *ctl, int write, void __user *buffer, size_t *lenp, loff_t *ppos) argument
153 proc_tcp_congestion_control(ctl_table *ctl, int write, void __user *buffer, size_t *lenp, loff_t *ppos) argument
171 proc_tcp_available_congestion_control(ctl_table *ctl, int write, void __user *buffer, size_t *lenp, loff_t *ppos) argument
188 proc_allowed_congestion_control(ctl_table *ctl, int write, void __user *buffer, size_t *lenp, loff_t *ppos) argument
208 ipv4_tcp_mem(ctl_table *ctl, int write, void __user *buffer, size_t *lenp, loff_t *ppos) argument
251 proc_tcp_fastopen_key(ctl_table *ctl, int write, void __user *buffer, size_t *lenp, loff_t *ppos) argument
[all...]
H A Dcipso_ipv4.c297 * @key: the buffer to check
298 * @key_len: buffer length in bytes
1240 * @buf: the CIPSO option buffer
1243 * Write a CIPSO header into the beginning of @buffer.
1259 * @buffer: the option buffer
1260 * @buffer_len: length of buffer in bytes
1264 * actual buffer length may be larger than the indicated size due to
1271 unsigned char *buffer,
1290 &buffer[
1269 cipso_v4_gentag_rbm(const struct cipso_v4_doi *doi_def, const struct netlbl_lsm_secattr *secattr, unsigned char *buffer, u32 buffer_len) argument
1371 cipso_v4_gentag_enum(const struct cipso_v4_doi *doi_def, const struct netlbl_lsm_secattr *secattr, unsigned char *buffer, u32 buffer_len) argument
1467 cipso_v4_gentag_rng(const struct cipso_v4_doi *doi_def, const struct netlbl_lsm_secattr *secattr, unsigned char *buffer, u32 buffer_len) argument
1562 cipso_v4_gentag_loc(const struct cipso_v4_doi *doi_def, const struct netlbl_lsm_secattr *secattr, unsigned char *buffer, u32 buffer_len) argument
[all...]
/net/packet/
H A Dinternal.h52 char *buffer; member in struct:pgv
/net/ipv4/netfilter/
H A Dipt_CLUSTERIP.c178 char buffer[16]; local
181 sprintf(buffer, "%pI4", &ip);
182 c->pde = proc_create_data(buffer, S_IWUSR|S_IRUSR,
662 char buffer[PROC_WRITELEN+1]; local
668 if (copy_from_user(buffer, input, size))
670 buffer[size] = 0;
672 if (*buffer == '+') {
673 rc = kstrtoul(buffer+1, 10, &nodenum);
678 } else if (*buffer == '-') {
679 rc = kstrtoul(buffer
[all...]
/net/rds/
H A Drecv.c116 } buffer; local
119 len = sizeof(buffer);
120 type = rds_message_next_extension(hdr, &pos, &buffer, &len);
126 rds_rdma_unuse(rs, be32_to_cpu(buffer.rdma.h_rdma_rkey), 0);
133 be32_to_cpu(buffer.rdma_dest.h_rdma_rkey),
134 be32_to_cpu(buffer.rdma_dest.h_rdma_offset));
308 * in the user provided cmsg buffer. We don't try to copy more, to avoid
309 * losing notifications - except when the buffer is so small that it wouldn't
H A Dconnection.c438 uint64_t buffer[(item_len + 7) / 8]; local
453 if (!visitor(conn, buffer))
456 /* We copy as much as we can fit in the buffer,
458 * can resize the buffer. */
460 rds_info_copy(iter, buffer, item_len);
471 void *buffer)
473 struct rds_info_connection *cinfo = buffer;
470 rds_conn_info_visitor(struct rds_connection *conn, void *buffer) argument
/net/sunrpc/xprtrdma/
H A Dsvc_rdma.c88 void __user *buffer, size_t *lenp,
113 if (len && copy_to_user(buffer, str_buf, len))
87 read_reset_stat(ctl_table *table, int write, void __user *buffer, size_t *lenp, loff_t *ppos) argument
/net/sctp/
H A Dsysctl.c67 void __user *buffer, size_t *lenp,
305 void __user *buffer, size_t *lenp,
324 ret = proc_dostring(&tbl, write, buffer, lenp, ppos);
303 proc_sctp_do_hmac_alg(ctl_table *ctl, int write, void __user *buffer, size_t *lenp, loff_t *ppos) argument
/net/iucv/
H A Diucv.c255 * Data in buffer iucv structure. Used by iucv_message_receive,
461 * Declare a interrupt buffer on this cpu.
472 /* Declare interrupt buffer. */
496 pr_warning("Defining an interrupt buffer on CPU %i"
501 /* Set indication that an iucv buffer exists for this cpu. */
516 * Retrieve interrupt buffer on this cpu.
529 /* Retrieve interrupt buffer. */
533 /* Clear indication that an iucv buffer exists for this cpu. */
548 /* Enable all cpus with a declared buffer. */
577 * table, declares an iucv interrupt buffer an
1110 iucv_message_receive_iprmdata(struct iucv_path *path, struct iucv_message *msg, u8 flags, void *buffer, size_t size, size_t *residual) argument
1160 __iucv_message_receive(struct iucv_path *path, struct iucv_message *msg, u8 flags, void *buffer, size_t size, size_t *residual) argument
1210 iucv_message_receive(struct iucv_path *path, struct iucv_message *msg, u8 flags, void *buffer, size_t size, size_t *residual) argument
1325 __iucv_message_send(struct iucv_path *path, struct iucv_message *msg, u8 flags, u32 srccls, void *buffer, size_t size) argument
1379 iucv_message_send(struct iucv_path *path, struct iucv_message *msg, u8 flags, u32 srccls, void *buffer, size_t size) argument
1410 iucv_message_send2way(struct iucv_path *path, struct iucv_message *msg, u8 flags, u32 srccls, void *buffer, size_t size, void *answer, size_t asize, size_t *residual) argument
[all...]
/net/netfilter/ipvs/
H A Dip_vs_sync.c320 * Create a new sync buffer for Version 1 proto.
375 * Get the current sync buffer if it has been created for more
402 * Create a new sync buffer for Version 0 proto.
545 /* Send buffer if it is for v1 */
674 /* Send buffer if it is for v0 */
916 static void ip_vs_process_message_v0(struct net *net, const char *buffer, argument
919 struct ip_vs_sync_mesg_v0 *m = (struct ip_vs_sync_mesg_v0 *)buffer;
927 p = (char *)buffer + sizeof(struct ip_vs_sync_mesg_v0);
931 if (p + SIMPLE_CONN_SIZE > buffer+buflen) {
941 if (p > buffer
1166 ip_vs_process_message(struct net *net, __u8 *buffer, const size_t buflen) argument
1523 ip_vs_send_async(struct socket *sock, const char *buffer, const size_t length) argument
1555 ip_vs_receive(struct socket *sock, char *buffer, const size_t buflen) argument
[all...]

Completed in 316 milliseconds

123