Move rate, bytes & pkts stats fields from flow & proc entry
to separate flow_stat struct.
Signed-off-by: Vadim Kochan
---
flowtop.c | 82 +++
1 file changed, 41 insertions(+), 41 deletions(-)
diff --git a/flowtop.c b/flowtop.c
index 00
Add trafgen_l7.c module with DNS proto header generation with
support of filling DNS query/answer/authority/additional sections
as sub headers.
Introcuded new concept as 'sub header' which is needed to easy handle
DNS sections which might be added on-demand, and to simplify using
sub-header as reg
Add trafgen_l7.c module with DNS proto header generation with
support of filling DNS query/answer/authority/additional sections
as sub headers.
Introcuded new concept as 'sub header' which is needed to easy handle
DNS sections which might be added on-demand, and to simplify using
sub-header as reg
Add new syntax for DNS header generation via 'dns()' proto function.
The fields are supported:
id - 16 bit identifier
qr - message is a query(0) or response(1)
op|oper - specified kind of query
aanswer - authoritative answe
Add str2fqdn for converting hostname string into DNS name notation:
www..yy.com -> 3www42yy3com0
Returned string must be freed after use by the caller.
Signed-off-by: Vadim Kochan
---
str.c | 37 +
str.h | 1 +
2 files changed, 38 insertions(+)
It is quite tricky to set field value with a variable length
(i.e. DNS query name), to make it possible the field
needs to be added to header with 'len=0' in that case there
will be no any payload allocation, but only while setting the field
value the packet will be appended with a real length byte