This library is stripped down version of NetServices library. HTTP server and client function is NOT supported.

Dependents:   imu-daq-eth

Committer:
idinor
Date:
Wed Jul 20 11:45:39 2011 +0000
Revision:
0:dcf3c92487ca

        

Who changed what in which revision?

UserRevisionLine numberNew contents of line
idinor 0:dcf3c92487ca 1 /*****************************************************************************
idinor 0:dcf3c92487ca 2 * pppdebug.h - System debugging utilities.
idinor 0:dcf3c92487ca 3 *
idinor 0:dcf3c92487ca 4 * Copyright (c) 2003 by Marc Boucher, Services Informatiques (MBSI) inc.
idinor 0:dcf3c92487ca 5 * portions Copyright (c) 1998 Global Election Systems Inc.
idinor 0:dcf3c92487ca 6 * portions Copyright (c) 2001 by Cognizant Pty Ltd.
idinor 0:dcf3c92487ca 7 *
idinor 0:dcf3c92487ca 8 * The authors hereby grant permission to use, copy, modify, distribute,
idinor 0:dcf3c92487ca 9 * and license this software and its documentation for any purpose, provided
idinor 0:dcf3c92487ca 10 * that existing copyright notices are retained in all copies and that this
idinor 0:dcf3c92487ca 11 * notice and the following disclaimer are included verbatim in any
idinor 0:dcf3c92487ca 12 * distributions. No written agreement, license, or royalty fee is required
idinor 0:dcf3c92487ca 13 * for any of the authorized uses.
idinor 0:dcf3c92487ca 14 *
idinor 0:dcf3c92487ca 15 * THIS SOFTWARE IS PROVIDED BY THE CONTRIBUTORS *AS IS* AND ANY EXPRESS OR
idinor 0:dcf3c92487ca 16 * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
idinor 0:dcf3c92487ca 17 * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
idinor 0:dcf3c92487ca 18 * IN NO EVENT SHALL THE CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
idinor 0:dcf3c92487ca 19 * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
idinor 0:dcf3c92487ca 20 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
idinor 0:dcf3c92487ca 21 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
idinor 0:dcf3c92487ca 22 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
idinor 0:dcf3c92487ca 23 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
idinor 0:dcf3c92487ca 24 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
idinor 0:dcf3c92487ca 25 *
idinor 0:dcf3c92487ca 26 ******************************************************************************
idinor 0:dcf3c92487ca 27 * REVISION HISTORY (please don't use tabs!)
idinor 0:dcf3c92487ca 28 *
idinor 0:dcf3c92487ca 29 * 03-01-01 Marc Boucher <marc@mbsi.ca>
idinor 0:dcf3c92487ca 30 * Ported to lwIP.
idinor 0:dcf3c92487ca 31 * 98-07-29 Guy Lancaster <lancasterg@acm.org>, Global Election Systems Inc.
idinor 0:dcf3c92487ca 32 * Original.
idinor 0:dcf3c92487ca 33 *
idinor 0:dcf3c92487ca 34 *****************************************************************************
idinor 0:dcf3c92487ca 35 */
idinor 0:dcf3c92487ca 36 #ifndef PPPDEBUG_H
idinor 0:dcf3c92487ca 37 #define PPPDEBUG_H
idinor 0:dcf3c92487ca 38
idinor 0:dcf3c92487ca 39 /* Trace levels. */
idinor 0:dcf3c92487ca 40 #define LOG_CRITICAL (PPP_DEBUG | LWIP_DBG_LEVEL_SEVERE)
idinor 0:dcf3c92487ca 41 #define LOG_ERR (PPP_DEBUG | LWIP_DBG_LEVEL_SEVERE)
idinor 0:dcf3c92487ca 42 #define LOG_NOTICE (PPP_DEBUG | LWIP_DBG_LEVEL_WARNING)
idinor 0:dcf3c92487ca 43 #define LOG_WARNING (PPP_DEBUG | LWIP_DBG_LEVEL_WARNING)
idinor 0:dcf3c92487ca 44 #define LOG_INFO (PPP_DEBUG)
idinor 0:dcf3c92487ca 45 #define LOG_DETAIL (PPP_DEBUG)
idinor 0:dcf3c92487ca 46 #define LOG_DEBUG (PPP_DEBUG)
idinor 0:dcf3c92487ca 47
idinor 0:dcf3c92487ca 48
idinor 0:dcf3c92487ca 49 #define TRACELCP PPP_DEBUG
idinor 0:dcf3c92487ca 50
idinor 0:dcf3c92487ca 51 #if PPP_DEBUG
idinor 0:dcf3c92487ca 52
idinor 0:dcf3c92487ca 53 #define AUTHDEBUG(a, b) LWIP_DEBUGF(a, b)
idinor 0:dcf3c92487ca 54 #define IPCPDEBUG(a, b) LWIP_DEBUGF(a, b)
idinor 0:dcf3c92487ca 55 #define UPAPDEBUG(a, b) LWIP_DEBUGF(a, b)
idinor 0:dcf3c92487ca 56 #define LCPDEBUG(a, b) LWIP_DEBUGF(a, b)
idinor 0:dcf3c92487ca 57 #define FSMDEBUG(a, b) LWIP_DEBUGF(a, b)
idinor 0:dcf3c92487ca 58 #define CHAPDEBUG(a, b) LWIP_DEBUGF(a, b)
idinor 0:dcf3c92487ca 59 #define PPPDEBUG(a, b) LWIP_DEBUGF(a, b)
idinor 0:dcf3c92487ca 60
idinor 0:dcf3c92487ca 61 #else /* PPP_DEBUG */
idinor 0:dcf3c92487ca 62
idinor 0:dcf3c92487ca 63 #define AUTHDEBUG(a, b)
idinor 0:dcf3c92487ca 64 #define IPCPDEBUG(a, b)
idinor 0:dcf3c92487ca 65 #define UPAPDEBUG(a, b)
idinor 0:dcf3c92487ca 66 #define LCPDEBUG(a, b)
idinor 0:dcf3c92487ca 67 #define FSMDEBUG(a, b)
idinor 0:dcf3c92487ca 68 #define CHAPDEBUG(a, b)
idinor 0:dcf3c92487ca 69 #define PPPDEBUG(a, b)
idinor 0:dcf3c92487ca 70
idinor 0:dcf3c92487ca 71 #endif /* PPP_DEBUG */
idinor 0:dcf3c92487ca 72
idinor 0:dcf3c92487ca 73 #endif /* PPPDEBUG_H */