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

Factored out CAEX and PINF dissection to separate functions, added fields #12

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

alphajbravo
Copy link
Contributor

I have revised the Base layer, CAEX, and PINF dissections to provide ProtoFields where they seem to make sense. This means that display filters can access fields within CITP messages which is very useful.

In the process, I have moved the PINF and CAEX dissections to separate functions to ease revision. Doing this should also simplify a future enhancement I have in mind, which is adding support for compound messages. At least some CITP implementations will send multiple CITP messages in a single packet, and the dissector currently does not support this. Having different layer dissectors as separate functions that take a slice of the buffer should make adding compound message support a bit easier and cleaner.

Ideally the rest of the existing layer dissectors would be factored into different functions as well, but I have not begun this as I don't have anything to test against and don't want to break existing functionality. This PR can at least be used as a template for the other layers.

If anyone has Pcaps of CITP traffic using other layers it would be helpful to build up a test corpus.

…elds

CAEX and PINF dissections have been moved to separate functions to ease revision

ProtoFields have been implemented for CITP base, CAEX, and PINF layers to allow filtering based on values.
@hossimo
Copy link
Owner

hossimo commented Dec 18, 2018

Sorry for the delay in looking at this. I do like the concept of splitting up the monolith into functions but I have not had any time you look at your commit.

I hope to have some time to give it a look this week and remember what it was I started :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants