kbandla / dpkt

fast, simple packet creation / parsing, with definitions for the basic TCP/IP protocols
Other
1.09k stars 270 forks source link

Generated file stats with 0xD4C3B2A1 #592

Closed Isdriai closed 3 years ago

Isdriai commented 3 years ago

Describe the bug When I use pcap.Writer or pcapng.Writer, I have a pcap file starting with the magic number "0xD4C3B2A1". Is it the normal behavior ? Because I want the magic number be 0xa1b2c3d4 or 0xd4c3b2a1 and I didn't see solution in the doc or the source code

To Reproduce I use pcap.Writer or pcapng.Writer

Expected behavior I want 0xa1b2c3d4 or 0xd4c3b2a1 as magic number

Details(please complete the following information):

obormot commented 3 years ago

0xD4C3B2A1 is the same number as 0xd4c3b2a1 , what's your concern here exactly @Isdriai ?