[netsniff-ng] Re: [RFC PATCH] trafgen: proto: Split static protocol definition out of struct proto_hdr

2016-08-12 Thread Tobias Klauser
On 2016-08-11 at 20:11:02 +0200, Vadim Kochan wrote: > On Thu, Aug 11, 2016 at 06:16:27PM +0200, Tobias Klauser wrote: > > Currently struct proto_hdr is used twofold: > > > > 1) Statically define protocol behavior, i.e. all the *_hdr definitions in > >

[netsniff-ng] Re: [RFC PATCH] trafgen: proto: Split static protocol definition out of struct proto_hdr

2016-08-11 Thread Vadim Kochan
On Thu, Aug 11, 2016 at 06:16:27PM +0200, Tobias Klauser wrote: > Currently struct proto_hdr is used twofold: > > 1) Statically define protocol behavior, i.e. all the *_hdr definitions in > trafgen_l{2,3,4}.c which map a protocol id/layer to a set of callback > functions. > > 2)