On 2016-07-26 at 21:35:08 +0200, Vadim Kochan <vadi...@gmail.com> wrote: > Till now headers were used only for packet creation at compile time > only, which does not allow to handle dynamic fields update at runtime. > It needs that proto_hdr entries will be not freed after compile is done. > > Signed-off-by: Vadim Kochan <vadi...@gmail.com> > --- > trafgen_conf.h | 6 ++++++ > trafgen_parser.y | 17 ++++++++++++++--- > trafgen_proto.c | 40 +++++++++++++++++++--------------------- > trafgen_proto.h | 2 ++ > 4 files changed, 41 insertions(+), 24 deletions(-) > > diff --git a/trafgen_conf.h b/trafgen_conf.h > index efce29c..934f8fe 100644 > --- a/trafgen_conf.h > +++ b/trafgen_conf.h > @@ -5,6 +5,10 @@ > #include <stdio.h> > #include <sys/types.h> > > +#include "trafgen_proto.h"
This produces a circular header dependency together with #include "trafgen_conf.h" in trafgen_proto.h. I guess the latter is not needed, so I dropped it and applied the patch. -- You received this message because you are subscribed to the Google Groups "netsniff-ng" group. To unsubscribe from this group and stop receiving emails from it, send an email to netsniff-ng+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.