lwip/proj/unixsim
2002-11-03 13:02:35 +00:00
..
apps Added a 404 error page. 2002-11-03 13:02:35 +00:00
lwipopts.h Initial revision 2002-10-19 12:59:30 +00:00
Makefile Rewrote the COREFILES to reflect the changes from tcp_input.c and tcp_output.c to tcp_in.c and tcp_out.c. Removed simrouter and simnode from the all: target. 2002-10-24 12:44:27 +00:00
README Initial revision 2002-10-19 12:59:30 +00:00
simhost.c Initial revision 2002-10-19 12:59:30 +00:00
simnode.c Removed #inclusion of "netif/sioslipif.h" since the file has been removed and split into two, "netif/sio.h" and "netif/slipif.h". 2002-10-24 12:45:27 +00:00
simrouter.c Removed #inclusion of "netif/sioslipif.h" since the file has been removed and split into two, "netif/sio.h" and "netif/slipif.h". 2002-10-24 12:45:27 +00:00

This directory contains an example of how a project using lwIP might
look. It is also the development platform of lwIP, since it can be run
as a user process under FreeBSD or Linux. There are also a number of
example applications (including a simple web server) in the apps/
directory.

Some short instructions on how to build and run lwIP on a FreeBSD or
Linux host. For FreeBSD, the tap interface must be enabled in the
kernel configuration and the kernel must be recompiled. The tap
interface is enabled by adding the line "pseudo-device tap" in the
kernel configuration. See Chapter 9 in the FreeBSD handbook for
instructions on how to build a custom FreeBSD kernel.

* Compile the code. This must be done by using GNU Make. Under
  FreeBSD, GNU Make can be found in the ports collection under
  /usr/ports/devel/gmake (type "make install distclean" to
  install). Under Linux, GNU Make is the default "make".

  > gmake         (FreeBSD)

  > make          (Linux)

* The compilation process produces the executable file "simhost". To
  run this, you have to be root.

  > su            (Type password for the root account)
  # ./simhost

* The lwIP TCP/IP stack is now running with IP address
  192.168.0.2. Some things that you can try:

  To see the packets that are going to and from the lwIP stack, run
  tcpdump:

  # tcpdump -l -n -i tap0

  You can ping lwIP:

  > ping 192.168.0.2

  For a telnet shell, run:

  > telnet 192.168.0.2
  
  Finally, "simhost" also includes a simple web server; the URL is
  of course http://192.168.0.2/.