Lines Matching refs:inbufptr
177 static int inbufptr = 0; in serial_to_tun() local
191 if(inbufptr >= sizeof(uip.inbuf)) { in serial_to_tun()
193 fprintf(stderr, "*** dropping large %d byte packet\n",inbufptr); in serial_to_tun()
194 inbufptr = 0; in serial_to_tun()
214 if(inbufptr > 0) { in serial_to_tun()
267 fwrite(uip.inbuf + 1, inbufptr - 1, 1, stdout); in serial_to_tun()
268 } else if(is_sensible_string(uip.inbuf, inbufptr)) { in serial_to_tun()
271 fwrite(uip.inbuf, inbufptr, 1, stdout); in serial_to_tun()
277 tundev, inbufptr); in serial_to_tun()
285 for(i = 0; i < inbufptr; i++) in serial_to_tun()
296 for(i = 0; i < inbufptr; i++) { in serial_to_tun()
307 size_t total_size = inbufptr; in serial_to_tun()
329 inbufptr = 0; in serial_to_tun()
351 uip.inbuf[inbufptr++] = c; in serial_to_tun()
357 if(is_sensible_string(uip.inbuf, inbufptr)) { in serial_to_tun()
359 fwrite(uip.inbuf, inbufptr, 1, stdout); in serial_to_tun()