Closed georgmu closed 9 years ago
Currently, the builtin dictionary is generated by downloading and parsing the RFC.
The better way would be to generate the dictionary using the ipfix.xml file provided by iana ( http://www.iana.org/assignments/ipfix/ipfix.xml ).
This file is being updated on changes and defines a lot more elements than the RFC.
If you wish, I could write a script which generates builtin-dictionary.go from this xml file.
For example, openvswitch uses the same file to generate some C macros, see https://github.com/openvswitch/ovs/blob/master/ofproto/ipfix-gen-entities .
Neat, I didn't know that existed. Yes please if you feel up to it, please do replace the current RFC-parsing script with one that uses the XML instead.
(Implemented)
Currently, the builtin dictionary is generated by downloading and parsing the RFC.
The better way would be to generate the dictionary using the ipfix.xml file provided by iana ( http://www.iana.org/assignments/ipfix/ipfix.xml ).
This file is being updated on changes and defines a lot more elements than the RFC.
If you wish, I could write a script which generates builtin-dictionary.go from this xml file.
For example, openvswitch uses the same file to generate some C macros, see https://github.com/openvswitch/ovs/blob/master/ofproto/ipfix-gen-entities .