AW: [En-Nut-Discussion] Problem with connection to Ethernut
Oliver Schulz
olischulz at web.de
Sun Jan 25 13:08:37 CET 2004
Hi Bengan,
Just a short note.
There is one problem with your fix. If the ping comes via a router from WAN,
the ip address of the sending host is saved with the ethernet address of the
router, which doesn't make sense at all.
Cheers,
Oliver.
> -----Ursprüngliche Nachricht-----
> Von: en-nut-discussion-bounces at egnite.de
> [mailto:en-nut-discussion-bounces at egnite.de]Im Auftrag von
> Bengt Florin
> Gesendet: Donnerstag, 22. Januar 2004 12:24
> An: en-nut-discussion at egnite.de
> Betreff: [En-Nut-Discussion] Problem with connection to Ethernut
>
>
> Yes, I solved this by updating the ARP cache when receiving the pings.
>
> Snippet from ipin.c
> ...
> NutArpCacheUpdate(dev, ip->ip_src, ((ETHERHDR
> *)nb->nb_dl.vp)->ether_shost);
>
> switch (ip->ip_p) {
> ...
>
> Now Arp cahce will be updated with all talks IP to us.
> Don't know if this is by the book, but it solved some of my problems.
>
> Regards
> Bengan
>
> _______________________________________________
> En-Nut-Discussion mailing list
> En-Nut-Discussion at egnite.de
> http://www.egnite.de/mailman/listinfo.cgi/en-nut-discussion
More information about the En-Nut-Discussion
mailing list