I noticed that the Packet Writer class provides a move assignment operator that sets the moved-from object's pcap-handles in a null state. Any further calls to write on the moved-from object should result in a segfault.
This might have been a concious decision, but the issue could be avoided by placing a check for non-null pcap-handles in the write method. Would you be interested in a PR, or are you happy to leave it as-is?
I noticed that the Packet Writer class provides a move assignment operator that sets the moved-from object's pcap-handles in a null state. Any further calls to write on the moved-from object should result in a segfault.
This might have been a concious decision, but the issue could be avoided by placing a check for non-null pcap-handles in the write method. Would you be interested in a PR, or are you happy to leave it as-is?