MarketSquare / MarketSquare/Rammbock

How can I use bin container's field as pdu length during define protocol

Open
#31 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
64
Forks
48
PR merge metrics
No merged PRs in 30d

Description

I want to use like this:

New protocol    SL
u16    password    0x0102
u8    functionCode
new binary container    payloadLen
bin    4    direction
bin    12    length
end binary container
u8    payloadBeginTag    0x02
pdu    payloadLen.length + 3
End protocol

but error 'Length field payloadLen.length unknown', How can I use bin container's field as pdu length during define protocol?

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the protocol definition from the issue and tracing the validation that reports “Length field payloadLen.length unknown.” Determine how binary-container fields are represented when the PDU length is resolved. Done means the shown definition can use payloadLen.length + 3 without that unknown-field error, with coverage for the resulting length.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
networking, testing-qa
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.