File nut/app/icmp-udp/icmp-udp.c


Included Files


Preprocessor definitions

#define MY_MAC

#define MY_IP "192.168.1.100"

#define MY_MASK "255.255.255.0"

#define MY_GATE "192.168.1.254"

#define UDP_ECHO_IP "192.168.1.103"

#define UDP_ECHO_PORT 7

#define UDP_BUFF_SIZE 256


Local Variables

send_buffer
static char send_buffer[256]
Used in: NutAppMain()  

rcv_buffer
static char rcv_buffer[256]

Used in: UDPReceiver()  

my_mac
static uint8_t my_mac[]

Used in: NutAppMain()  

Global Function NutAppMain()

int NutAppMain ( void )
Calls: NutIpRouteAdd(), NutNetIfConfig(), NutRegisterDevice(), NutSleep(), NutThreadCreate(), NutUdpCreateSocket(), NutUdpSendTo(), NutUdpSetSockOpt(), _fileno(), _ioctl(), freopen(), inet_addr(), inet_ntoa(), printf(), puts(), sprintf()
References Functions: UDPReceiver() nut/app/icmp-udp/icmp-udp.c
References Variables: my_mac nut/app/icmp-udp/icmp-udp.c
  send_buffer nut/app/icmp-udp/icmp-udp.c

Global Function UDPReceiver()

void UDPReceiver ( void* arg )
Prototyped in: nut/app/icmp-udp/icmp-udp.c
Calls: NutUdpReceiveFrom(), printf()
Used in: NutAppMain() nut/app/icmp-udp/icmp-udp.c
References Variables: rcv_buffer nut/app/icmp-udp/icmp-udp.c

Global Function print_udp_icmp_error()

void print_udp_icmp_error ( uint32_t remote_ip, uint16_t remote_port, int error )
Calls: inet_ntoa(), printf()