excamera, what I'm hacking on, daily.

jamesb@excamera.com


       
Fri, 04 Jul 2003

Read a packet: ARP time
Set up the registers and - magic magic - in came a packet. It was an ARP request. I can make an ARP request go out on the network by doing this:

arp -d 192.168.0.199 ; ping 192.168.0.199
and the board picks it up. Now I just need to make it reply. OK, done that:
# arp 192.168.0.199
? (192.168.0.199) at 12:34:56:78:9a:bc on xl0 [ethernet]

... that wasn't too hard. Currently using 477 program words out of 1000. Hmm, wonder how big IP and ICMP will be.

IP and ICMP took about another 130 words:

64 bytes from 192.168.0.199: icmp_seq=146 ttl=64 time=141.437 ms
64 bytes from 192.168.0.199: icmp_seq=147 ttl=64 time=141.139 ms
64 bytes from 192.168.0.199: icmp_seq=148 ttl=64 time=141.061 ms
64 bytes from 192.168.0.199: icmp_seq=149 ttl=64 time=140.902 ms

*