fn subnet_match(addr: &Addr, other_addr: &Addr) -> bool
Check if two addresses belong to the same subnet.