On 2016-08-11 at 00:57:04 +0200, Vadim Kochan <vadi...@gmail.com> wrote: > Add dynamic proto field function which can generate > random value in specified range (default 0 - MAX_UINT32). > > Signed-off-by: Vadim Kochan <vadi...@gmail.com> > --- > trafgen_proto.c | 27 +++++++++++++++++++++++++++ > trafgen_proto.h | 1 + > 2 files changed, 28 insertions(+) > > diff --git a/trafgen_proto.c b/trafgen_proto.c > index 72dbad3..072cbcd 100644 > --- a/trafgen_proto.c > +++ b/trafgen_proto.c > @@ -466,6 +466,31 @@ static void field_inc_func(struct proto_field *field) > } > } > > +static inline unsigned int field_rand(struct proto_field *field)
Return type should be uint32_t. Otherwise the patch looks good to apply. -- 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.