Title: oroute_uncache_nw()


oroute_uncache_nw(dest, netmask) eliminates from the output route cache (i.e., oroute_hash_table[][]) any routes for destinations that are in the network defined by the dest/netmask pair.

For example, if the following destinations appear in the output route cache:

192.30.1.1
192.30.2.1

and the dest/netmask pair is 192.30.3.1/255.255.0.0, then the routes for both destinations will be removed from the output route cache.

(192.30.1.1 ^ 192.30.3.1) & 255.255.0.0
= (0.0.2.0) & 255.255.0.0
= 0

(192.30.2.1 ^ 192.30.3.1) & 255.255.0.0
= (0.0.1.0) & 255.255.0.0
= 0

oroute_uncache_nw() performs the identical task for output routes as iroute_uncache_nw() performs for input routes.