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
Error in parse strings with variable length #80
Comments
Agreed, found this after 1h of debugging. Had to trace the ambiguous 'ipfix.go:232: "can not read the data"' error message to actually arrive at ipfix/decoder.go Decoder.decodeData()'s first loop - which is the source of this error message. This is so disappointing that vFlow actually does not implement IPFIX - but rather a subset of the RFC. |
@mohamadrezarostami thanks for catching this! pls resolve the conflict #81 |
@mehrdadrad I fix it ,but I don't know why tests doesn't pass :( |
@mohamadrezarostami I merged a bug fix right after you changed the decodeData, pls first update your repo then add getDataLength feature to the decodeData. thanks! |
@mehrdadrad I fix it. |
According to RFC7011 Section 6.1.6, "The string is sent as an array of zero or more octets using Information Element fixed or variable length." we can have a variable length "In the Template Set, the Information Element Field Length is as 65535. This reserved length value notifies the that the value of the Information Element will be carried the Information Element content itself." but this is not supported by vFlow and use 65535 for the size of all of the strings.
The text was updated successfully, but these errors were encountered: