fixes for man page bugs reported by Hugh Redelmeier.
[oss-qm-packages.git] / lib / ppp.c
blob8bf149901ec321adb26fbaddfe920e3d423d2318
1 /*
2 * lib/ppp.c This file contains the SLIP support for the NET-2 base
3 * distribution.
5 * Version: $Id: ppp.c,v 1.4 2000/03/05 11:26:03 philip Exp $
7 * Author: Fred N. van Kempen, <waltje@uwalt.nl.mugnet.org>
8 * Copyright 1993 MicroWalt Corporation
10 * Modified by Alan Cox, May 94 to cover NET-3
12 * Changes:
13 * 980701 {1.12} Arnaldo Carvalho de Melo - GNU gettext instead of catgets
15 * This program is free software; you can redistribute it
16 * and/or modify it under the terms of the GNU General
17 * Public License as published by the Free Software
18 * Foundation; either version 2 of the License, or (at
19 * your option) any later version.
21 #include "config.h"
23 #if HAVE_HWPPP
25 #include <sys/types.h>
26 #include <sys/ioctl.h>
27 #include <sys/socket.h>
28 #include <net/if_arp.h>
29 #include <stdlib.h>
30 #include <stdio.h>
31 #include <ctype.h>
32 #include <errno.h>
33 #include <fcntl.h>
34 #include <string.h>
35 #include <termios.h>
36 #include <unistd.h>
37 #include "net-support.h"
38 #include "pathnames.h"
39 #include "intl.h"
41 /* Start the PPP encapsulation on the file descriptor. */
42 static int do_ppp(int fd)
44 fprintf(stderr, _("You cannot start PPP with this program.\n"));
45 return -1;
49 struct hwtype ppp_hwtype =
51 "ppp", NULL, /*"Point-Point Protocol", */ ARPHRD_PPP, 0,
52 NULL, NULL, do_ppp, 0
56 #endif /* HAVE_PPP */