OK, another update about ARP. The PIC must know the mac address of
internal network PC's, but if the PC is outside, the PIC must just use
the gateway/router MAC.

const PING_LOCAL_NETWORK = TRUE          -- true = ping a local PC ...
false = ping google's ip
if PING_LOCAL_NETWORK == TRUE then
   network_set_remote_ip(192,168,0,119)  -- ip address of local
network PC
   arp_get_mac(1,1_000)                  -- get mac address of local
network PC
else
   network_set_remote_ip(192,168,0,1)    -- ip address of your gateway
   arp_get_mac(1,1_000)                  -- get mac address of gateway
   network_set_remote_ip(74,125,115,106) -- ping google's ip address
end if
icmp_send_echo()                         -- send ping

Maybe the user shouldn't have to deal with this however.

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