Re: Couple of Lisp hacks

Luke Gorrie <[email protected]>
Newsgroups gmane.lisp.clump
Message-ID <[email protected]>
Luke Gorrie <[email protected]> writes:

> One's a TCP/IP network stack built on Ethernet (Linux 'tap' devices).
> It has minimal implementations of ARP, IP, ICMP, and TCP. It can
> answer pings, and go through the motions of establishing TCP
> connections and reading/buffering/acknowledging data. The URL is
> http://sf.net/projects/slitch/

The nice thing about formus like this is they prod you into actually
doing stuff, so that you can show it off. :-)

This weekend I hacked some new features into Slitch: the concept of
network "interfaces", IP routing, and some netstat-like diagnostic
functions. The fun part is routing, because now Slitch can talk to the
internet via its host.

I prepared a fun little screenshot:

  * (netstat)
  lisp0  UP    Type:TAP  HWaddr 00:FF:C5:50:B6:E4
         Inet addr:192.168.43.10/255.255.255.0  Bcast:192.168.43.255
         RX bytes:3433868 (3.4MiB)  TX bytes:3418024 (3.4MiB)>

  lisp1  DOWN  Type:TAP  HWaddr 00:FF:6B:5D:36:60
         Inet addr:0.0.0.0/0.0.0.0  Bcast:0.0.0.0
         RX bytes:0 (0 b)  TX bytes:0 (0 b)>

  * (show-tcp-connections)
  #<TCP Stream 192.168.43.10:23 / 192.168.128.27:35614>: ESTABLISHED
  #<TCP Stream 192.168.43.10:80 / 192.168.43.1:34142>: ESTABLISHED

  * (routes)
  Destination      Gateway          Netmask          Interface
  192.168.128.43   0.0.0.0          255.255.255.255  lisp0
  192.168.43.0     0.0.0.0          255.255.255.0    lisp0
  192.168.128.0    192.168.43.1     255.255.255.0    lisp0

Happy hacking,
Luke
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.