![]() |
|
Problems? Is your data what you think it is? | |
PerlMonks |
Turning a RIB into a FIB (an example of a recursive IP lookup)by !unlike (Beadle) |
on Jan 22, 2003 at 10:56 UTC ( #228987=perlmeditation: print w/replies, xml ) | Need Help?? |
I work for an ISP in the UK. I have recently been given a task that requires a Perl script to do one of the tasks of a router. That is turn a routing table (RIB) into a forwarding table (FIB). I *could* use a router to do this task, but for various reasons that I won't go into here, it is "better" that I do this within a Perl script. I was amazed, neigh, astounded that there is not already an example of how to do this. Either that or my searches have not been thorough enough. If there are already examples then please enlighten me. Either way here's an example of how to do this. Thoughts/comments welcome on all aspects of the code, particularly the lookup sub:
If people think this is useful I'm happy to write a tutorial. !unlike "The price if ignorance, which is of course that you must learn from those who know." Scorates (paraphrased)
Back to
Meditations
|
|