| Line No. | Rev | Author | Line |
|---|---|---|---|
| 1 | 32 | kaklik | /********************************************************************* |
| 2 | * |
||
| 3 | * Zero Confiruation (Zeroconf) IPV4 Link Local Addressing |
||
| 4 | * Module for Microchip TCP/IP Stack |
||
| 5 | * |
||
| 6 | ********************************************************************* |
||
| 7 | * FileName: ZeroconfLinkLocal.h |
||
| 8 | * Dependencies: IP, ARP |
||
| 9 | * Processor: PIC24F, PIC24H, dsPIC30F, dsPIC33F, PIC32 |
||
| 10 | * Compiler: Microchip C32 v1.05 or higher |
||
| 11 | * Microchip C30 v3.12 or higher |
||
| 12 | * Company: Microchip Technology, Inc. |
||
| 13 | * |
||
| 14 | * Software License Agreement |
||
| 15 | * |
||
| 16 | * Copyright (C) 2009-2010 Microchip Technology Inc. All rights |
||
| 17 | * reserved. |
||
| 18 | * |
||
| 19 | * Microchip licenses to you the right to use, modify, copy, and |
||
| 20 | * distribute: |
||
| 21 | * (i) the Software when embedded on a Microchip microcontroller or |
||
| 22 | * digital signal controller product ("Device") which is |
||
| 23 | * integrated into Licensee's product; or |
||
| 24 | * (ii) ONLY the Software driver source files ENC28J60.c, ENC28J60.h, |
||
| 25 | * ENCX24J600.c and ENCX24J600.h ported to a non-Microchip device |
||
| 26 | * used in conjunction with a Microchip ethernet controller for |
||
| 27 | * the sole purpose of interfacing with the ethernet controller. |
||
| 28 | * |
||
| 29 | * You should refer to the license agreement accompanying this |
||
| 30 | * Software for additional information regarding your rights and |
||
| 31 | * obligations. |
||
| 32 | * |
||
| 33 | * THE SOFTWARE AND DOCUMENTATION ARE PROVIDED "AS IS" WITHOUT |
||
| 34 | * WARRANTY OF ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT |
||
| 35 | * LIMITATION, ANY WARRANTY OF MERCHANTABILITY, FITNESS FOR A |
||
| 36 | * PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT. IN NO EVENT SHALL |
||
| 37 | * MICROCHIP BE LIABLE FOR ANY INCIDENTAL, SPECIAL, INDIRECT OR |
||
| 38 | * CONSEQUENTIAL DAMAGES, LOST PROFITS OR LOST DATA, COST OF |
||
| 39 | * PROCUREMENT OF SUBSTITUTE GOODS, TECHNOLOGY OR SERVICES, ANY CLAIMS |
||
| 40 | * BY THIRD PARTIES (INCLUDING BUT NOT LIMITED TO ANY DEFENSE |
||
| 41 | * THEREOF), ANY CLAIMS FOR INDEMNITY OR CONTRIBUTION, OR OTHER |
||
| 42 | * SIMILAR COSTS, WHETHER ASSERTED ON THE BASIS OF CONTRACT, TORT |
||
| 43 | * (INCLUDING NEGLIGENCE), BREACH OF WARRANTY, OR OTHERWISE. |
||
| 44 | * |
||
| 45 | * |
||
| 46 | * Author Date Comment |
||
| 47 | *~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
||
| 48 | * Pradeep Reddy 01 Mar 2009 Initial |
||
| 49 | * Brad Rex 05 Apr 2010 Updated for MRF24WB0M. |
||
| 50 | ********************************************************************/ |
||
| 51 | #ifndef __ZEROCONF_LINK_LOCAL_H |
||
| 52 | #define __ZEROCONF_LINK_LOCAL_H |
||
| 53 | |||
| 54 | #define ZEROCONF_LINK_LOCAL_DHCP_TIMEOUT 5 // Time for which ZCLL allows DHCP to get IP |
||
| 55 | |||
| 56 | // define the debugging levels |
||
| 57 | #include "TCPIP Stack/ZeroconfHelper.h" |
||
| 58 | |||
| 59 | // For verbose debugging |
||
| 60 | #ifdef DEBUG_ZCLL |
||
| 61 | #define DEBUG_ZCLL_PRINT(x) debug_zcll_print(x) |
||
| 62 | #define DEBUG_ZCLL_MESG sprintf |
||
| 63 | #else |
||
| 64 | #define DEBUG_ZCLL_PRINT(x) |
||
| 65 | #define DEBUG_ZCLL_MESG(x,y...) |
||
| 66 | #endif |
||
| 67 | |||
| 68 | // For less verbose debugging |
||
| 69 | #ifdef INFO_ZCLL |
||
| 70 | #define INFO_ZCLL_PRINT(x) info_zcll_print(x) |
||
| 71 | #define INFO_ZCLL_MESG sprintf |
||
| 72 | #else |
||
| 73 | #define INFO_ZCLL_PRINT(x) |
||
| 74 | #define INFO_ZCLL_MESG(x,y...) |
||
| 75 | #endif |
||
| 76 | |||
| 77 | // For warnings, errors, and other exceptions |
||
| 78 | #ifdef WARN_ZCLL |
||
| 79 | #define WARN_ZCLL_PRINT(x) putsUART(x) |
||
| 80 | #define WARN_ZCLL_MESG sprintf |
||
| 81 | #else |
||
| 82 | #define WARN_ZCLL_PRINT(x) |
||
| 83 | #define WARN_ZCLL_MESG(x,y...) |
||
| 84 | #endif |
||
| 85 | |||
| 86 | // Always print |
||
| 87 | #define ZCLL_PRINT(x) putsUART(x) |
||
| 88 | #define ZCLL_MESG sprintf |
||
| 89 | |||
| 90 | #define DEBUG0_ZCLL_PRINT DEBUG_ZCLL_PRINT |
||
| 91 | #define DEBUG0_ZCLL_MESG DEBUG_ZCLL_MESG |
||
| 92 | |||
| 93 | void ZeroconfLLInitialize(void); |
||
| 94 | void ZeroconfLLProcess(void); |
||
| 95 | |||
| 96 | #endif //#ifndef __ZEROCONF_LINK_LOCAL_H |
Powered by WebSVN v2.8.3