Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions examples/nffPktgen/generator/utility.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ import (
var gen generator

type generator struct {
count uint64
Count uint64
}

// GetGenerator returns generator struct pointer
Expand All @@ -28,7 +28,7 @@ func GetGenerator() *generator {

// GetGeneratedNumber returns a number of packets generated
func (g *generator) GetGeneratedNumber() uint64 {
return atomic.LoadUint64(&(g.count))
return atomic.LoadUint64(&(g.Count))
}

// ReadConfig function reads and parses config file.
Expand Down Expand Up @@ -151,6 +151,6 @@ func Generate(pkt *packet.Packet, context flow.UserContext) {
}
}
genP.table[genP.next].generatorFunc(pkt, &genP.table[genP.next].config, genP.rnd)
atomic.AddUint64(&(gen.count), 1)
atomic.AddUint64(&(gen.Count), 1)
genP.table[genP.next].have++
}
2 changes: 1 addition & 1 deletion examples/nffPktgen/testing/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@

PATH_TO_MK = ../../../mk
IMAGENAME = nff-pktgen
EXECUTABLES = sendGetBack perfTest dump
EXECUTABLES = sendGetBack perfTest dump minPktLoss

include $(PATH_TO_MK)/leaf.mk
Loading