Conversation
|
Hi! Thanks! At first glance I don't think this should interpret into a string. I would expect the interpretation to return a slice of the relevant data type? |
|
If we are using a "pure" slice we would lose information such as the list semantic. This could be captured in a struct. What do you think @calmh ? |
|
I don't know. How are these things used?
|
|
You can use basicList to encode multiple values of an IE for a single one flow. An example would be to export the length of each packet within a flow. The following example flow contains four packets, the first has size 60 bytes, second has size 52 bytes, then 367B, and finally 52B. The semantic specifies the relation of the list elements, e.g. semantic=4 means |
|
Given that we’ve managed to stick to just returning basic types for the other things being interpreted, and that I expect the receiving side will already have to know things like whether the list is ordered or not in order to use it, I think returning an []interface{} is the right thing here. If the type of fields can’t vary within the same list, having the slice be of the element type to begin with would be neater.
|
|
basicList types now return |
Add support for basicList.
Results can be displayed using
ipfixcat. Example:See RFC 6313 for more info on basicList.