pesco / dnp3

A DNP3 parser implementation in Hammer
15 stars 7 forks source link

feed() always returns 0 #3

Open jadamcrain opened 8 years ago

jadamcrain commented 8 years ago

Return -1 when protocol or configurable subseting rules are violated.

If possible, could we have a distinct error code for each layer? E.g. link returns -1, transport -2, app -3? I want to write some integration tests against the plugin and this would help me verify it's failing for the reason I expect it to.