* how ipv6 support multicast routing
@ 2002-11-07 6:21 Zheng Jianping
2002-11-07 6:45 ` Pekka Savola
0 siblings, 1 reply; 3+ messages in thread
From: Zheng Jianping @ 2002-11-07 6:21 UTC (permalink / raw
To: netdev
Hi,
We are developing IPv6 multicast routing protocol --PIM-SM. To support IPv6 multicast packet forwarding, Linux kernel need to be modified. I am coding the file 'ip6_mroute.c' which is derived from 'ipmr.c' in ipv4.
My question is how to modify the IPv6 code in the kernl to make 'ip6_mroute.c' works, i.e how to modify the files such as 'ip6/ip6_ouput.c', 'ip6/route.c' , etc.
I try to refrence to IPv4 code but it seems that the routing mechanism of IPv6 is something different from IPv4. So I get confused.
Could you give me some suggestion?
Thanks in advance!
Best Regards,
Zheng
[[HTML alternate version deleted]]
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: how ipv6 support multicast routing
2002-11-07 6:21 how ipv6 support multicast routing Zheng Jianping
@ 2002-11-07 6:45 ` Pekka Savola
2002-11-07 7:34 ` Zheng Jianping
0 siblings, 1 reply; 3+ messages in thread
From: Pekka Savola @ 2002-11-07 6:45 UTC (permalink / raw
To: Zheng Jianping; +Cc: netdev
On Thu, 7 Nov 2002, Zheng Jianping wrote:
> We are developing IPv6 multicast routing protocol --PIM-SM. To support IPv6 multicast packet forwarding, Linux kernel need to be modified. I am coding the file 'ip6_mroute.c' which is derived from 'ipmr.c' in ipv4.
>
> My question is how to modify the IPv6 code in the kernl to make 'ip6_mroute.c' works, i.e how to modify the files such as 'ip6/ip6_ouput.c', 'ip6/route.c' , etc.
>
> I try to refrence to IPv4 code but it seems that the routing mechanism of IPv6 is something different from IPv4. So I get confused.
have you looked at ip6_input.c/ip6_output.c already? There's an
(obsolete) ip6_mc_input function there, perhaps it might get you started.
I recall usagi have made some minor modifications to it too, but I doubt
it works.
(I'd like to see PIM-SM work myself too.)
--
Pekka Savola "Tell me of difficulties surmounted,
Netcore Oy not those you stumble over and fall"
Systems. Networks. Security. -- Robert Jordan: A Crown of Swords
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: how ipv6 support multicast routing
2002-11-07 6:45 ` Pekka Savola
@ 2002-11-07 7:34 ` Zheng Jianping
0 siblings, 0 replies; 3+ messages in thread
From: Zheng Jianping @ 2002-11-07 7:34 UTC (permalink / raw
To: Pekka Savola; +Cc: netdev
----- Original Message -----
From: "Pekka Savola" <pekkas@netcore.fi>
To: "Zheng Jianping" <zjp@iscas.ac.cn>
Cc: <netdev@oss.sgi.com>
Sent: Thursday, November 07, 2002 2:45 PM
Subject: Re: how ipv6 support multicast routing
> have you looked at ip6_input.c/ip6_output.c already? There's an
> (obsolete) ip6_mc_input function there, perhaps it might get you started.
> I recall usagi have made some minor modifications to it too, but I doubt
> it works.
Yes, I've looked at these files and did find ip6_mc_input function.
I add the following code to ip6_mc_input
#ifdef (CONFIG_IP6_MROUTE)
int addr_type;
addr_type = ipv6_addr_type(&hdr->daddr);
if (!(addr_type & (IPV6_ADDR_LOOPBACK | IPV6_ADDR_LINKLOCAL))) {
ip6_mr_input(skb); /*defined in my 'ip6_mroute.c'*/
}
#endif
But I don't knwo how to modify the functions in net/ip6/route.c, such as
ip6_route_input
ip6_route_output
and the funciton in net/ip6/ip6_output.c
ip6_output
> (I'd like to see PIM-SM work myself too.)
Is there somebody else doing the work of IPv6 multicast forwarding in Linux?
Thanks,
Zheng
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2002-11-07 7:34 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-11-07 6:21 how ipv6 support multicast routing Zheng Jianping
2002-11-07 6:45 ` Pekka Savola
2002-11-07 7:34 ` Zheng Jianping
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.