Skip to content

vyivanov/packet-decoder

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Packet Decoder

Here some experiments around network parsers.

TCP/IP packets

  • Ethernet II
  • IPv4
  • UDP

Custom packets

  • SIMBA (FIX)

File formats

  • PCAP

Usage

Tested with gcc-12.2.0:

$ ./build-n-run.sh <path/to/pcap/file>

Constraints

  • unit tests are to be implemented
  • there is a base parsing: assert()'s could be triggered on other dumps
  • big-endian architecture is to be supported: static_assert()'s will be triggered
  • only one SBE message is parsed in incremental packets: see WA_PARSE_ONE_MESSAGE macro
  • SBE message data parsing is to be implemented: see WA_STUB_MESSAGE_DATA macro

Examples