X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ian/git?p=userv-utils.git;a=blobdiff_plain;f=ipif%2Fservice.c;h=b9e40e29fcdb3a2f26ccabf02122d49ab230d388;hp=39994169ea567ea8cb53aff07d29c9741de92fed;hb=44a77f4851d3c819f9b364018a9695f332758a71;hpb=dc74c448cee786b3c29704a68552f5f0fa209fc9 diff --git a/ipif/service.c b/ipif/service.c index 3999416..b9e40e2 100644 --- a/ipif/service.c +++ b/ipif/service.c @@ -32,9 +32,9 @@ * * ,,, * - * As for slattach. Supported protocols are slip, cslip, and - * adaptive. Alternatively, set to `debug' to print debugging info - * and exit. is address of the interface to be created + * As for slattach. The only supported protocol is slip. + * Alternatively, set to `debug' to print debugging info and + * exit. is address of the interface to be created * on the local system; is the address of the * point-to-point peer. They must be actual addresses (not * hostnames). @@ -48,9 +48,9 @@ * not supported). If no additional routes are to be set up, use `-' * or supply an empty argument. * - * Each item - whether a line file such as - * /etc/userv/ipif-networks, or supplied on the service program - * command line - is one of: + * Each item - whether a line in a file such as + * /etc/userv/ipif-networks, or the single trusted argument supplied + * on the service program command line - is one of: * * / * ./ @@ -863,7 +863,7 @@ static void copydata(void) { r= read(0, input_buf + input_waiting, want); if (r>0) { input_waiting += r; - assert(input_waiting < sizeof(input_buf)); + assert(input_waiting <= sizeof(input_buf)); more_rx_data(input_buf, rx_packet_buf); } else if (r==0) { terminate(0);