[netsniff-ng] Re: [PATCH v2 6/7] trafgen: parser: Allow to set function at field offset

2016-12-21 Thread Tobias Klauser
On 2016-12-21 at 10:13:03 +0100, Vadim Kochan wrote: > On Wed, Dec 21, 2016 at 10:17:17AM +0100, Tobias Klauser wrote: > > On 2016-12-20 at 22:10:54 +0100, Vadim Kochan wrote: > > > On Tue, Dec 20, 2016 at 12:33:47PM +0100, Tobias Klauser wrote: [...] > > >

[netsniff-ng] Re: [PATCH v2 6/7] trafgen: parser: Allow to set function at field offset

2016-12-21 Thread Vadim Kochan
On Wed, Dec 21, 2016 at 10:17:17AM +0100, Tobias Klauser wrote: > On 2016-12-20 at 22:10:54 +0100, Vadim Kochan wrote: > > On Tue, Dec 20, 2016 at 12:33:47PM +0100, Tobias Klauser wrote: > > > On 2016-12-18 at 10:52:49 +0100, Vadim Kochan wrote: > > > >

[netsniff-ng] Re: [PATCH v2 6/7] trafgen: parser: Allow to set function at field offset

2016-12-21 Thread Tobias Klauser
On 2016-12-20 at 22:10:54 +0100, Vadim Kochan wrote: > On Tue, Dec 20, 2016 at 12:33:47PM +0100, Tobias Klauser wrote: > > On 2016-12-18 at 10:52:49 +0100, Vadim Kochan wrote: > > > Extend proto field expression to: > > > > > >

Re: [netsniff-ng] trafgen cfg: automatically padding dynamic values to sizes larger than 1 octet

2016-12-21 Thread Vadim Kochan
On Thu, Oct 20, 2016 at 05:58:12AM -0700, Eddy G wrote: > It does not seem like it is possible to do something like: > > const16(dinc(1,1023)) > > because 1) dinc() and ddec() are limited to single octets, and 2) you can't > nest dinc() or ddec() inside the c* helpers. > > The above would

[netsniff-ng] [PATCH v3] man: trafgen: Add short description about field offset using

2016-12-21 Thread Vadim Kochan
Add short note about field offset syntax with an example. Signed-off-by: Vadim Kochan --- v2: Change commit messages and man file that field offset expression is used with function expression, and added validation for it in trafgen parser. v3: Add some examples