#define _PRIMARY_STATIC_IP “192.168.0.111”
#define _PRIMARY_NETMASK “255.255.255.0”
#ifndef MY_NAMESERVER
#define MY_NAMESERVER “192.168.0.1”
#endif
#ifndef MY_GATEWAY
#define MY_GATEWAY “192.168.0.1”
#endif
#if TCPCONFIG == 1
// Configuration 1: Simple static configuration of single Ethernet interface.
#define USE_ETHERNET 1
#define IFCONFIG_ETH0 \
IFS_IPADDR,aton(_PRIMARY_STATIC_IP), \
IFS_NETMASK,aton(_PRIMARY_NETMASK), \
IFS_UP
#endif
Listing 1—This is an optional
step, but it sure makes life easy when you’re debugging. I opted not to use DHCP
because I wanted to be able to easily identify the Wi-Fi application kit’s wireless
NIC on the wireless sniffer.