First, I hope the following description (from here) make my question clearer:The process for identifying whether a particular destination address matches a route is a mathematical operation. The process is quite simple, but it requires an understanding of binary arithmetic and logic: A route matches a destination if the network address logically ANDed with the netmask precisely equals the destination address logically ANDed with the netmask.`These days, I got many descriptions about ANDing process, such as What is the ANDing process?, but they all discuss the theory, do not where to finish it, I particularly want to know the ANDing process is a linux application program or linux kernel function? What's name?I googled the two relative linux kernel program: net/ipv4/fib_trie.c(almost linux kernel version 3.13 and newer) and net/ipv4/fib_hash.c (before linux kernel v2.6) , I am not sure!Another, when I run ping command the ANDing process will be triggered?Any advice will be appreciated!
where to finish ANDing process for  the destination host is on the local network or a remote network
tcp;tcp ip