netdev
[Top] [All Lists]

How to get the IPv6 address of next hop towards destination?

To: <netdev@xxxxxxxxxxx>
Subject: How to get the IPv6 address of next hop towards destination?
From: "Zheng Jianping" <zjp@xxxxxxxxxxx>
Date: Fri, 29 Nov 2002 12:13:13 +0800
Cc: "Pedro Roque" <roque@xxxxxxxxxxx>, <kuznet@xxxxxxxxxxxxx>
Sender: netdev-bounce@xxxxxxxxxxx
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@xxxxxxxxxxx
Tel:     6255,5523



<Prev in Thread] Current Thread [Next in Thread>