From 36fcb9fb40701c3dca08539c2a7c8e50f541adcb Mon Sep 17 00:00:00 2001 From: Justin Azoff Date: Wed, 11 Apr 2018 09:39:28 -0400 Subject: [PATCH] Fix ipv6 flow parsing This should fix #11, aside from missing test cases. --- backend/nfdump.go | 2 +- cmd/version.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/backend/nfdump.go b/backend/nfdump.go index ca27db0..cf625a2 100644 --- a/backend/nfdump.go +++ b/backend/nfdump.go @@ -69,7 +69,7 @@ type NFDUMPBackend struct { } func (b NFDUMPBackend) ExtractIps(reader io.Reader, ips *ipset.Set) (uint64, error) { - cmd := exec.Command("nfdump", "-qr", "-", "-o", "fmt:%sa %da") + cmd := exec.Command("nfdump", "-qr", "-", "-o", "fmt:%sa %da", "-6") cmd.Stdin = reader stdout, err := cmd.StdoutPipe() if err != nil { diff --git a/cmd/version.go b/cmd/version.go index a9e8869..a1ce330 100644 --- a/cmd/version.go +++ b/cmd/version.go @@ -7,7 +7,7 @@ import ( ) const ( - VERSION = "0.1.9" + VERSION = "0.1.10" ) var cmdVersion = &cobra.Command{