minor fix to return E_USAGE on -V instead of exit(0);
[oss-qm-packages.git] / lib / slip.c
blob3f9d0d0fe053e931f3fa518f392c72dc15eeb4a7
1 /*
2 * lib/slip.c This file contains the SLIP HW-type support.
4 * Version: $Id: slip.c,v 1.4 1999/09/27 11:00:49 philip Exp $
6 * Author: Fred N. van Kempen, <waltje@uwalt.nl.mugnet.org>
7 * Copyright 1993 MicroWalt Corporation
9 * Modified by Alan Cox, May 94 to cover NET-3
11 * This program is free software; you can redistribute it
12 * and/or modify it under the terms of the GNU General
13 * Public License as published by the Free Software
14 * Foundation; either version 2 of the License, or (at
15 * your option) any later version.
17 #include "config.h"
19 #if HAVE_HWSLIP
21 #include <sys/types.h>
22 #include <sys/ioctl.h>
23 #include <sys/socket.h>
24 #include <net/if_arp.h>
25 #include <stdlib.h>
26 #include <stdio.h>
27 #include <ctype.h>
28 #include <errno.h>
29 #include <fcntl.h>
30 #include <string.h>
31 #include <termios.h>
32 #include <unistd.h>
33 #include "net-support.h"
34 #include "pathnames.h"
37 struct hwtype slip_hwtype =
39 "slip", NULL, /*"Serial Line IP", */ ARPHRD_SLIP, 0,
40 NULL, NULL, NULL
42 struct hwtype cslip_hwtype =
44 "cslip", NULL, /*"VJ Serial Line IP", */ ARPHRD_CSLIP, 0,
45 NULL, NULL, NULL
47 struct hwtype slip6_hwtype =
49 "slip6", NULL, /*"6-bit Serial Line IP", */ ARPHRD_SLIP6, 0,
50 NULL, NULL, NULL
52 struct hwtype cslip6_hwtype =
54 "cslip6", NULL, /*"VJ 6-bit Serial Line IP", */ ARPHRD_CSLIP6, 0,
55 NULL, NULL, NULL
57 struct hwtype adaptive_hwtype =
59 "adaptive", NULL, /*"Adaptive Serial Line IP", */ ARPHRD_ADAPT, 0,
60 NULL, NULL, NULL
62 #endif /* HAVE_HWSLIP */