func BenchmarkAccept(b *testing.B) {
q, _ := netfilter.NewNFQueue(1,1024,netfilter.NF_DEFAULT_PACKET_SIZE)
defer q.Close()
b.ResetTimer()
for i := 0; i < b.N; i++ {
p := <- q.GetPackets()
Accept(p)
}
}
BenchmarkAccept-4 1 4751730622 ns/op