home *** CD-ROM | disk | FTP | other *** search
/ Il CD di internet / CD.iso / SOURCE / N / TCPIP / NET-TOOL.1 / NET-TOOL / net-tools / lib / ppp.c < prev    next >
Encoding:
C/C++ Source or Header  |  1994-08-18  |  1.2 KB  |  56 lines

  1. /*
  2.  * NET-2    This file contains the SLIP support for the NET-2 base
  3.  *        distribution.
  4.  *
  5.  * Version:    @(#)slip.c    1.10    10/07/93
  6.  *
  7.  * Author:    Fred N. van Kempen, <waltje@uwalt.nl.mugnet.org>
  8.  *        Copyright 1993 MicroWalt Corporation
  9.  *
  10.  *        Modified by Alan Cox, May 94 to cover NET-3
  11.  *
  12.  *        This program is free software; you can redistribute it
  13.  *        and/or  modify it under  the terms of  the GNU General
  14.  *        Public  License as  published  by  the  Free  Software
  15.  *        Foundation;  either  version 2 of the License, or  (at
  16.  *        your option) any later version.
  17.  */
  18. #include "config.h"
  19.  
  20. #if HAVE_HWPPP
  21.  
  22. #include <sys/types.h>
  23. #include <sys/ioctl.h>
  24. #include <sys/socket.h>
  25. #include <linux/if.h>
  26. #include <stdlib.h>
  27. #include <stdio.h>
  28. #include <ctype.h>
  29. #include <errno.h>
  30. #include <fcntl.h>
  31. #include <string.h>
  32. #include <termios.h>
  33. #include <unistd.h>
  34. #include "support.h"
  35. #include "pathnames.h"
  36.  
  37.  
  38. /* Start the PPP encapsulation on the file descriptor. */
  39. static int
  40. do_ppp(int fd)
  41. {
  42.     fprintf(stderr,"You cannot start PPP with this program.\n");
  43.         return -1;
  44. }
  45.  
  46.  
  47.  
  48.  
  49. struct hwtype ppp_hwtype = {
  50.   "ppp",    "Point-Point Protocol",        ARPHRD_PPP,    0,
  51.   NULL,        NULL,        NULL,        do_ppp
  52. };
  53.  
  54.  
  55. #endif    /* HAVE_PPP */
  56.