Lorcan Smith
/
Enet_SPI
SNMP agent attached to SPI slave
Diff: lwip/include/lwip/snmp_msg.h
- Revision:
- 2:25e12a7fe0aa
- Parent:
- 1:bbae6f16a449
--- a/lwip/include/lwip/snmp_msg.h Mon Sep 03 10:46:04 2012 +0000 +++ b/lwip/include/lwip/snmp_msg.h Thu Sep 06 12:52:48 2012 +0000 @@ -1,9 +1,9 @@ /***************************************************************************** -* Copyright Field Electronics Ltd +* Copyright SEEC Ltd * File: snmp_msg.H -* Reference: 3000-A3600-HDR-snmp_msg +* Reference: A3600-HDR-snmp_msg * Content: Header file for SNMP messages -* Version: 0.9 +* Version: 0.6 * System: mbed gnu compiler * Target Hardware: mbed LPC1768 * Amendment Record: @@ -21,12 +21,6 @@ Declare f3kIOchange_trap(), snmp_SPIdown_trap(), snmp_SPIup_trap(), convert2decimal() * 0.6 20/06/12: L. Smith #define enterprise specific traps: SNMP_SPCTRAP_IO_CHANGE, SNMP_SPCTRAP_SPI_DOWN -* 0.7 26/07/12: L. Smith - Decrease snmp_publiccommunity[21] to [16] and allow this to be set from file -* 0.8 03/08/12: L. Smith - #define enterprise specific SNMP_SPCTRAP_IO_ALARM. Declare f3kIOalarm_trap() -* 0.9 03/08/12: L. Smith - Change convert2decimal() declaration to return unsigned long *******************************************************************************/ /** * @file @@ -119,7 +113,6 @@ #define SNMP_SPCTRAP_IO_CHANGE 101 // v0.6: Enterprise specific traps #define SNMP_SPCTRAP_SPI_DOWN 102 #define SNMP_SPCTRAP_SPI_UP 103 -#define SNMP_SPCTRAP_IO_ALARM 104 // v0.8: Alarm traps struct snmp_varbind { @@ -330,9 +323,8 @@ extern const s32_t snmp_version; /** Agent default "public" community string extern const char snmp_publiccommunity[7]; v0.2 */ -#define MIN_COMMUNITY 4 // v0.7: max size of community string including \0 -#define MAX_COMMUNITY 16 // v0.7: max size of community string including \0 -extern char snmp_publiccommunity[MAX_COMMUNITY]; // v0.2: Allow changes up to 15 characters +#define MAX_COMMUNITY 21 // v0.2: max size of community string including \0 +extern char snmp_publiccommunity[MAX_COMMUNITY]; // v0.2: Allow changes up to 20 characters extern struct snmp_msg_trap trap_msg; @@ -360,9 +352,8 @@ void f3kIOchange_trap( void ); void snmp_SPIdown_trap( void ); void snmp_SPIup_trap( void ); -void f3kIOalarm_trap( void ); // v0.8: declare here for use in main -unsigned long convert2decimal( u8_t * uc_ptr, u16_t len ); +void convert2decimal( u8_t * uc_ptr, u16_t len ); #ifdef __cplusplus