Go to the source code of this file.
Defines | |
#define | MYMAC 0x00, 0x06, 0x98, 0x33, 0x44, 0x00 |
Default MAC. Used if EEPROM is empty. | |
#define | MYIP "192.168.192.100" |
Default local IP address. Used if EEPROM configuration and DHCP is unavailable. | |
#define | MYMASK "255.255.255.0" |
Default IP mask. Used if EEPROM configuration and DHCP is unavailable. | |
#define | MYGATE "192.168.192.1" |
Default gateway address. Used if EEPROM configuration and DHCP is unavailable. Only required if syslog or time server are located in a different network. | |
#define | MYUART DEV_DEBUG_NAME |
Device name used for UART output. | |
#define | MYDEV DEV_DEBUG |
Output device. | |
#define | MYBAUD 115200 |
UART baudrate. | |
#define | COMPILERNAME "GCC" |
#define | UART_OK 0x0001 |
#define | STDOUT_OK 0x0002 |
#define | STDERR_OK 0x0004 |
#define | BAUDRATE_OK 0x0008 |
#define | LANDEV_OK 0x0010 |
#define | NETIF_OK 0x0020 |
#define | NETROUTE_OK 0x0040 |
#define | TIMED_OK 0x0080 |
Functions | |
int | main (void) |
#define MYMAC 0x00, 0x06, 0x98, 0x33, 0x44, 0x00 |
#define MYIP "192.168.192.100" |
#define MYMASK "255.255.255.0" |
#define MYGATE "192.168.192.1" |
#define MYUART DEV_DEBUG_NAME |
int main | ( | void | ) |
Definition at line 118 of file snmpd.c.
References _fileno(), _ioctl(), BAUDRATE_OK, COMPILERNAME, DEV_ETHER, freopen(), inet_addr(), LANDEV_OK, MibRegisterIfVars(), MibRegisterSysVars(), MYBAUD, MYDEV, MYGATE, MYIP, MYMAC, MYMASK, MYUART, NETIF_OK, NETROUTE_OK, NutDhcpIfConfig(), NutIpRouteAdd(), NutNetIfConfig(), NutRegisterDevice(), NutSleep(), NutUdpCreateSocket(), NutUdpDestroySocket(), NutUdpSetSockOpt(), NutVersionString(), printf, puts, SNMP_MAX_MSG_SIZE, SNMP_OID_INTERNET, SNMP_PORT, SNMP_VIEW_INCLUDED, SnmpAgent(), SnmpCommunityCreate(), SnmpViewCreate(), SO_RCVBUF, stderr, STDERR_OK, stdout, STDOUT_OK, UART_OK, and UART_SETSPEED.