britram / python-ipfix

IPFIX implementation for Python 3.x
GNU Lesser General Public License v3.0
40 stars 20 forks source link

Template caching #31

Open mishrashubhamlearning opened 3 years ago

mishrashubhamlearning commented 3 years ago

As I want to use this library for IPFIX message parsing , where I am pushing data every second. So to reduce overhead I am sending Template only once or at the beginning of communication begin.

It decode well the first message as it has template as well data set. But then after it not able to decode the message. Currently after reading message from UDP socket storing into a local Queue, not passing stream directly to any library decoding method.

Code snippet, how I am using it: ipfix.message.MessageBuffer() msg.from_bytes(byteBuffer) for rec in msg.namedict_iterator() XXXXXXXXXX

But it is not caching the templates it has processed previously.