diff --git a/nfstream/observer.py b/nfstream/observer.py index 9753883..40a49d9 100644 --- a/nfstream/observer.py +++ b/nfstream/observer.py @@ -182,7 +182,7 @@ def fcf_from_ds(fc): def get_flags(d, p): - if p == 6: + if p == 6 and d is not None: return tcpflags(syn=int(d.syn), cwr=int(d.cwr), ece=int(d.ece), diff --git a/tests/pcap/android.pcap b/tests/pcap/android.pcap new file mode 100644 index 0000000..1ddea05 Binary files /dev/null and b/tests/pcap/android.pcap differ diff --git a/tests/pcap/badpackets.pcap b/tests/pcap/badpackets.pcap new file mode 100644 index 0000000..dfe6ea6 Binary files /dev/null and b/tests/pcap/badpackets.pcap differ diff --git a/tests/pcap/dns_exfiltration.pcap b/tests/pcap/dns_exfiltration.pcap new file mode 100644 index 0000000..0a7c2fc Binary files /dev/null and b/tests/pcap/dns_exfiltration.pcap differ diff --git a/tests/pcap/dos_win98_smb_netbeui.pcap b/tests/pcap/dos_win98_smb_netbeui.pcap new file mode 100644 index 0000000..796c544 Binary files /dev/null and b/tests/pcap/dos_win98_smb_netbeui.pcap differ diff --git a/tests/pcap/fuzz-2006-06-26-2594.pcap b/tests/pcap/fuzz-2006-06-26-2594.pcap new file mode 100644 index 0000000..946aa79 Binary files /dev/null and b/tests/pcap/fuzz-2006-06-26-2594.pcap differ diff --git a/tests/pcap/fuzz-2006-09-29-28586.pcap b/tests/pcap/fuzz-2006-09-29-28586.pcap new file mode 100644 index 0000000..d4d4edf Binary files /dev/null and b/tests/pcap/fuzz-2006-09-29-28586.pcap differ diff --git a/tests/pcap/fuzz-2020-02-16-11740.pcap b/tests/pcap/fuzz-2020-02-16-11740.pcap new file mode 100644 index 0000000..00942d1 Binary files /dev/null and b/tests/pcap/fuzz-2020-02-16-11740.pcap differ diff --git a/tests/pcap/iphone.pcap b/tests/pcap/iphone.pcap new file mode 100644 index 0000000..b8f10cb Binary files /dev/null and b/tests/pcap/iphone.pcap differ diff --git a/tests/pcap/netbios.pcap b/tests/pcap/netbios.pcap new file mode 100644 index 0000000..1e8ee39 Binary files /dev/null and b/tests/pcap/netbios.pcap differ diff --git a/tests/pcap/netflow-fritz.pcap b/tests/pcap/netflow-fritz.pcap new file mode 100644 index 0000000..36610d0 Binary files /dev/null and b/tests/pcap/netflow-fritz.pcap differ diff --git a/tests/pcap/quic046.pcap b/tests/pcap/quic046.pcap new file mode 100644 index 0000000..9d32e5c Binary files /dev/null and b/tests/pcap/quic046.pcap differ diff --git a/tests/pcap/radiotap.pcap b/tests/pcap/radiotap.pcap deleted file mode 100644 index f4003b7..0000000 Binary files a/tests/pcap/radiotap.pcap and /dev/null differ diff --git a/tests/pcap/s7comm.pcap b/tests/pcap/s7comm.pcap new file mode 100644 index 0000000..a524d64 Binary files /dev/null and b/tests/pcap/s7comm.pcap differ diff --git a/tests/pcap/smb_deletefile.pcap b/tests/pcap/smb_deletefile.pcap new file mode 100644 index 0000000..ecd353c Binary files /dev/null and b/tests/pcap/smb_deletefile.pcap differ diff --git a/tests/pcap/wa_video.pcap b/tests/pcap/wa_video.pcap new file mode 100644 index 0000000..ab5dfff Binary files /dev/null and b/tests/pcap/wa_video.pcap differ diff --git a/tests/pcap/wa_voice.pcap b/tests/pcap/wa_voice.pcap new file mode 100644 index 0000000..aacf50c Binary files /dev/null and b/tests/pcap/wa_voice.pcap differ