chipmunk icon indicating copy to clipboard operation
chipmunk copied to clipboard

Parse DLT network-trace prefix for SOME/IP messages

Open kruss opened this issue 1 year ago • 2 comments

This PR will add information from the DLT network-trace prefix to the resulting SOME/IP information being displayed.

In DLT network-traces for SOME/IP the DLT payload contains of two arguments, where the first argument is a prefix with additional information on the actual SOME/IP message in the the second argument.

For the implementation the prefix will be expected to consist of:

  • 4 bytes as IPv4 address
  • 2 bytes as udp/tcp port
  • 1 byte as protocol type (0 = local, 1 = tcp, 2 = udp)
  • 1 byte as message direction (0 = incoming, 1 = outgoing)
  • 1, 2 or 4 bytes as SOME/IP instance-id

kruss avatar Oct 10 '24 22:10 kruss

Requires discussion with @marcmo . In one hand this is not related to Some/IP parser directly and looks like cannot be a part of Some/IP parser; at the same time it's related to DLT parser, but not related to DLT protocol directly; but adding deep parsing operations into chipmunk directly is something, what we didn't do before. Let's discuss it.

DmitryAstafyev avatar Oct 11 '24 07:10 DmitryAstafyev

@kruss just as a mind. Could it be an optional feature of some of the parsers? Does it make sense?

DmitryAstafyev avatar Oct 11 '24 07:10 DmitryAstafyev

@kruss just as a mind. Could it be an optional feature of some of the parsers? Does it make sense?

As it's not related to the protocol specifications of either DLT or SOME/IP it does imo not make sense. Probably this code could be moved to application/apps/indexer/addons in chipmunk?!

kruss avatar Oct 30 '24 16:10 kruss

Moved the code to parse someip network-trace prefixes to application/apps/indexer/addons/someip-tools

kruss avatar Nov 14 '24 09:11 kruss