oliverschmidt | 37dc524 | 2004-08-20 12:30:26 +0000 | [diff] [blame] | 1 | #ifndef __PPP_CONF_H__ |
| 2 | #define __PPP_CONF_H__ |
| 3 | /* www.mycal.com |
| 4 | *--------------------------------------------------------------------------- |
| 5 | *ppp-conf.h - pppconfig header file - - |
| 6 | *--------------------------------------------------------------------------- |
| 7 | *Version - 0.1 Original Version June 3, 2000 - |
| 8 | *--------------------------------------------------------------------------- |
| 9 | *Notes: - This is where you configure the timeout and buffer sizes. |
| 10 | *- |
| 11 | *--------------------------------------------------------------------------- |
| 12 | */ |
| 13 | /* |
| 14 | * Copyright (c) 2003, Mike Johnson, Mycal Labs, www.mycal.net |
| 15 | * All rights reserved. |
| 16 | * |
| 17 | * Redistribution and use in source and binary forms, with or without |
| 18 | * modification, are permitted provided that the following conditions |
| 19 | * are met: |
| 20 | * 1. Redistributions of source code must retain the above copyright |
| 21 | * notice, this list of conditions and the following disclaimer. |
| 22 | * 2. Redistributions in binary form must reproduce the above copyright |
| 23 | * notice, this list of conditions and the following disclaimer in the |
| 24 | * documentation and/or other materials provided with the distribution. |
| 25 | * 3. All advertising materials mentioning features or use of this software |
| 26 | * must display the following acknowledgement: |
| 27 | * This product includes software developed by Mike Johnson of Mycal |
| 28 | * Labs (www.mycal.net) |
| 29 | * 4. The name of the author may not be used to endorse or promote |
| 30 | * products derived from this software without specific prior |
| 31 | * written permission. |
| 32 | * |
| 33 | * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS |
| 34 | * OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED |
| 35 | * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE |
| 36 | * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY |
| 37 | * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL |
| 38 | * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE |
| 39 | * GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS |
| 40 | * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, |
| 41 | * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING |
| 42 | * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS |
| 43 | * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
| 44 | * |
| 45 | * This file is part of the Mycal Modified uIP TCP/IP stack. |
| 46 | * |
oliverschmidt | e97fc2f | 2004-08-22 21:10:45 +0000 | [diff] [blame] | 47 | * $Id: ppp-conf.h,v 1.3 2004/08/22 21:10:45 oliverschmidt Exp $ |
oliverschmidt | 37dc524 | 2004-08-20 12:30:26 +0000 | [diff] [blame] | 48 | * |
| 49 | */ |
| 50 | |
| 51 | #include <string.h> |
| 52 | #include "uip.h" |
| 53 | |
| 54 | #define PPP_RX_BUFFER_SIZE 1024 |
| 55 | /*#define PPP_TX_BUFFER_SIZE 64*/ |
| 56 | |
oliverschmidt | e97fc2f | 2004-08-22 21:10:45 +0000 | [diff] [blame] | 57 | #define PAP_USERNAME_SIZE 32 |
| 58 | #define PAP_PASSWORD_SIZE 32 |
| 59 | |
oliverschmidt | 37dc524 | 2004-08-20 12:30:26 +0000 | [diff] [blame] | 60 | #define LCP_RETRY_COUNT 5 |
| 61 | #define LCP_TIMEOUT 5 |
| 62 | |
| 63 | #define PAP_TIMEOUT 5 |
| 64 | |
| 65 | #define IPCP_RETRY_COUNT 5 |
| 66 | #define IPCP_TIMEOUT 5 |
| 67 | |
| 68 | /* uncomment next line to get peer IP address */ |
| 69 | #define IPCP_GET_PEER_IP 1 |
| 70 | #define IPCP_GET_PRI_DNS 1 |
| 71 | #define IPCP_GET_SEC_DNS 1 |
| 72 | |
oliverschmidt | 68df72f | 2004-08-22 12:38:04 +0000 | [diff] [blame] | 73 | #endif /* __PPP_CONF_H__ */ |