TODO:
# Task 1: Return n being:
# n = Number of packets with only SYN+ACK flags
def syn_ack(self):
n = 0
syn = 0
ack = 0
# TODO: Implement me
for syn in pyshark.FileCapture('TCP.reflection_fall2023.pcap'):
n += 1
return n
I am able to pull all packets but not sure how to filter to only pull syn and ack packets from wireshark.