Skip to contentSkip to conversation

Question about Linux routing - ip_route_output_key vs fib_lookup

DISCUSSION Megh Bhatt 2 participants 2 messages Feb 15, 2005 – Feb 16, 2005 netfilter

lore
Share & tools
lore

Megh Bhatt

author
#0 lore raw

Hi,
I had a question about Linux routing functions, suppose I want to find out what interface does a route to an IP address belong to - is it better (in terms of performance) to use ip_route_output_key or fib_lookup. My initial guess from looking at the source code is fib_lookup since the routing cache wont be helpful since I wont have any interface information (rather want to find out interface information) but wanted to be sure. Thanks.

Megh Bhatt

#1 lore raw
Quoted 3 lines · Megh Bhatt

Hi,
I had a question about Linux routing functions, suppose I want to find out what interface does a route to an IP address belong to - is it

please direct this question to the [email protected] or [email protected] lists.

Signature · 5 lines
- Harald Welte <[email protected]>             http://www.netfilter.org/
============================================================================
  "Fragmentation is like classful addressing -- an interesting early
   architectural error that shows how much experimentation was going
   on while IP was being designed."                    -- Paul Vixie