Changing Routing Table

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

 



Hi All,
We are doing a project for which we want that now the
routing dicisions must be based, not only on existing
entries but
also on one more extra entry (of int type) in routing.
For that I  need to change the 
contents of routing table by adding one more field in
it i.e I want to add one more extra 
field into the existing datastructure which is used to
hold present routing information.
For this I want to know :

1. Where (in which file)can I find the required
datastructure??
2. Is there any proper/ related documentation related
to kernel's network (routing) 
programing.
3. I've read  that routing related information is in
dir/usr/src/linux/net/ipv4/ but I'm not
able to figure out which files are actually
responsible for the routing decicions (I think 
maybe they are fib_*.c file), If there are any othe
please let me know.
4. SUppose In file fib_frontend.c I change line 120
sprintf(buffer, "%-127s\n",
"Iface\tDestination\tGateway
\tFlags\tRefCnt\tUse\tMetric\tMask\t\tMTU\tWindow\tIRTT");
      to (I add "Myfield" to it)
sprintf(buffer, "%-127s\n",
"Iface\tDestination\tGateway
\tFlags\tRefCnt\tUse\tMetric\tMask\t\tMTU\tWindow\tIRTT\tMyField");
now even if I make whole kernel again I'm not able to
see any changes in /proc/net/route or
/proc/net/rt_cache files
Kindly tell me hte way to reflect these changes???

Thanks in advance,
Regards,Kanwar.



__________________________________________________
Do You Yahoo!?
Send FREE video emails in Yahoo! Mail!
http://promo.yahoo.com/videomail/
--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive:       http://mail.nl.linux.org/kernelnewbies/
IRC Channel:   irc.openprojects.net / #kernelnewbies
Web Page:      http://www.kernelnewbies.org/


[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