Fix cli_match function for IPv4 addr and prefix.