Hi Has any one of you tried writing an application using sysctl which enables/disables the ip forwarding feature. I am trying to set the /proc/sys/net/ipv4/ip_forward proc variable for enabling or disabling the ip forwarding mechanism. I am using the following sysctl array name: [CTL_NET, NET_IPV4, NET_IPV4_FORWARD] But when i issue the sysctl call it gives me the error = -1 ENOTDIR (Not a directory) Is there anything wrong with this array name ?. How Should i decode the IP variables in the proc structure. Is using the sysctl more efficient than directly writing to /proc/sys/net/ipv4/ip_forward regards, Srinivas __________________________________________________ Do you Yahoo!? Yahoo! Web Hosting - Let the expert host your site http://webhosting.yahoo.com -- Kernelnewbies: Help each other learn about the Linux kernel. Archive: http://mail.nl.linux.org/kernelnewbies/ FAQ: http://kernelnewbies.org/faq/