netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* ip6 route output() and ip_route_output_key() by drivers
@ 2010-06-30  7:24 Parav Pandit
  0 siblings, 0 replies; only message in thread
From: Parav Pandit @ 2010-06-30  7:24 UTC (permalink / raw)
  To: netdev

Hi,

Our device driver uses ip6 route output() and typecast the return value of dst_entry to rt6_info (similar to (net/ip6/icmp.c)

Driver uses (a) rt6i_dst.addr, (b) rt6i_dst.plen and (c) rt6i_gateway to get the route entry (ip/mask, gw, netdev).

Can anyone please confirm that drivers and/or netfilter kernel modules are allowed to use them? netdev drivers like : cnic.c, cxgb3, nes are using the ipv4 API (but not IPv6 API).

Also ip_route_output_key() rtable and dst_entry doesn't seem to provide route entry's subnet mask/prefix value. how drivers/netfilter kernel module can get a ip/mask gateway value while given a destination IP address as input?

I really appreciate your inputs. I hope I am asking it on the relevant mailing list.

Regards,
Parav Pandit


      

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2010-06-30  7:30 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-06-30  7:24 ip6 route output() and ip_route_output_key() by drivers Parav Pandit

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).