Add file headers to all PPPD files (still lots of style incompatibilies)
This commit is contained in:
parent
3b3962395f
commit
f87fd5118c
@ -1,24 +1,16 @@
|
|||||||
/* www.mycal.com
|
/****************************************************************************
|
||||||
*---------------------------------------------------------------------------
|
* apps/netutils/pppd/ahdlc.c
|
||||||
* ahdlc.c - Ahdlc receive and transmit processor for PPP engine.
|
* Ahdlc receive and transmit processor for PPP engine.
|
||||||
*
|
*
|
||||||
*---------------------------------------------------------------------------
|
* Version: 0.1 Original Version Jan 11, 1998
|
||||||
* Version
|
* Copyright (C) 1998, Mycal Labs www.mycal.com
|
||||||
* 0.1 Original Version Jan 11, 1998
|
* Copyright (c) 2003, Mike Johnson, Mycal Labs, www.mycal.net
|
||||||
*
|
* All rights reserved.
|
||||||
*---------------------------------------------------------------------------
|
|
||||||
*
|
|
||||||
* Copyright (C) 1998, Mycal Labs www.mycal.com
|
|
||||||
*
|
|
||||||
*---------------------------------------------------------------------------
|
|
||||||
*/
|
|
||||||
/*
|
|
||||||
* Copyright (c) 2003, Mike Johnson, Mycal Labs, www.mycal.net
|
|
||||||
* All rights reserved.
|
|
||||||
*
|
*
|
||||||
* Redistribution and use in source and binary forms, with or without
|
* Redistribution and use in source and binary forms, with or without
|
||||||
* modification, are permitted provided that the following conditions
|
* modification, are permitted provided that the following conditions
|
||||||
* are met:
|
* are met:
|
||||||
|
*
|
||||||
* 1. Redistributions of source code must retain the above copyright
|
* 1. Redistributions of source code must retain the above copyright
|
||||||
* notice, this list of conditions and the following disclaimer.
|
* notice, this list of conditions and the following disclaimer.
|
||||||
* 2. Redistributions in binary form must reproduce the above copyright
|
* 2. Redistributions in binary form must reproduce the above copyright
|
||||||
@ -44,19 +36,19 @@
|
|||||||
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
|
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
|
||||||
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||||
*
|
*
|
||||||
* This file is part of the Mycal Modified uIP TCP/IP stack.
|
****************************************************************************/
|
||||||
*
|
|
||||||
* $Id: ahdlc.c,v 1.1 2007/05/26 07:14:39 oliverschmidt Exp $
|
|
||||||
*
|
|
||||||
*/
|
|
||||||
|
|
||||||
/* */
|
/****************************************************************************
|
||||||
/* include files */
|
* Included Files
|
||||||
/* */
|
****************************************************************************/
|
||||||
|
|
||||||
#include "ppp_conf.h"
|
#include "ppp_conf.h"
|
||||||
#include "ppp.h"
|
#include "ppp.h"
|
||||||
|
|
||||||
|
/****************************************************************************
|
||||||
|
* Pre-processor Definitions
|
||||||
|
****************************************************************************/
|
||||||
|
|
||||||
#if PPP_DEBUG
|
#if PPP_DEBUG
|
||||||
# define DEBUG1(x) debug_printf x
|
# define DEBUG1(x) debug_printf x
|
||||||
# define PACKET_TX_DEBUG 1
|
# define PACKET_TX_DEBUG 1
|
||||||
@ -81,6 +73,10 @@
|
|||||||
#define AHDLC_PFC 0x10
|
#define AHDLC_PFC 0x10
|
||||||
#define AHDLC_ACFC 0x20
|
#define AHDLC_ACFC 0x20
|
||||||
|
|
||||||
|
/****************************************************************************
|
||||||
|
* Private Functions
|
||||||
|
****************************************************************************/
|
||||||
|
|
||||||
/*---------------------------------------------------------------------------*/
|
/*---------------------------------------------------------------------------*/
|
||||||
/* Simple and fast CRC16 routine for embedded processors.
|
/* Simple and fast CRC16 routine for embedded processors.
|
||||||
* Just slightly slower than the table lookup method but consumes
|
* Just slightly slower than the table lookup method but consumes
|
||||||
|
@ -1,13 +1,11 @@
|
|||||||
/*---------------------------------------------------------------------------
|
/****************************************************************************
|
||||||
ahdlc.h - ahdlc header file
|
* apps/netutils/pppd/ahdlc.h
|
||||||
---------------------------------------------------------------------------
|
* ahdlc header file
|
||||||
Version
|
*
|
||||||
0.1 Original Version Jan 11, 1998
|
* Version
|
||||||
(c)1998 Mycal Labs, All Rights Reserved
|
* 0.1 Original Version Jan 11, 1998
|
||||||
---------------------------------------------------------------------------*/
|
* Copyright (c) 2003, Mike Johnson, Mycal Labs, www.mycal.net
|
||||||
/*
|
* All rights reserved.
|
||||||
* Copyright (c) 2003, Mike Johnson, Mycal Labs, www.mycal.net
|
|
||||||
* All rights reserved.
|
|
||||||
*
|
*
|
||||||
* Redistribution and use in source and binary forms, with or without
|
* Redistribution and use in source and binary forms, with or without
|
||||||
* modification, are permitted provided that the following conditions
|
* modification, are permitted provided that the following conditions
|
||||||
@ -37,11 +35,7 @@
|
|||||||
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
|
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
|
||||||
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||||
*
|
*
|
||||||
* This file is part of the Mycal Modified uIP TCP/IP stack.
|
****************************************************************************/
|
||||||
*
|
|
||||||
* $Id: ahdlc.h,v 1.1 2007/05/26 07:14:39 oliverschmidt Exp $
|
|
||||||
*
|
|
||||||
*/
|
|
||||||
|
|
||||||
#ifndef __APPS_NETUTILS_PPPD_AHDLC_H
|
#ifndef __APPS_NETUTILS_PPPD_AHDLC_H
|
||||||
#define __APPS_NETUTILS_PPPD_AHDLC_H
|
#define __APPS_NETUTILS_PPPD_AHDLC_H
|
||||||
|
@ -1,12 +1,59 @@
|
|||||||
|
/****************************************************************************
|
||||||
|
* netutils/pppd/chat.c
|
||||||
|
*
|
||||||
|
* Copyright (C) 2015 Max Nekludov. All rights reserved.
|
||||||
|
* Author: Max Nekludov <macscomp@gmail.com>
|
||||||
|
*
|
||||||
|
* Redistribution and use in source and binary forms, with or without
|
||||||
|
* modification, are permitted provided that the following conditions
|
||||||
|
* are met:
|
||||||
|
*
|
||||||
|
* 1. Redistributions of source code must retain the above copyright
|
||||||
|
* notice, this list of conditions and the following disclaimer.
|
||||||
|
* 2. Redistributions in binary form must reproduce the above copyright
|
||||||
|
* notice, this list of conditions and the following disclaimer in
|
||||||
|
* the documentation and/or other materials provided with the
|
||||||
|
* distribution.
|
||||||
|
* 3. Neither the name NuttX nor the names of its contributors may be
|
||||||
|
* used to endorse or promote products derived from this software
|
||||||
|
* without specific prior written permission.
|
||||||
|
*
|
||||||
|
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
||||||
|
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
||||||
|
* LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
|
||||||
|
* FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
|
||||||
|
* COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
|
||||||
|
* INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
|
||||||
|
* BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
|
||||||
|
* OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
|
||||||
|
* AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
|
||||||
|
* LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
|
||||||
|
* ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
||||||
|
* POSSIBILITY OF SUCH DAMAGE.
|
||||||
|
*
|
||||||
|
****************************************************************************/
|
||||||
|
|
||||||
|
/****************************************************************************
|
||||||
|
* Included Files
|
||||||
|
****************************************************************************/
|
||||||
|
|
||||||
#include "ppp_conf.h"
|
#include "ppp_conf.h"
|
||||||
#include "ppp_arch.h"
|
#include "ppp_arch.h"
|
||||||
#include "chat.h"
|
#include "chat.h"
|
||||||
|
|
||||||
#include <poll.h>
|
#include <poll.h>
|
||||||
|
|
||||||
|
/****************************************************************************
|
||||||
|
* Pre-processor Definitions
|
||||||
|
****************************************************************************/
|
||||||
|
|
||||||
#define CHAT_MAX_SKIP 8
|
#define CHAT_MAX_SKIP 8
|
||||||
#define CHAT_ECHO_TIMEOUT 500
|
#define CHAT_ECHO_TIMEOUT 500
|
||||||
|
|
||||||
|
/****************************************************************************
|
||||||
|
* Private Functions
|
||||||
|
****************************************************************************/
|
||||||
|
|
||||||
static int chat_read_byte(int fd, char* c, int timeout)
|
static int chat_read_byte(int fd, char* c, int timeout)
|
||||||
{
|
{
|
||||||
int ret;
|
int ret;
|
||||||
|
@ -1,3 +1,38 @@
|
|||||||
|
/****************************************************************************
|
||||||
|
* netutils/pppd/chat.h
|
||||||
|
*
|
||||||
|
* Copyright (C) 2015 Max Nekludov. All rights reserved.
|
||||||
|
* Author: Max Nekludov <macscomp@gmail.com>
|
||||||
|
*
|
||||||
|
* Redistribution and use in source and binary forms, with or without
|
||||||
|
* modification, are permitted provided that the following conditions
|
||||||
|
* are met:
|
||||||
|
*
|
||||||
|
* 1. Redistributions of source code must retain the above copyright
|
||||||
|
* notice, this list of conditions and the following disclaimer.
|
||||||
|
* 2. Redistributions in binary form must reproduce the above copyright
|
||||||
|
* notice, this list of conditions and the following disclaimer in
|
||||||
|
* the documentation and/or other materials provided with the
|
||||||
|
* distribution.
|
||||||
|
* 3. Neither the name NuttX nor the names of its contributors may be
|
||||||
|
* used to endorse or promote products derived from this software
|
||||||
|
* without specific prior written permission.
|
||||||
|
*
|
||||||
|
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
||||||
|
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
||||||
|
* LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
|
||||||
|
* FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
|
||||||
|
* COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
|
||||||
|
* INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
|
||||||
|
* BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
|
||||||
|
* OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
|
||||||
|
* AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
|
||||||
|
* LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
|
||||||
|
* ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
||||||
|
* POSSIBILITY OF SUCH DAMAGE.
|
||||||
|
*
|
||||||
|
****************************************************************************/
|
||||||
|
|
||||||
#ifndef __APPS_NETUTILS_PPPD_CHAT_H
|
#ifndef __APPS_NETUTILS_PPPD_CHAT_H
|
||||||
#define __APPS_NETUTILS_PPPD_CHAT_H
|
#define __APPS_NETUTILS_PPPD_CHAT_H
|
||||||
|
|
||||||
|
@ -1,25 +1,16 @@
|
|||||||
/*
|
/****************************************************************************
|
||||||
*---------------------------------------------------------------------------
|
* netutils/pppd/ipcp.c
|
||||||
* ipcp.c - PPP IPCP (intrnet protocol) Processor/Handler
|
* PPP IPCP (intrnet protocol) Processor/Handler
|
||||||
*
|
*
|
||||||
*---------------------------------------------------------------------------
|
* Version: 0.1 Original Version Jun 3, 2000
|
||||||
*
|
* Copyright (C) 2000, Mycal Labs www.mycal.com
|
||||||
* Version
|
* Copyright (c) 2003, Mike Johnson, Mycal Labs, www.mycal.net
|
||||||
* 0.1 Original Version Jun 3, 2000
|
* All rights reserved.
|
||||||
*
|
|
||||||
*---------------------------------------------------------------------------
|
|
||||||
*
|
|
||||||
* Copyright (C) 2000, Mycal Labs www.mycal.com
|
|
||||||
*
|
|
||||||
*---------------------------------------------------------------------------
|
|
||||||
*/
|
|
||||||
/*
|
|
||||||
* Copyright (c) 2003, Mike Johnson, Mycal Labs, www.mycal.net
|
|
||||||
* All rights reserved.
|
|
||||||
*
|
*
|
||||||
* Redistribution and use in source and binary forms, with or without
|
* Redistribution and use in source and binary forms, with or without
|
||||||
* modification, are permitted provided that the following conditions
|
* modification, are permitted provided that the following conditions
|
||||||
* are met:
|
* are met:
|
||||||
|
*
|
||||||
* 1. Redistributions of source code must retain the above copyright
|
* 1. Redistributions of source code must retain the above copyright
|
||||||
* notice, this list of conditions and the following disclaimer.
|
* notice, this list of conditions and the following disclaimer.
|
||||||
* 2. Redistributions in binary form must reproduce the above copyright
|
* 2. Redistributions in binary form must reproduce the above copyright
|
||||||
@ -45,15 +36,11 @@
|
|||||||
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
|
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
|
||||||
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||||
*
|
*
|
||||||
* This file is part of the Mycal Modified uIP TCP/IP stack.
|
****************************************************************************/
|
||||||
*
|
|
||||||
* $Id: ipcp.c,v 1.2 2010/10/19 18:29:03 adamdunkels Exp $
|
|
||||||
*
|
|
||||||
*/
|
|
||||||
|
|
||||||
/* */
|
/****************************************************************************
|
||||||
/* include files */
|
* Included Files
|
||||||
/* */
|
****************************************************************************/
|
||||||
|
|
||||||
#include "ppp_conf.h"
|
#include "ppp_conf.h"
|
||||||
#include "ppp_arch.h"
|
#include "ppp_arch.h"
|
||||||
@ -61,12 +48,20 @@
|
|||||||
#include "ppp.h"
|
#include "ppp.h"
|
||||||
#include "ahdlc.h"
|
#include "ahdlc.h"
|
||||||
|
|
||||||
|
/****************************************************************************
|
||||||
|
* Pre-processor Definitions
|
||||||
|
****************************************************************************/
|
||||||
|
|
||||||
#if PPP_DEBUG
|
#if PPP_DEBUG
|
||||||
# define DEBUG1(x) debug_printf x
|
# define DEBUG1(x) debug_printf x
|
||||||
#else
|
#else
|
||||||
# define DEBUG1(x)
|
# define DEBUG1(x)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
/****************************************************************************
|
||||||
|
* Private Types
|
||||||
|
****************************************************************************/
|
||||||
|
|
||||||
/* In the future add compression protocol and name servers (possibly for servers
|
/* In the future add compression protocol and name servers (possibly for servers
|
||||||
* only)
|
* only)
|
||||||
*/
|
*/
|
||||||
@ -77,11 +72,14 @@ static const u8_t ipcplist[] =
|
|||||||
0
|
0
|
||||||
};
|
};
|
||||||
|
|
||||||
|
/****************************************************************************
|
||||||
|
* Private Functions
|
||||||
|
****************************************************************************/
|
||||||
|
|
||||||
/*---------------------------------------------------------------------------*/
|
/*---------------------------------------------------------------------------*/
|
||||||
|
|
||||||
#if 0
|
#if 0
|
||||||
void
|
void printip(uip_ipaddr_t ip2)
|
||||||
printip(uip_ipaddr_t ip2)
|
|
||||||
{
|
{
|
||||||
char *ip = (u8_t*)ip2;
|
char *ip = (u8_t*)ip2;
|
||||||
DEBUG1((" %d.%d.%d.%d ",ip[0],ip[1],ip[2],ip[3]));
|
DEBUG1((" %d.%d.%d.%d ",ip[0],ip[1],ip[2],ip[3]));
|
||||||
|
@ -1,19 +1,16 @@
|
|||||||
/* www.mycal.com
|
/****************************************************************************
|
||||||
---------------------------------------------------------------------------
|
* netutils/pppd/ipcp.c
|
||||||
IPCP.h - Internet Protocol Control Protocol header file
|
* Internet Protocol Control Protocol header file
|
||||||
---------------------------------------------------------------------------
|
*
|
||||||
Version
|
* Version: 0.1 Original Version June 3, 2000
|
||||||
0.1 Original Version June 3, 2000
|
* (c)2000 Mycal Labs, All Rights Reserved
|
||||||
(c)2000 Mycal Labs, All Rights Reserved
|
* Copyright (c) 2003, Mike Johnson, Mycal Labs, www.mycal.net
|
||||||
---------------------------------------------------------------------------
|
* All rights reserved.
|
||||||
*/
|
|
||||||
/*
|
|
||||||
* Copyright (c) 2003, Mike Johnson, Mycal Labs, www.mycal.net
|
|
||||||
* All rights reserved.
|
|
||||||
*
|
*
|
||||||
* Redistribution and use in source and binary forms, with or without
|
* Redistribution and use in source and binary forms, with or without
|
||||||
* modification, are permitted provided that the following conditions
|
* modification, are permitted provided that the following conditions
|
||||||
* are met:
|
* are met:
|
||||||
|
*
|
||||||
* 1. Redistributions of source code must retain the above copyright
|
* 1. Redistributions of source code must retain the above copyright
|
||||||
* notice, this list of conditions and the following disclaimer.
|
* notice, this list of conditions and the following disclaimer.
|
||||||
* 2. Redistributions in binary form must reproduce the above copyright
|
* 2. Redistributions in binary form must reproduce the above copyright
|
||||||
@ -39,11 +36,7 @@
|
|||||||
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
|
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
|
||||||
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||||
*
|
*
|
||||||
* This file is part of the Mycal Modified uIP TCP/IP stack.
|
****************************************************************************/
|
||||||
*
|
|
||||||
* $Id: ipcp.h,v 1.1 2007/05/26 07:14:39 oliverschmidt Exp $
|
|
||||||
*
|
|
||||||
*/
|
|
||||||
|
|
||||||
#ifndef __APPS_NETUTILS_PPPD_IPCP_H
|
#ifndef __APPS_NETUTILS_PPPD_IPCP_H
|
||||||
#define __APPS_NETUTILS_PPPD_IPCP_H
|
#define __APPS_NETUTILS_PPPD_IPCP_H
|
||||||
|
@ -1,20 +1,16 @@
|
|||||||
/* www.mycal.com
|
/****************************************************************************
|
||||||
*---------------------------------------------------------------------------
|
* netutils/pppd/lcp.c
|
||||||
*lcp.c - Link Configuration Protocol Handler. - -
|
* Link Configuration Protocol Handler
|
||||||
*---------------------------------------------------------------------------
|
|
||||||
*Version - 0.1 Original Version June 3, 2000 -
|
|
||||||
*
|
*
|
||||||
*---------------------------------------------------------------------------
|
* Version - 0.1 Original Version June 3, 2000 -
|
||||||
*- Copyright (C) 2000, Mycal Labs www.mycal.com - -
|
* Copyright (C) 2000, Mycal Labs www.mycal.com - -
|
||||||
*---------------------------------------------------------------------------
|
* Copyright (c) 2003, Mike Johnson, Mycal Labs, www.mycal.net
|
||||||
*/
|
* All rights reserved.
|
||||||
/*
|
|
||||||
* Copyright (c) 2003, Mike Johnson, Mycal Labs, www.mycal.net
|
|
||||||
* All rights reserved.
|
|
||||||
*
|
*
|
||||||
* Redistribution and use in source and binary forms, with or without
|
* Redistribution and use in source and binary forms, with or without
|
||||||
* modification, are permitted provided that the following conditions
|
* modification, are permitted provided that the following conditions
|
||||||
* are met:
|
* are met:
|
||||||
|
*
|
||||||
* 1. Redistributions of source code must retain the above copyright
|
* 1. Redistributions of source code must retain the above copyright
|
||||||
* notice, this list of conditions and the following disclaimer.
|
* notice, this list of conditions and the following disclaimer.
|
||||||
* 2. Redistributions in binary form must reproduce the above copyright
|
* 2. Redistributions in binary form must reproduce the above copyright
|
||||||
@ -40,13 +36,11 @@
|
|||||||
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
|
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
|
||||||
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||||
*
|
*
|
||||||
* This file is part of the Mycal Modified uIP TCP/IP stack.
|
****************************************************************************/
|
||||||
*
|
|
||||||
* $Id: lcp.c,v 1.2 2010/10/19 18:29:03 adamdunkels Exp $
|
|
||||||
*
|
|
||||||
*/
|
|
||||||
|
|
||||||
/* include files */
|
/****************************************************************************
|
||||||
|
* Included Files
|
||||||
|
****************************************************************************/
|
||||||
|
|
||||||
#include "ppp_conf.h"
|
#include "ppp_conf.h"
|
||||||
#include "ppp_arch.h"
|
#include "ppp_arch.h"
|
||||||
@ -54,6 +48,10 @@
|
|||||||
#include "ahdlc.h"
|
#include "ahdlc.h"
|
||||||
#include "lcp.h"
|
#include "lcp.h"
|
||||||
|
|
||||||
|
/****************************************************************************
|
||||||
|
* Pre-processor Definitions
|
||||||
|
****************************************************************************/
|
||||||
|
|
||||||
#if PPP_DEBUG
|
#if PPP_DEBUG
|
||||||
# define DEBUG1(x) debug_printf x
|
# define DEBUG1(x) debug_printf x
|
||||||
# define DEBUG2(x) debug_printf x
|
# define DEBUG2(x) debug_printf x
|
||||||
@ -62,6 +60,10 @@
|
|||||||
# define DEBUG2(x)
|
# define DEBUG2(x)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
/****************************************************************************
|
||||||
|
* Private Types
|
||||||
|
****************************************************************************/
|
||||||
|
|
||||||
/* We need this when we neg our direction.
|
/* We need this when we neg our direction.
|
||||||
u8_t lcp_tx_options; */
|
u8_t lcp_tx_options; */
|
||||||
|
|
||||||
@ -78,6 +80,10 @@ static const u8_t lcplist[] =
|
|||||||
0
|
0
|
||||||
};
|
};
|
||||||
|
|
||||||
|
/****************************************************************************
|
||||||
|
* Private Functions
|
||||||
|
****************************************************************************/
|
||||||
|
|
||||||
/*---------------------------------------------------------------------------*/
|
/*---------------------------------------------------------------------------*/
|
||||||
/* lcp_init() - Initialize the LCP engine to startup values */
|
/* lcp_init() - Initialize the LCP engine to startup values */
|
||||||
/*---------------------------------------------------------------------------*/
|
/*---------------------------------------------------------------------------*/
|
||||||
|
@ -1,19 +1,16 @@
|
|||||||
/* www.mycal.com
|
/****************************************************************************
|
||||||
---------------------------------------------------------------------------
|
* netutils/pppd/lpc.h
|
||||||
LCP.h - LCP header file
|
* Link Configuration Protocol header file
|
||||||
---------------------------------------------------------------------------
|
*
|
||||||
Version -
|
* Version: .1 Original Version June 3, 2000
|
||||||
0.1 Original Version June 3, 2000
|
* (c)2000 Mycal Labs, All Rights Reserved
|
||||||
(c)2000 Mycal Labs, All Rights Reserved
|
* Copyright (c) 2003, Mike Johnson, Mycal Labs, www.mycal.net
|
||||||
---------------------------------------------------------------------------
|
* All rights reserved.
|
||||||
*/
|
|
||||||
/*
|
|
||||||
* Copyright (c) 2003, Mike Johnson, Mycal Labs, www.mycal.net
|
|
||||||
* All rights reserved.
|
|
||||||
*
|
*
|
||||||
* Redistribution and use in source and binary forms, with or without
|
* Redistribution and use in source and binary forms, with or without
|
||||||
* modification, are permitted provided that the following conditions
|
* modification, are permitted provided that the following conditions
|
||||||
* are met:
|
* are met:
|
||||||
|
*
|
||||||
* 1. Redistributions of source code must retain the above copyright
|
* 1. Redistributions of source code must retain the above copyright
|
||||||
* notice, this list of conditions and the following disclaimer.
|
* notice, this list of conditions and the following disclaimer.
|
||||||
* 2. Redistributions in binary form must reproduce the above copyright
|
* 2. Redistributions in binary form must reproduce the above copyright
|
||||||
@ -39,11 +36,7 @@
|
|||||||
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
|
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
|
||||||
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||||
*
|
*
|
||||||
* This file is part of the Mycal Modified uIP TCP/IP stack.
|
****************************************************************************/
|
||||||
*
|
|
||||||
* $Id: lcp.h,v 1.1 2007/05/26 07:14:39 oliverschmidt Exp $
|
|
||||||
*
|
|
||||||
*/
|
|
||||||
|
|
||||||
#ifndef __APPS_NETUTILS_PPPD_LCP_H
|
#ifndef __APPS_NETUTILS_PPPD_LCP_H
|
||||||
#define __APPS_NETUTILS_PPPD_LCP_H
|
#define __APPS_NETUTILS_PPPD_LCP_H
|
||||||
|
@ -1,19 +1,16 @@
|
|||||||
/* www.mycal.net
|
/****************************************************************************
|
||||||
*---------------------------------------------------------------------------
|
* netutils/pppd/pap.c
|
||||||
*pap.c - PAP processor for the PPP module - -
|
* PAP processor for the PPP module
|
||||||
*---------------------------------------------------------------------------
|
*
|
||||||
*Version - 0.1 Original Version Jun 3, 2000 - -
|
* Version: 0.1 Original Version Jun 3, 2000
|
||||||
*---------------------------------------------------------------------------
|
* Copyright (C) 2000, Mycal Labs www.mycal.com - -
|
||||||
*- Copyright (C) 2000, Mycal Labs www.mycal.com - -
|
* Copyright (c) 2003, Mike Johnson, Mycal Labs, www.mycal.net
|
||||||
*---------------------------------------------------------------------------
|
* All rights reserved.
|
||||||
*/
|
|
||||||
/*
|
|
||||||
* Copyright (c) 2003, Mike Johnson, Mycal Labs, www.mycal.net
|
|
||||||
* All rights reserved.
|
|
||||||
*
|
*
|
||||||
* Redistribution and use in source and binary forms, with or without
|
* Redistribution and use in source and binary forms, with or without
|
||||||
* modification, are permitted provided that the following conditions
|
* modification, are permitted provided that the following conditions
|
||||||
* are met:
|
* are met:
|
||||||
|
*
|
||||||
* 1. Redistributions of source code must retain the above copyright
|
* 1. Redistributions of source code must retain the above copyright
|
||||||
* notice, this list of conditions and the following disclaimer.
|
* notice, this list of conditions and the following disclaimer.
|
||||||
* 2. Redistributions in binary form must reproduce the above copyright
|
* 2. Redistributions in binary form must reproduce the above copyright
|
||||||
@ -39,15 +36,11 @@
|
|||||||
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
|
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
|
||||||
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||||
*
|
*
|
||||||
* This file is part of the Mycal Modified uIP TCP/IP stack.
|
****************************************************************************/
|
||||||
*
|
|
||||||
* $Id: pap.c,v 1.2 2010/10/19 18:29:03 adamdunkels Exp $
|
|
||||||
*
|
|
||||||
*/
|
|
||||||
|
|
||||||
/* */
|
/****************************************************************************
|
||||||
/* include files */
|
* Included Files
|
||||||
/* */
|
****************************************************************************/
|
||||||
|
|
||||||
#include "ppp_conf.h"
|
#include "ppp_conf.h"
|
||||||
#include "ppp_arch.h"
|
#include "ppp_arch.h"
|
||||||
@ -55,12 +48,20 @@
|
|||||||
#include "pap.h"
|
#include "pap.h"
|
||||||
#include "lcp.h"
|
#include "lcp.h"
|
||||||
|
|
||||||
|
/****************************************************************************
|
||||||
|
* Pre-processor Definitions
|
||||||
|
****************************************************************************/
|
||||||
|
|
||||||
#if PPP_DEBUG
|
#if PPP_DEBUG
|
||||||
# define DEBUG1(x) debug_printf x
|
# define DEBUG1(x) debug_printf x
|
||||||
#else
|
#else
|
||||||
# define DEBUG1(x)
|
# define DEBUG1(x)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
/****************************************************************************
|
||||||
|
* Private Functions
|
||||||
|
****************************************************************************/
|
||||||
|
|
||||||
/*---------------------------------------------------------------------------*/
|
/*---------------------------------------------------------------------------*/
|
||||||
|
|
||||||
void pap_init(struct ppp_context_s *ctx)
|
void pap_init(struct ppp_context_s *ctx)
|
||||||
|
@ -1,20 +1,16 @@
|
|||||||
/*
|
/****************************************************************************
|
||||||
www.mycal.com
|
* netutils/pppd/pap.h
|
||||||
---------------------------------------------------------------------------
|
* PAP header file
|
||||||
pap.h - pap header file
|
*
|
||||||
---------------------------------------------------------------------------
|
* Version: 0.1 Original Version June 3, 2000
|
||||||
Version
|
* (c)2000 Mycal Labs, All Rights Reserved
|
||||||
0.1 Original Version June 3, 2000
|
* Copyright (c) 2003, Mike Johnson, Mycal Labs, www.mycal.net
|
||||||
(c)2000 Mycal Labs, All Rights Reserved
|
* All rights reserved.
|
||||||
---------------------------------------------------------------------------
|
|
||||||
*/
|
|
||||||
/*
|
|
||||||
* Copyright (c) 2003, Mike Johnson, Mycal Labs, www.mycal.net
|
|
||||||
* All rights reserved.
|
|
||||||
*
|
*
|
||||||
* Redistribution and use in source and binary forms, with or without
|
* Redistribution and use in source and binary forms, with or without
|
||||||
* modification, are permitted provided that the following conditions
|
* modification, are permitted provided that the following conditions
|
||||||
* are met:
|
* are met:
|
||||||
|
*
|
||||||
* 1. Redistributions of source code must retain the above copyright
|
* 1. Redistributions of source code must retain the above copyright
|
||||||
* notice, this list of conditions and the following disclaimer.
|
* notice, this list of conditions and the following disclaimer.
|
||||||
* 2. Redistributions in binary form must reproduce the above copyright
|
* 2. Redistributions in binary form must reproduce the above copyright
|
||||||
@ -22,8 +18,8 @@
|
|||||||
* documentation and/or other materials provided with the distribution.
|
* documentation and/or other materials provided with the distribution.
|
||||||
* 3. All advertising materials mentioning features or use of this software
|
* 3. All advertising materials mentioning features or use of this software
|
||||||
* must display the following acknowledgement:
|
* must display the following acknowledgement:
|
||||||
* This product includes software developed by Mike Johnson/Mycal Labs
|
* This product includes software developed by Mike Johnson/Mycal Labs
|
||||||
* www.mycal.net.
|
* www.mycal.net.
|
||||||
* 4. The name of the author may not be used to endorse or promote
|
* 4. The name of the author may not be used to endorse or promote
|
||||||
* products derived from this software without specific prior
|
* products derived from this software without specific prior
|
||||||
* written permission.
|
* written permission.
|
||||||
@ -40,11 +36,11 @@
|
|||||||
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
|
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
|
||||||
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||||
*
|
*
|
||||||
* This file is part of the Mycal Modified uIP TCP/IP stack.
|
****************************************************************************/
|
||||||
*
|
|
||||||
* $Id: pap.h,v 1.1 2007/05/26 07:14:40 oliverschmidt Exp $
|
/****************************************************************************
|
||||||
*
|
* Included Files
|
||||||
*/
|
****************************************************************************/
|
||||||
|
|
||||||
#ifndef __APPS_NETUTILS_PPPD_PAP_H
|
#ifndef __APPS_NETUTILS_PPPD_PAP_H
|
||||||
#define __APPS_NETUTILS_PPPD_PAP_H
|
#define __APPS_NETUTILS_PPPD_PAP_H
|
||||||
|
@ -1,21 +1,15 @@
|
|||||||
/*
|
/****************************************************************************
|
||||||
*---------------------------------------------------------------------------
|
* netutils/pppd/ppp.c
|
||||||
* ppp.c - PPP Processor/Handler
|
* PPP Processor/Handler
|
||||||
*
|
*
|
||||||
*---------------------------------------------------------------------------
|
* Version: 0.1 Original Version Jun 3, 2000
|
||||||
*
|
* Copyright (c) 2003, Mike Johnson, Mycal Labs, www.mycal.net
|
||||||
* Version
|
* All rights reserved.
|
||||||
* 0.1 Original Version Jun 3, 2000
|
|
||||||
*
|
|
||||||
*---------------------------------------------------------------------------
|
|
||||||
*/
|
|
||||||
/*
|
|
||||||
* Copyright (c) 2003, Mike Johnson, Mycal Labs, www.mycal.net
|
|
||||||
* All rights reserved.
|
|
||||||
*
|
*
|
||||||
* Redistribution and use in source and binary forms, with or without
|
* Redistribution and use in source and binary forms, with or without
|
||||||
* modification, are permitted provided that the following conditions
|
* modification, are permitted provided that the following conditions
|
||||||
* are met:
|
* are met:
|
||||||
|
*
|
||||||
* 1. Redistributions of source code must retain the above copyright
|
* 1. Redistributions of source code must retain the above copyright
|
||||||
* notice, this list of conditions and the following disclaimer.
|
* notice, this list of conditions and the following disclaimer.
|
||||||
* 2. Redistributions in binary form must reproduce the above copyright
|
* 2. Redistributions in binary form must reproduce the above copyright
|
||||||
@ -41,15 +35,11 @@
|
|||||||
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
|
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
|
||||||
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||||
*
|
*
|
||||||
* This file is part of the Mycal Modified uIP TCP/IP stack.
|
****************************************************************************/
|
||||||
*
|
|
||||||
* $Id: ppp.c,v 1.2 2010/10/19 18:29:03 adamdunkels Exp $
|
|
||||||
*
|
|
||||||
*/
|
|
||||||
|
|
||||||
/* */
|
/****************************************************************************
|
||||||
/* include files */
|
* Included Files
|
||||||
/* */
|
****************************************************************************/
|
||||||
|
|
||||||
#include "ppp_conf.h"
|
#include "ppp_conf.h"
|
||||||
#include "ppp_arch.h"
|
#include "ppp_arch.h"
|
||||||
@ -59,6 +49,10 @@
|
|||||||
#include "lcp.h"
|
#include "lcp.h"
|
||||||
#include "pap.h"
|
#include "pap.h"
|
||||||
|
|
||||||
|
/****************************************************************************
|
||||||
|
* Pre-processor Definitions
|
||||||
|
****************************************************************************/
|
||||||
|
|
||||||
#if PPP_DEBUG
|
#if PPP_DEBUG
|
||||||
# define DEBUG1(x) debug_printf x
|
# define DEBUG1(x) debug_printf x
|
||||||
#else
|
#else
|
||||||
@ -69,6 +63,10 @@
|
|||||||
|
|
||||||
#define PACKET_RX_DEBUG 1
|
#define PACKET_RX_DEBUG 1
|
||||||
|
|
||||||
|
/****************************************************************************
|
||||||
|
* Private Functions
|
||||||
|
****************************************************************************/
|
||||||
|
|
||||||
/*---------------------------------------------------------------------------*/
|
/*---------------------------------------------------------------------------*/
|
||||||
/* Unknown Protocol Handler, sends reject */
|
/* Unknown Protocol Handler, sends reject */
|
||||||
|
|
||||||
|
@ -1,18 +1,16 @@
|
|||||||
/* www.mycal.net
|
/****************************************************************************
|
||||||
---------------------------------------------------------------------------
|
* netutils/pppd/ppp.h
|
||||||
ppp.h - ppp header file
|
* PPP header file
|
||||||
---------------------------------------------------------------------------
|
*
|
||||||
Version
|
* Version: 0.1 Original Version June 3, 2000
|
||||||
0.1 Original Version June 3, 2000
|
* (c)2000 Mycal Labs, All Rights Reserved
|
||||||
(c)2000 Mycal Labs, All Rights Reserved
|
* Copyright (c) 2003, Mike Johnson, Mycal Labs, www.mycal.net
|
||||||
--------------------------------------------------------------------------- */
|
* All rights reserved.
|
||||||
/*
|
|
||||||
* Copyright (c) 2003, Mike Johnson, Mycal Labs, www.mycal.net
|
|
||||||
* All rights reserved.
|
|
||||||
*
|
*
|
||||||
* Redistribution and use in source and binary forms, with or without
|
* Redistribution and use in source and binary forms, with or without
|
||||||
* modification, are permitted provided that the following conditions
|
* modification, are permitted provided that the following conditions
|
||||||
* are met:
|
* are met:
|
||||||
|
*
|
||||||
* 1. Redistributions of source code must retain the above copyright
|
* 1. Redistributions of source code must retain the above copyright
|
||||||
* notice, this list of conditions and the following disclaimer.
|
* notice, this list of conditions and the following disclaimer.
|
||||||
* 2. Redistributions in binary form must reproduce the above copyright
|
* 2. Redistributions in binary form must reproduce the above copyright
|
||||||
@ -20,8 +18,8 @@
|
|||||||
* documentation and/or other materials provided with the distribution.
|
* documentation and/or other materials provided with the distribution.
|
||||||
* 3. All advertising materials mentioning features or use of this software
|
* 3. All advertising materials mentioning features or use of this software
|
||||||
* must display the following acknowledgement:
|
* must display the following acknowledgement:
|
||||||
* This product includes software developed by Mike Johnson/Mycal Labs
|
* This product includes software developed by Mike Johnson/Mycal Labs
|
||||||
* www.mycal.net.
|
* www.mycal.net.
|
||||||
* 4. The name of the author may not be used to endorse or promote
|
* 4. The name of the author may not be used to endorse or promote
|
||||||
* products derived from this software without specific prior
|
* products derived from this software without specific prior
|
||||||
* written permission.
|
* written permission.
|
||||||
@ -38,11 +36,7 @@
|
|||||||
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
|
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
|
||||||
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||||
*
|
*
|
||||||
* This file is part of the Mycal Modified uIP TCP/IP stack.
|
****************************************************************************/
|
||||||
*
|
|
||||||
* $Id: ppp.h,v 1.1 2007/05/26 07:14:40 oliverschmidt Exp $
|
|
||||||
*
|
|
||||||
*/
|
|
||||||
|
|
||||||
#ifndef __APPS_NETUTILS_PPPD_PPP_H
|
#ifndef __APPS_NETUTILS_PPPD_PPP_H
|
||||||
#define __APPS_NETUTILS_PPPD_PPP_H
|
#define __APPS_NETUTILS_PPPD_PPP_H
|
||||||
|
@ -1,3 +1,38 @@
|
|||||||
|
/****************************************************************************
|
||||||
|
* netutils/pppd/pppd.c
|
||||||
|
*
|
||||||
|
* Copyright (C) 2015 Max Nekludov. All rights reserved.
|
||||||
|
* Author: Max Nekludov <macscomp@gmail.com>
|
||||||
|
*
|
||||||
|
* Redistribution and use in source and binary forms, with or without
|
||||||
|
* modification, are permitted provided that the following conditions
|
||||||
|
* are met:
|
||||||
|
*
|
||||||
|
* 1. Redistributions of source code must retain the above copyright
|
||||||
|
* notice, this list of conditions and the following disclaimer.
|
||||||
|
* 2. Redistributions in binary form must reproduce the above copyright
|
||||||
|
* notice, this list of conditions and the following disclaimer in
|
||||||
|
* the documentation and/or other materials provided with the
|
||||||
|
* distribution.
|
||||||
|
* 3. Neither the name NuttX nor the names of its contributors may be
|
||||||
|
* used to endorse or promote products derived from this software
|
||||||
|
* without specific prior written permission.
|
||||||
|
*
|
||||||
|
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
||||||
|
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
||||||
|
* LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
|
||||||
|
* FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
|
||||||
|
* COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
|
||||||
|
* INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
|
||||||
|
* BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
|
||||||
|
* OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
|
||||||
|
* AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
|
||||||
|
* LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
|
||||||
|
* ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
||||||
|
* POSSIBILITY OF SUCH DAMAGE.
|
||||||
|
*
|
||||||
|
****************************************************************************/
|
||||||
|
|
||||||
#ifndef __APPS_NETUTILS_PPPD_PPP_ARCH_H
|
#ifndef __APPS_NETUTILS_PPPD_PPP_ARCH_H
|
||||||
#define __APPS_NETUTILS_PPPD_PPP_ARCH_H
|
#define __APPS_NETUTILS_PPPD_PPP_ARCH_H
|
||||||
|
|
||||||
|
@ -1,6 +1,45 @@
|
|||||||
|
/****************************************************************************
|
||||||
|
* netutils/pppd/ppp-conf.c
|
||||||
|
*
|
||||||
|
* Copyright (C) 2015 Max Nekludov. All rights reserved.
|
||||||
|
* Author: Max Nekludov <macscomp@gmail.com>
|
||||||
|
*
|
||||||
|
* Redistribution and use in source and binary forms, with or without
|
||||||
|
* modification, are permitted provided that the following conditions
|
||||||
|
* are met:
|
||||||
|
*
|
||||||
|
* 1. Redistributions of source code must retain the above copyright
|
||||||
|
* notice, this list of conditions and the following disclaimer.
|
||||||
|
* 2. Redistributions in binary form must reproduce the above copyright
|
||||||
|
* notice, this list of conditions and the following disclaimer in
|
||||||
|
* the documentation and/or other materials provided with the
|
||||||
|
* distribution.
|
||||||
|
* 3. Neither the name NuttX nor the names of its contributors may be
|
||||||
|
* used to endorse or promote products derived from this software
|
||||||
|
* without specific prior written permission.
|
||||||
|
*
|
||||||
|
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
||||||
|
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
||||||
|
* LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
|
||||||
|
* FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
|
||||||
|
* COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
|
||||||
|
* INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
|
||||||
|
* BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
|
||||||
|
* OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
|
||||||
|
* AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
|
||||||
|
* LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
|
||||||
|
* ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
||||||
|
* POSSIBILITY OF SUCH DAMAGE.
|
||||||
|
*
|
||||||
|
****************************************************************************/
|
||||||
|
|
||||||
#ifndef __APPS_NETUTILS_PPPD_PPP_CONF_H
|
#ifndef __APPS_NETUTILS_PPPD_PPP_CONF_H
|
||||||
#define __APPS_NETUTILS_PPPD_PPP_CONF_H
|
#define __APPS_NETUTILS_PPPD_PPP_CONF_H
|
||||||
|
|
||||||
|
/****************************************************************************
|
||||||
|
* Pre-processor Definitions
|
||||||
|
****************************************************************************/
|
||||||
|
|
||||||
#define IPCP_RETRY_COUNT 5
|
#define IPCP_RETRY_COUNT 5
|
||||||
#define IPCP_TIMEOUT 5
|
#define IPCP_TIMEOUT 5
|
||||||
#define IPV6CP_RETRY_COUNT 5
|
#define IPV6CP_RETRY_COUNT 5
|
||||||
|
Loading…
x
Reference in New Issue
Block a user