I'm using an if statement with multiple conditions to filter the output of my script based on user-input.
It works, but the only problem is that it slows down my script greatly
For a refrence, the script is a packet sniffer like pcap but written with sockets.
It prints the output very quickly and im guessing having a large if statement is what is slowing it down.
if sourceaddress in (s_addr,"any") and sourceport in (source_port,"any") and filterprotocol in (6,"any"):
That's what i am currently using. And the thing is there is at least 5 more statements i have to add in there to complete my script. What could i do to fix this *If anything