static const struct mechanism *mechs[MAXMECHS];
static struct mechdata *md_in[MAXMECHS], *md_out[MAXMECHS];
-static size_t maxprefix, maxsuffix;
+static int maxprefix, maxsuffix;
static struct buffer buf_in, buf_out;
static unsigned char *accum_buf;
static unsigned long npackets, nbytes;
struct sockaddr_in this_saddr;
- int r, i, different, this_saddrlen;
+ size_t this_saddrlen;
+ int r, i, different;
const char *emsg;
buf_in.start= buf_in.base+1;
if (keepalive) {
tnow= now();
- if (tnow >= nextsendka && public_remote_specd) sendpacket("\300",1);
+ if (tnow >= nextsendka && public_remote_specd)
+ sendpacket((unsigned char*)"\300",1);
polltimeout= (nextsendka - tnow)*1000;
} else {
polltimeout= -1;
*
* <local-addr>,<peer-addr>,<mtu>,<proto>
*
- * As for slattach. Supported protocols are slip, cslip, and
- * adaptive. Alternatively, set to `debug' to print debugging info
- * and exit. <local-addr> 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. <local-addr> is address of the interface to be created
* on the local system; <peer-addr> is the address of the
* point-to-point peer. They must be actual addresses (not
* hostnames).
* not supported). If no additional routes are to be set up, use `-'
* or supply an empty argument.
*
- * Each <config> item - whether a line file such as
- * /etc/userv/ipif-networks, or supplied on the service program
- * command line - is one of:
+ * Each <config> 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:
*
* /<config-file-name>
* ./<config-file-name>