[netsniff-ng] Re: [PATCH 2/3] trafgen: Allow send packets from pcap file

2017-02-06 Thread Tobias Klauser
On 2017-01-31 at 23:31:35 +0100, Vadim Kochan wrote: > Add ability to send packets from pcap file if it has > ".pcap" extension via "-i,--in" option. > > By default packet sending is delayed considering original > packets timestamps if no rate or delay is specified via -b/-t

[netsniff-ng] Re: [PATCH 1/3] pcap_io: Add function to get packet timestamp

2017-02-06 Thread Tobias Klauser
On 2017-01-31 at 23:31:34 +0100, Vadim Kochan wrote: > Add pcap_get_tstamp(...) function to get packet's timestamp considering > different packet types & bytes order. > > Signed-off-by: Vadim Kochan > --- > pcap_io.h | 53

[netsniff-ng] [PATCH v2] trafgen: l3: Make possible to send frames via tun device

2017-02-06 Thread Vadim Kochan
tun interface does not have Ethernet header so lets push Ethernet header only if device supports this. Signed-off-by: Vadim Kochan --- trafgen_l3.c| 15 --- trafgen_proto.c | 5 + trafgen_proto.h | 2 ++ 3 files changed, 19 insertions(+), 3 deletions(-)

[netsniff-ng] Re: [PATCH v2] trafgen: l3: Make possible to send frames via tun device

2017-02-06 Thread Tobias Klauser
On 2017-02-06 at 17:23:11 +0100, Vadim Kochan wrote: > tun interface does not have Ethernet header so lets push Ethernet > header only if device supports this. > > Signed-off-by: Vadim Kochan Applied, thank you. -- You received this message because you

[netsniff-ng] Re: [PATCH] geoip: Fix memory leak when using GeoIPRecord

2017-02-06 Thread Tobias Klauser
On 2017-02-04 at 10:56:14 +0100, Vadim Kochan wrote: > GeoIP_record_by_ipnum{,_v6} returns allocated pointer to > GeoIPRecord with allocated city, region & postal_code which is > not freed after the call. > > Fixed by xstrdup-ing required GeoIPRecord member (city/region) and >