netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Re : Re : Bug in using inet_lookup ()
@ 2007-11-14 16:47 Nj A
  2007-11-15 10:12 ` Evgeniy Polyakov
  0 siblings, 1 reply; 2+ messages in thread
From: Nj A @ 2007-11-14 16:47 UTC (permalink / raw)
  To: Evgeniy Polyakov; +Cc: netdev

By setting the ID of the ingress device to the inet_lookup() to 0, the machine reboots automatically.
Setting proc/sys/kernel/panic* to non zero values dosn't help more..

Cheers,

----- Message d'origine ----
> De : Evgeniy Polyakov <johnpol@2ka.mipt.ru>
> À : Nj A <nj_a83@yahoo.fr>
> Cc : netdev@vger.kernel.org
> Envoyé le : Mercredi, 14 Novembre 2007, 14h31mn 18s
> Objet : Re: Re : Bug in using inet_lookup ()
> 
> On Wed, Nov 14, 2007 at 01:12:11PM +0000, Nj A (nj_a83@yahoo.fr) wrote:
> > I suspected it could be that. However, can't see in ip_rcv the right portion
> that can help.
> > Any further tip please?
> 
> It is ip_rcv_finish() called from ip_rcv():
> if (skb->dst == NULL) {
> int err = ip_route_input(skb, iph->daddr, iph->saddr, iph->tos,
> skb->dev);
> if (unlikely(err)) {
> if (err == -EHOSTUNREACH)
> IP_INC_STATS_BH(IPSTATS_MIB_INADDRERRORS);
> else if (err == -ENETUNREACH)
> IP_INC_STATS_BH(IPSTATS_MIB_INNOROUTES);
> goto drop;
> }
> }
> 
> So you will have to specify device, you got your skb via.
> Actually it is not exactly needed in some cases, you will need interface
> index (dev->ifindex). You can find socket by using that number instead
> of dereferencing dst.
> 
> -- 
> Evgeniy
> Polyakov
>


      _____________________________________________________________________________ 
Ne gardez plus qu'une seule adresse mail ! Copiez vos mails vers Yahoo! Mail 

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Re : Re : Bug in using inet_lookup ()
  2007-11-14 16:47 Re : Re : Bug in using inet_lookup () Nj A
@ 2007-11-15 10:12 ` Evgeniy Polyakov
  0 siblings, 0 replies; 2+ messages in thread
From: Evgeniy Polyakov @ 2007-11-15 10:12 UTC (permalink / raw)
  To: Nj A; +Cc: netdev

On Wed, Nov 14, 2007 at 04:47:22PM +0000, Nj A (nj_a83@yahoo.fr) wrote:
> By setting the ID of the ingress device to the inet_lookup() to 0, the machine reboots automatically.
> Setting proc/sys/kernel/panic* to non zero values dosn't help more..

Sorry, I did not understand?
You mean after you provide zero to inet_lookup() instead of device id it
strted to reboot?

-- 
	Evgeniy Polyakov

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2007-11-15 10:12 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-11-14 16:47 Re : Re : Bug in using inet_lookup () Nj A
2007-11-15 10:12 ` Evgeniy Polyakov

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).