* RE: IPv6 routing table implementation
@ 2002-07-02 11:57 Joerg Pommnitz
0 siblings, 0 replies; 2+ messages in thread
From: Joerg Pommnitz @ 2002-07-02 11:57 UTC (permalink / raw)
To: kernel
> The underlined lines will be creating a kernel panic ALWAYS.
What makes you think so? After all, the pointer is never dereferenced.
This is quite a common C trick (similiar to the offsetof macro).
Regards
Joerg
=====
--
Regards
Joerg
__________________________________________________________________
Gesendet von Yahoo! Mail - http://mail.yahoo.de
Yahoo! präsentiert als offizieller Sponsor das Fußball-Highlight des
Jahres: - http://www.FIFAworldcup.com
^ permalink raw reply [flat|nested] 2+ messages in thread
* IPv6 routing table implementation
@ 2002-07-02 10:54 Madhavi
0 siblings, 0 replies; 2+ messages in thread
From: Madhavi @ 2002-07-02 10:54 UTC (permalink / raw)
To: linux-kernel
Hi
While going through the routing table implementation for linux-ipv6, I
found this piece of code.
struct fib6_node * fib6_lookup(struct fib6_node *root, struct in6_addr
*daddr, struct in6_addr *saddr)
{
struct lookup_args args[2];
struct rt6_info *rt = NULL;
struct fib6_node *fn;
args[0].offset = (u8*) &rt->rt6i_dst - (u8*) rt;
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
args[0].addr = daddr;
#ifdef CONFIG_IPV6_SUBTREES
args[1].offset = (u8*) &rt->rt6i_src - (u8*) rt;
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
args[1].addr = saddr;
#endif
.
.
.
.
}
I found out that this code is called from inet6_route_input() which will
always be called on the receiving end for IPv6 packets (ip6_rcv_finish()).
The underlined lines will be creating a kernel panic ALWAYS.
I am using 2.4.16 kernel. I have checked version 2.4.18 also and no
change in this part. Aren't these versions supposed to include a working
IPv6 implementation? Am I missing something?
regards
Madhavi.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2002-07-02 11:55 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-07-02 11:57 IPv6 routing table implementation Joerg Pommnitz
-- strict thread matches above, loose matches on Subject: below --
2002-07-02 10:54 Madhavi
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®