I guess I should explain the ARP issue.

As I wrote the network files, I didn't understand ARP correctly. At
first, it seems that I only needed to arp the router to get it's mac
address. After I had the router's mac, I could send packets to
anywhere. This is not correct since you are supposed to ARP whoever
you are talking to (not just the router). I guess my router was
automatically updating the MAC field for me.

Proper usage (not shown in my files) is to do an ARP before sending a
new packet and before replying to a packet. This will get the correct
MAC of the destination.

Some of you may have trouble using my files due to this ARP issue. Try
doing ARP before sending a ping.

Here's an example arp:

network_set_remote_ip(192,168,0,102) -- ip address of destination
arp_get_mac(1_000)                   -- do ARP on destination ip,
timeout after 1 second

I will have to work this into ping/echo reply, in the ICMP lib. And of
course UDP and TCP.

Matt.

-- 
You received this message because you are subscribed to the Google Groups 
"jallib" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/jallib?hl=en.

Reply via email to