OpenCores
URL https://opencores.org/ocsvn/or1k/or1k/trunk

Subversion Repositories or1k

[/] [or1k/] [trunk/] [uclinux/] [userland/] [route/] [lib/] [ppp.c] - Blame information for rev 1767

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 745 simons
/*
2
 * lib/ppp.c  This file contains the SLIP support for the NET-2 base
3
 *              distribution.
4
 *
5
 * Version:     $Id: ppp.c,v 1.1 2002-03-17 19:58:53 simons Exp $
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
 * Changes:
13
 * 980701 {1.12} Arnaldo Carvalho de Melo - GNU gettext instead of catgets
14
 *
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.
20
 */
21
#include "config.h"
22
 
23
#if HAVE_HWPPP
24
 
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"
40
 
41
/* Start the PPP encapsulation on the file descriptor. */
42
static int do_ppp(int fd)
43
{
44
    fprintf(stderr, _("You cannot start PPP with this program.\n"));
45
    return -1;
46
}
47
 
48
 
49
 
50
 
51
struct hwtype ppp_hwtype =
52
{
53
    "ppp", NULL, /*"Point-Point Protocol", */ ARPHRD_PPP, 0,
54
    NULL, NULL, NULL, do_ppp
55
};
56
 
57
 
58
#endif                          /* HAVE_PPP */

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.