Lines Matching refs:len
39 unsigned len) in nc_wait_arp_handler() argument
45 unsigned src, unsigned len) in nc_handler() argument
138 unsigned src_port, unsigned len) in nc_input_packet() argument
142 if (dest_port != nc_in_port || !len) in nc_input_packet()
148 debug_cond(DEBUG_DEV_PKT, "input: \"%*.*s\"\n", len, len, pkt); in nc_input_packet()
152 if (len > sizeof(input_buffer) - input_size) in nc_input_packet()
153 len = sizeof(input_buffer) - input_size; in nc_input_packet()
159 chunk = len; in nc_input_packet()
160 if (end + len > sizeof(input_buffer)) { in nc_input_packet()
162 memcpy(input_buffer, pkt + chunk, len - chunk); in nc_input_packet()
166 input_size += len; in nc_input_packet()
171 static void nc_send_packet(const char *buf, int len) in nc_send_packet() argument
183 debug_cond(DEBUG_DEV_PKT, "output: \"%*.*s\"\n", len, len, buf); in nc_send_packet()
193 output_packet_len = len; in nc_send_packet()
213 memcpy(pkt, buf, len); in nc_send_packet()
216 net_send_udp_packet(ether, ip, nc_out_port, nc_in_port, len); in nc_send_packet()
259 int len; in nc_stdio_puts() local
265 len = strlen(s); in nc_stdio_puts()
266 while (len) { in nc_stdio_puts()
267 int send_len = min(len, (int)sizeof(input_buffer)); in nc_stdio_puts()
269 len -= send_len; in nc_stdio_puts()