Skip to content

RTEMS/rtems-net-legacy-demos

Repository files navigation

RTEMS Network Legacy Demos

This directory contains a set of network tests and demonstrations programs.

Directory Description
netdemo simplest test, echos data on sockets
dnstest test of DNS client
http test of GoAhead web server
netlink link only test to evaluate code space requirement of network stack, ftpd, and httpd
ntp test of network time protocol client
rpc_demo test of RPC library
select test of select() routine functionality
tftpTest test of TFTP (Trivial FTP) client filesystem
ttcp TTCP throughput test

The file networkconfig.h MUST be configured to reflect your local network according to the included Configuration Notes.

Configuration Notes

  1. Make sure you change the definition of MY_ETHERNET_ADDRESS in networkconfig.h before you try to use any of the network demonstration programs.

  2. If you do not use BOOTP (i.e. the #define USE_BOOTP 1 in init.c is removed), make sure you change the definition of MY_INTERNET_ADDRESS before you try to use the programs.

FAILURE TO FOLLOW THE ABOVE INSTRUCTIONS MAY PROVOKE YOUR NETWORK ADMINISTRATOR TO THE POINT WHERE VICIOUS ATTACKS WILL BE MADE UPON YOU.

Debugging Hints

For debugging, I'd suggest breakpoints in the socket receive and transmit
tasks to trace where you're running. Also, if you have a LANalyzer or
workstation with snoop capability set it up to show all packets to/from the
hardware (Ethernet) address of your target machine.

TCPDump

On Linux, you can use the tcpdump utility to examine packets. Something like this:

tcpdump -i eth0

tcpdump can filter packets. See the man page for details.

Status

This set of tests is intended to demonstrate the capabilities of the RTEMS port of the FreeBSD TCP/IP stack. In addition, these tests can be used to test a network device driver.