> ire_ftable_lookup -> rn_match_args passes 'margs' which contains the
Sorry, I tried this and ran into problems. I was also under the same
mistaken impression as you at first but,
when you have a 10.1.2.0/32 route and also a /24 and a /26 route, it
may get split up into
bit 32 == 0?
y / \ n
V V
/32 route /26 route
/24 route
In this case, when you do a search for 10.1.2.1, you want to take the
right branch; further, for solaris, we want to search through all
the duped_key nodes to find the "best" match (not the longest match.
By itself, since no netmask is passed in, the rn_match function does
not try to look inside the duped_key list, but instead will just match
the key (10.1.2.0) on the topmost rn in the duped_key list. It is up
to the ire_find_best_route function to look for any other match parameters.
--Sowmini
_______________________________________________
networking-discuss mailing list
[email protected]