Assuming there is a given ip address, how to determine if it is in a specific subnet with mask?
(ip & mask == subnet & mask)
and (ip & mask == subnet)
, which is better?
Assuming there is a given ip address, how to determine if it is in a specific subnet with mask?
(ip & mask == subnet & mask)
and (ip & mask == subnet)
, which is better?