Re: Kernel Data structure for Routing Table

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Sat, 2004-09-11 at 11:31, bunty wrote:
>   hello,
>      I want to know is there any way to know that whether a Pc is acting as a Router that is /proc/net/ipv4/ip_forward is set to 0 or 1?
> which structre should i use and is it possible via kernel module?
>      that mean i want to write a kernel module to check whether my PC is IP packet forwarder or not?
> 

look at ipv4_devconf.forwarding in net/ipv4/devinet.c

-Patrick


--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive:       http://mail.nl.linux.org/kernelnewbies/
FAQ:           http://kernelnewbies.org/faq/


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux