Netdev List
 help / color / mirror / Atom feed
* How to get the IPv6 address of next hop  towards destination?
@ 2002-11-29  4:13 Zheng Jianping
  2002-11-29  4:16 ` YOSHIFUJI Hideaki / 吉藤英明
  0 siblings, 1 reply; 3+ messages in thread
From: Zheng Jianping @ 2002-11-29  4:13 UTC (permalink / raw)
  To: netdev; +Cc: Pedro Roque, kuznet

Hi,

I'm modifying the Linux kernel (2.4.7.10) to support IPv6 multicast
forwarding. As required by IPv6 multicast routing protocol, the IPv6 address
of next hop towards destination is needed. So how can I get this
information?

Calling  struct dst_entry * ip6_route_output(struct sock *sk, struct flowi
*fl)
can get dst_entry which has a member
    struct neighbour *neighbour;
But I don't know which member in 'struct neighbor' stores the IPv6 address.
It seems  that
  u8   primary_key[0];
is responsible for it.

Is it right?

Thanks,
Zheng Jianping

----------------------------------------------------------------------------
---------------------------
Multimedia Communication & Network Engneering Research Center
Institue of Software, Chiese Academy of Sciences

Email: zjp@iscas.ac.cn
Tel:     6255,5523

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

end of thread, other threads:[~2002-12-12  2:11 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-11-29  4:13 How to get the IPv6 address of next hop towards destination? Zheng Jianping
2002-11-29  4:16 ` YOSHIFUJI Hideaki / 吉藤英明
2002-12-12  2:11   ` Zheng Jianping

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox