Skip to content
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

rfc - app-layer gap handling - v4 #2619

Closed
wants to merge 2 commits into from
Closed

Conversation

jasonish
Copy link
Member

Requesting comments on this way of handling gaps in the app-layer. DNP3 is a simple case as its based on frames with a start sequence.

There is one stream test case that is broken from these changes tho.

There are ifdef's of older code as I'm still using them for reference.. Hence this is just an RFC.

Prscript:

Allow app-layers to register that they can handle gaps.

Instead of sending a "signal" on a gap, send the gap flag on the next
segment, the app-layer "dispatcher" will check if the app-layer can
handle gaps or not, and abort if they can't, otherwise the data along
with a gap flag will be sent to the app-layer.

The idea is that the parser can then make the decision on what to do
with the gap.
On data check if the gap flag is set. If so, check if the data is at
the start of frame. This is pretty easy with DNP3 as there is a start
frame byte sequence.
@jasonish
Copy link
Member Author

See #2660

@jasonish jasonish closed this Apr 11, 2017
@jasonish jasonish deleted the dev-gap-4 branch June 6, 2017 15:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

1 participant