Title: iroute_uncache_nw()


iroute_uncache_nw(dest, netmask) eliminates from the input route cache (i.e., iroute_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 input 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 input 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

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