We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 02b30f4 commit 6992abaCopy full SHA for 6992aba
src/sniffit.c
@@ -1629,13 +1629,13 @@ int main (int argc, char *argv[])
1629
break;
1630
case 'P':
1631
strlower (optarg);
1632
- if (strstr (optarg, "tcp"))
+ if (strstr (optarg, "tcp") || strstr (optarg, "TCP"))
1633
PROTOCOLS |= F_TCP;
1634
- if (strstr (optarg, "icmp"))
+ if (strstr (optarg, "icmp") || strstr (optarg, "ICMP"))
1635
PROTOCOLS |= F_ICMP;
1636
- if (strstr (optarg, "udp"))
+ if (strstr (optarg, "udp") || strstr (optarg, "UDP"))
1637
PROTOCOLS |= F_UDP;
1638
- if (strstr (optarg, "ip"))
+ if (strstr (optarg, "ip") || strstr (optarg, "IP"))
1639
PROTOCOLS |= F_IP;
1640
1641
case 's':
0 commit comments