Home
last modified time | relevance | path

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

12

/net/ipv4/netfilter/
Dnf_nat_ftp.c39 char buffer[sizeof("nnn,nnn,nnn,nnn,nnn,nnn")]; in mangle_rfc959_packet() local
41 sprintf(buffer, "%u,%u,%u,%u,%u,%u", in mangle_rfc959_packet()
47 matchlen, buffer, strlen(buffer)); in mangle_rfc959_packet()
60 char buffer[sizeof("|1|255.255.255.255|65535|")]; in mangle_eprt_packet() local
62 sprintf(buffer, "|1|%u.%u.%u.%u|%u|", NIPQUAD(newip), port); in mangle_eprt_packet()
67 matchlen, buffer, strlen(buffer)); in mangle_eprt_packet()
80 char buffer[sizeof("|||65535|")]; in mangle_epsv_packet() local
82 sprintf(buffer, "|||%u|", port); in mangle_epsv_packet()
87 matchlen, buffer, strlen(buffer)); in mangle_epsv_packet()
Dnf_nat_sip.c35 const char *buffer, unsigned int buflen) in mangle_packet() argument
41 buffer, buflen)) in mangle_packet()
58 char buffer[sizeof("nnn.nnn.nnn.nnn:nnnnn")]; in map_addr() local
77 buflen = sprintf(buffer, "%pI4:%u", &newaddr, ntohs(newport)); in map_addr()
80 buffer, buflen); in map_addr()
127 char buffer[sizeof("nnn.nnn.nnn.nnn:nnnnn")]; in ip_nat_sip() local
154 buflen = sprintf(buffer, "%pI4", in ip_nat_sip()
157 buffer, buflen)) in ip_nat_sip()
168 buflen = sprintf(buffer, "%pI4", in ip_nat_sip()
171 buffer, buflen)) in ip_nat_sip()
[all …]
Dnf_nat_irc.c36 char buffer[sizeof("4294967296 65635")]; in help() local
57 sprintf(buffer, "%u %u", ip, port); in help()
59 buffer, &ip, port); in help()
62 matchoff, matchlen, buffer, in help()
63 strlen(buffer)); in help()
Dnf_nat_amanda.c33 char buffer[sizeof("65535")]; in help() local
55 sprintf(buffer, "%u", port); in help()
58 buffer, strlen(buffer)); in help()
Dipt_CLUSTERIP.c168 char buffer[16]; in clusterip_config_init() local
171 sprintf(buffer, "%pI4", &ip); in clusterip_config_init()
172 c->pde = proc_create_data(buffer, S_IWUSR|S_IRUSR, in clusterip_config_init()
664 char buffer[PROC_WRITELEN+1]; in clusterip_proc_write() local
669 if (copy_from_user(buffer, input, PROC_WRITELEN)) in clusterip_proc_write()
672 if (*buffer == '+') { in clusterip_proc_write()
673 nodenum = simple_strtoul(buffer+1, NULL, 10); in clusterip_proc_write()
676 } else if (*buffer == '-') { in clusterip_proc_write()
677 nodenum = simple_strtoul(buffer+1, NULL,10); in clusterip_proc_write()
/net/irda/
Ddiscovery.c157 discinfo_t * buffer = NULL; in irlmp_expire_discoveries() local
182 if(buffer == NULL) { in irlmp_expire_discoveries()
185 buffer = kmalloc(n * sizeof(struct irda_device_info), GFP_ATOMIC); in irlmp_expire_discoveries()
186 if (buffer == NULL) { in irlmp_expire_discoveries()
194 memcpy(&(buffer[i]), &(curr->data), in irlmp_expire_discoveries()
210 if(buffer == NULL) in irlmp_expire_discoveries()
214 irlmp_discovery_expiry(buffer, i); in irlmp_expire_discoveries()
217 kfree(buffer); in irlmp_expire_discoveries()
270 discinfo_t * buffer = NULL; in irlmp_copy_discoveries() local
294 if(buffer == NULL) { in irlmp_copy_discoveries()
[all …]
Dirsysctl.c77 void __user *buffer, size_t *lenp, loff_t *ppos) in do_devname() argument
81 ret = proc_dostring(table, write, filp, buffer, lenp, ppos); in do_devname()
94 void __user *buffer, size_t *lenp, loff_t *ppos) in do_discovery() argument
98 ret = proc_dointvec(table, write, filp, buffer, lenp, ppos); in do_discovery()
Dirda_device.c306 void irda_setup_dma(int channel, dma_addr_t buffer, int count, int mode) in irda_setup_dma() argument
315 set_dma_addr(channel, buffer); in irda_setup_dma()
/net/sunrpc/
Dsysctl.c60 void __user *buffer, size_t *lenp, loff_t *ppos) in proc_do_xprt() argument
70 return simple_read_from_buffer(buffer, *lenp, ppos, tmpbuf, len); in proc_do_xprt()
75 void __user *buffer, size_t *lenp, loff_t *ppos) in proc_dodebug() argument
90 if (!access_ok(VERIFY_READ, buffer, left)) in proc_dodebug()
92 p = buffer; in proc_dodebug()
115 if (!access_ok(VERIFY_WRITE, buffer, left)) in proc_dodebug()
120 if (__copy_to_user(buffer, tmpbuf, len)) in proc_dodebug()
123 if (put_user('\n', (char __user *)buffer + len)) in proc_dodebug()
Dsvcsock.c167 } buffer; in svc_sendto() local
168 struct cmsghdr *cmh = &buffer.hdr; in svc_sendto()
185 .msg_controllen = sizeof(buffer), in svc_sendto()
428 } buffer; in svc_udp_recvfrom() local
429 struct cmsghdr *cmh = &buffer.hdr; in svc_udp_recvfrom()
434 .msg_controllen = sizeof(buffer), in svc_udp_recvfrom()
/net/sched/
Dsch_tbf.c104 u32 buffer; /* Token bucket depth/rate: MUST BE >= MTU/B */ member
168 toks = psched_tdiff_bounded(now, q->t_c, q->buffer); in tbf_dequeue()
177 if (toks > (long)q->buffer) in tbf_dequeue()
178 toks = q->buffer; in tbf_dequeue()
220 q->tokens = q->buffer; in tbf_reset()
264 if (rtab->data[n] > qopt->buffer) break; in tbf_change()
294 q->buffer = qopt->buffer; in tbf_change()
295 q->tokens = q->buffer; in tbf_change()
360 opt.buffer = q->buffer; in tbf_dump()
Dsch_htb.c122 long buffer, cbuffer; /* token bucket depth/rate */ member
443 return cl->cmode == HTB_CAN_SEND ? -cl->buffer : 0; in htb_hiwater()
584 if (toks > cl->buffer) in htb_accnt_tokens()
585 toks = cl->buffer; in htb_accnt_tokens()
1063 opt.buffer = cl->buffer; in htb_dump_class()
1171 parent->tokens = parent->buffer; in htb_parent_to_leaf()
1390 cl->tokens = hopt->buffer; in htb_change_class()
1433 cl->buffer = hopt->buffer; in htb_change_class()
/net/rose/
Drose_subr.c30 static int rose_create_facilities(unsigned char *buffer, struct rose_sock *rose);
108 char buffer[100]; in rose_write_internal() local
116 faclen = rose_create_facilities(buffer, rose); in rose_write_internal()
149 memcpy(dptr, buffer, faclen); in rose_write_internal()
398 static int rose_create_facilities(unsigned char *buffer, struct rose_sock *rose) in rose_create_facilities() argument
400 unsigned char *p = buffer + 1; in rose_create_facilities()
487 len = p - buffer; in rose_create_facilities()
488 buffer[0] = len - 1; in rose_create_facilities()
/net/ipv4/
Dcipso_ipv4.c1272 unsigned char *buffer, in cipso_v4_gentag_rbm() argument
1291 &buffer[4], in cipso_v4_gentag_rbm()
1306 buffer[0] = CIPSO_V4_TAG_RBITMAP; in cipso_v4_gentag_rbm()
1307 buffer[1] = tag_len; in cipso_v4_gentag_rbm()
1308 buffer[3] = level; in cipso_v4_gentag_rbm()
1374 unsigned char *buffer, in cipso_v4_gentag_enum() argument
1393 &buffer[4], in cipso_v4_gentag_enum()
1402 buffer[0] = CIPSO_V4_TAG_ENUM; in cipso_v4_gentag_enum()
1403 buffer[1] = tag_len; in cipso_v4_gentag_enum()
1404 buffer[3] = level; in cipso_v4_gentag_enum()
[all …]
Dsysctl_net_ipv4.c40 void __user *buffer, in ipv4_local_port_range() argument
54 ret = proc_dointvec_minmax(&tmp, write, filp, buffer, lenp, ppos); in ipv4_local_port_range()
95 void __user *buffer, size_t *lenp, loff_t *ppos) in proc_tcp_congestion_control() argument
106 ret = proc_dostring(&tbl, write, filp, buffer, lenp, ppos); in proc_tcp_congestion_control()
133 void __user *buffer, size_t *lenp, in proc_tcp_available_congestion_control() argument
143 ret = proc_dostring(&tbl, write, filp, buffer, lenp, ppos); in proc_tcp_available_congestion_control()
150 void __user *buffer, size_t *lenp, in proc_allowed_congestion_control() argument
161 ret = proc_dostring(&tbl, write, filp, buffer, lenp, ppos); in proc_allowed_congestion_control()
Ddevinet.c1265 struct file *filp, void __user *buffer, in devinet_conf_proc() argument
1268 int ret = proc_dointvec(ctl, write, filp, buffer, lenp, ppos); in devinet_conf_proc()
1337 struct file *filp, void __user *buffer, in devinet_sysctl_forward() argument
1342 int ret = proc_dointvec(ctl, write, filp, buffer, lenp, ppos); in devinet_sysctl_forward()
1366 struct file *filp, void __user *buffer, in ipv4_doint_and_flush() argument
1371 int ret = proc_dointvec(ctl, write, filp, buffer, lenp, ppos); in ipv4_doint_and_flush()
/net/x25/
Dx25_facilities.c161 int x25_create_facilities(unsigned char *buffer, in x25_create_facilities() argument
165 unsigned char *p = buffer + 1; in x25_create_facilities()
173 buffer[0] = 0; in x25_create_facilities()
227 len = p - buffer; in x25_create_facilities()
228 buffer[0] = len - 1; in x25_create_facilities()
/net/decnet/
Dsysctl_net_decnet.c169 void __user *buffer, in dn_node_address_handler() argument
184 if (copy_from_user(addr, buffer, len)) in dn_node_address_handler()
210 if (copy_to_user(buffer, addr, len)) in dn_node_address_handler()
280 void __user *buffer, in dn_def_dev_handler() argument
296 if (copy_from_user(devname, buffer, *lenp)) in dn_def_dev_handler()
333 if (copy_to_user(buffer, devname, len)) in dn_def_dev_handler()
/net/iucv/
Diucv.c979 u8 flags, void *buffer, in iucv_message_receive_iprmdata() argument
996 for (array = buffer; size > 0; array++) { in iucv_message_receive_iprmdata()
1005 memcpy(buffer, rmmsg, min_t(size_t, size, 8)); in iucv_message_receive_iprmdata()
1028 u8 flags, void *buffer, size_t size, size_t *residual) in __iucv_message_receive() argument
1035 buffer, size, residual); in __iucv_message_receive()
1038 parm->db.ipbfadr1 = (u32)(addr_t) buffer; in __iucv_message_receive()
1073 u8 flags, void *buffer, size_t size, size_t *residual) in iucv_message_receive() argument
1079 buffer, size, residual); in iucv_message_receive()
1081 rc = __iucv_message_receive(path, msg, flags, buffer, size, residual); in iucv_message_receive()
1178 u8 flags, u32 srccls, void *buffer, size_t size) in __iucv_message_send() argument
[all …]
/net/netfilter/ipvs/
Dip_vs_sync.c293 static void ip_vs_process_message(const char *buffer, const size_t buflen) in ip_vs_process_message() argument
295 struct ip_vs_sync_mesg *m = (struct ip_vs_sync_mesg *)buffer; in ip_vs_process_message()
324 p = (char *)buffer + sizeof(struct ip_vs_sync_mesg); in ip_vs_process_message()
328 if (p + SIMPLE_CONN_SIZE > buffer+buflen) { in ip_vs_process_message()
338 if (p > buffer+buflen) { in ip_vs_process_message()
682 ip_vs_send_async(struct socket *sock, const char *buffer, const size_t length) in ip_vs_send_async() argument
689 iov.iov_base = (void *)buffer; in ip_vs_send_async()
713 ip_vs_receive(struct socket *sock, char *buffer, const size_t buflen) in ip_vs_receive() argument
722 iov.iov_base = buffer; in ip_vs_receive()
/net/phonet/
Dsysctl.c60 void __user *buffer, in proc_local_port_range() argument
73 ret = proc_dointvec_minmax(&tmp, write, filp, buffer, lenp, ppos); in proc_local_port_range()
/net/tipc/
DKconfig95 int "Size of log buffer"
99 Size (in bytes) of TIPC's internal log buffer, which records the
103 There is no need to enable the log buffer unless the node will be
/net/sunrpc/xprtrdma/
Dsvc_rdma.c83 struct file *filp, void __user *buffer, size_t *lenp, in read_reset_stat() argument
108 if (len && copy_to_user(buffer, str_buf, len)) in read_reset_stat()
Dtransport.c619 xprt_rdma_free(void *buffer) in xprt_rdma_free() argument
626 if (buffer == NULL) in xprt_rdma_free()
629 req = container_of(buffer, struct rpcrdma_req, rl_xdr_buf[0]); in xprt_rdma_free()
/net/atm/
Dresources.c220 if (get_user(cbuf, &ciobuf->buffer)) in atm_dev_ioctl()
227 if (get_user(buf, &iobuf->buffer)) in atm_dev_ioctl()

12