Lines Matching refs:i

155   int i;  in is_sensible_string()  local
156 for(i = 1; i < len; i++) { in is_sensible_string()
157 if(s[i] == 0 || s[i] == '\r' || s[i] == '\n' || s[i] == '\t') { in is_sensible_string()
159 } else if(s[i] < ' ' || '~' < s[i]) { in is_sensible_string()
178 int ret,i; in serial_to_tun() local
219 int i, pos; in serial_to_tun() local
220 for(i = 0, pos = 0; i < 16; i++) { in serial_to_tun()
221 macs[pos++] = uip.inbuf[2 + i]; in serial_to_tun()
222 if((i & 1) == 1 && i < 14) { in serial_to_tun()
243 int i; in serial_to_tun() local
259 for(i = 0; i < 8; i++) { in serial_to_tun()
261 slip_send_char(slipfd, addr.s6_addr[i]); in serial_to_tun()
282 for(i = 0; i < sizeof(uip.vnet_header); i++) in serial_to_tun()
283 printf(" %02x",uip.vnet_header[i]); in serial_to_tun()
285 for(i = 0; i < inbufptr; i++) in serial_to_tun()
286 printf(" %02x",uip.inbuf[i]); in serial_to_tun()
290 for(i = 0; i < sizeof(uip.vnet_header); i++) { in serial_to_tun()
291 printf("%02x", uip.vnet_header[i]); in serial_to_tun()
292 if((i & 3) == 3) printf(" "); in serial_to_tun()
293 if((i & 15) == 15) printf("\n%s: ", tundev); in serial_to_tun()
296 for(i = 0; i < inbufptr; i++) { in serial_to_tun()
297 printf("%02x", uip.inbuf[i]); in serial_to_tun()
298 if((i & 3) == 3) printf(" "); in serial_to_tun()
299 if((i & 15) == 15) printf("\n%s: ", tundev); in serial_to_tun()
387 int status, i, fd = -1; in get_slipfd() local
394 for (i = start_i; i > 0; --i) { in get_slipfd()
395 if (i != start_i) { in get_slipfd()
458 int i; in get_slipfd() local
459 for(i = 0; i < 3; i++) { in get_slipfd()
460 siodev = siodevs[i]; in get_slipfd()
560 int i; in write_to_serial() local
568 for(i = 0; i < len; i++) printf(" %02x", p[i]); in write_to_serial()
571 for(i = 0; i < len; i++) { in write_to_serial()
572 printf("%02x", p[i]); in write_to_serial()
573 if((i & 3) == 3) printf(" "); in write_to_serial()
574 if((i & 15) == 15) printf("\n%s: ", tundev); in write_to_serial()
587 i = VNET_HDR_LENGTH; in write_to_serial()
589 i = 0; in write_to_serial()
592 for(; i < len; i++) { in write_to_serial()
593 switch(p[i]) { in write_to_serial()
603 slip_send(outfd, p[i]); in write_to_serial()
639 int i; in stty_telos() local
669 i = TIOCM_DTR; in stty_telos()
688 int i; in devopen_readlink() local
689 i = readlink(dev, buf, buf_size); in devopen_readlink()
690 if (i < 0 || i >= buf_size) { in devopen_readlink()
693 buf[i] = '\0'; in devopen_readlink()
856 uint16_t digit,ai,a[8],cc,scc,i; in ifconf() local
879 for(i=0;i<cc;i++) { in ifconf()
880 if ((8-i-cc) <= scc) { in ifconf()
881 a[7-i] = 0; in ifconf()
883 a[7-i] = a[8-i-cc]; in ifconf()
884 a[8-i-cc]=0; in ifconf()