-
Notifications
You must be signed in to change notification settings - Fork 267
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
CaptureFileWriterDevice.Write((RawCapture p) writes incorrect LinkLayerType if its not known to PacketDotNet #174
Comments
@twa89 the link layer is determined through the constructor of How did you create the |
@twa89 use the constructor where you can specify the |
I tried using the constructor like this and it still writes the packet as ethernet.
|
If I open that onemstp.cap file attached above in wireshark, it shows it correctly as MSTP. |
I did get this working with this signature, it was throwing an exception on the size I was passing in above too. |
I am opening a wireshark capture of a BACnet MSTP cap file, then trying to write the packet back out using CaptureFileWriterDevice.Write() method. When it writes the packet out, it does not preserve the link layer byte that was in the original packet that was read in.
BACnet MSTP is link layer 165, I see this byte in the source file, but in the one written out is was replaced with 0.
I looked at PacketDotNet and it seems to have an enum for link layer that doesn't have this value (165). I would think if a packet is read in, it could be written back as read. Here is a sample file with just 1 mstp packet.
onemstp.zip
The text was updated successfully, but these errors were encountered: