Yao Zhao(deleted)
|
Re: io-pkt and route cache?
|
Yao Zhao(deleted)
09/16/2008 9:46 AM
post13468
|
Re: io-pkt and route cache?
I will first agree with Jeevan.
Could you show your routing table and your arp table first when you can not reach your gateway?
And please show your routing table and arp table when you can reach your gateway.
take a look at what nestat shows will help too, for example: icmp layer, ip layer.
In all stacks they all have routing cache, in your case you are sending out so in its inpcb it will keep a route cache
too then it doesn't need to lookup routing table everytime but hard to tell where is wrong.
In Linux you can show routing cache too but for bsd I didn't find it yet.
If I were you I will use a hub and tcpdump to monitor whether the icmp packets is out or not and whether the dest mac is
right too, then we can know whether stack is wrong.
|
|
|
Santosh Kumar
|
Re: io-pkt and route cache?
|
Santosh Kumar
09/16/2008 11:40 PM
post13533
|
Re: io-pkt and route cache?
Hi Jeevan,
This doesnt work.
-Santosh
> > Hi,
> >
> > We implemented some API's to Add/delete and flush routes. The code is based
>
> > along the same lines as route application. But Im seeing a strange behavior.
>
> > When our system comes up, it programmatically configures an ethernet
> interface
> > using ioctl calls followed by adding a default route. The routing table
> > reflects the right setting. So far so good. However if I try to ping the
> > gateway, it doesnt work.
> >
> > If I then delete the route using route delete command and then add the same
>
> > route back, things start working.
> >
> > Is there some sort of a route cache that needs to be flushed before we begin
>
> > adding/removing entries from the routing table?
> >
> > Help please!
> >
> > Thanks,
> > Santosh
>
> Santosh,
>
> As a shot into the dark from my side:
> Try flushig ARP cache
>
> arp -d -a
>
> Hope this helps.
> Jeevan
>
>
>
|
|
|