On 08/05/09 14:15, Peter Memishian wrote:
>  > We have made /sbin/ndd to use libipadm.so for following modules ip, tcp, 
>  > udp and sctp. With this we could get rid of ND_SET/ND_GET/nd_load, et al 
>  > for these modules and both ndd and ipadm would be working on same copy 
>  > of the property in the kernel.
> 
> So this will also include changes to opensource software like Quagga that
> directly use the ND_GET and ND_SET ioctls?  (They're not documented, but
> they are well-known.)  Will we have a stable C API to replace those calls
> with?  (For Quagga, it may be sufficient to change the code to use
> IFF_ROUTER, though note that IFF_ROUTER corresponds to ip_forwarding:<if>,
> not ip_forwarding.)
> 

Good point.

I looked at the quagga code available @

http://src.opensolaris.org/source/xref/sfw/usr/src/cmd/quagga/quagga-0.99.8/zebra/ipforward_solaris.c

They are using ND_GET and ND_SET ioctls directly to set global 
ip_forwarding parameter. We can change that code to use ipadm_set_prop() 
and ipadm_get_prop() API's made available through libipadm.so.

I searched under 'sfw' directory for any other usage of ND_GET and 
ND_SET, other than quagga, nobody else is using it.

~Girish

Reply via email to