Mailing List Archive

PF_RING DNA RSS in libpcap
I've just made a little patch to enable the PF_RING_DNA_SYMMETRIC_RSS
flag if the environment variable PCAP_PF_RING_DNA_RSS exists:

--- userland/libpcap-1.1.1-ring/pcap-linux.c.orig 2012-06-05
08:32:28.000000000 +0100
+++ userland/libpcap-1.1.1-ring/pcap-linux.c 2012-07-11
15:27:10.434677526 +0100
@@ -1167,6 +1167,7 @@
int flags = 0;

if(handle->opt.promisc) flags |= PF_RING_PROMISC;
+ if(getenv("PCAP_PF_RING_DNA_RSS")) flags |=
PF_RING_DNA_SYMMETRIC_RSS;

handle->ring = pfring_open((char*)device, handle->snapshot,
flags);

Then checked with PF_RING-enabled tcpdump

PCAP_PF_RING_DNA_RSS=yes tcpdump -n -i dna0@3

and now the flows are nicely symmetric :)

Best Wishes,
Chris

--
--+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+-
Christopher Wakelin, c.d.wakelin@reading.ac.uk
IT Services Centre, The University of Reading, Tel: +44 (0)118 378 2908
Whiteknights, Reading, RG6 2AF, UK Fax: +44 (0)118 975 3094

_______________________________________________
Ntop-misc mailing list
Ntop-misc@listgateway.unipi.it
http://listgateway.unipi.it/mailman/listinfo/ntop-misc
Re: PF_RING DNA RSS in libpcap [ In reply to ]
Committed, thanks Luca


On Jul 11, 2012, at 4:44 PM, Chris Wakelin wrote:

> I've just made a little patch to enable the PF_RING_DNA_SYMMETRIC_RSS
> flag if the environment variable PCAP_PF_RING_DNA_RSS exists:
>
> --- userland/libpcap-1.1.1-ring/pcap-linux.c.orig 2012-06-05
> 08:32:28.000000000 +0100
> +++ userland/libpcap-1.1.1-ring/pcap-linux.c 2012-07-11
> 15:27:10.434677526 +0100
> @@ -1167,6 +1167,7 @@
> int flags = 0;
>
> if(handle->opt.promisc) flags |= PF_RING_PROMISC;
> + if(getenv("PCAP_PF_RING_DNA_RSS")) flags |=
> PF_RING_DNA_SYMMETRIC_RSS;
>
> handle->ring = pfring_open((char*)device, handle->snapshot,
> flags);
>
> Then checked with PF_RING-enabled tcpdump
>
> PCAP_PF_RING_DNA_RSS=yes tcpdump -n -i dna0@3
>
> and now the flows are nicely symmetric :)
>
> Best Wishes,
> Chris
>
> --
> --+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+-
> Christopher Wakelin, c.d.wakelin@reading.ac.uk
> IT Services Centre, The University of Reading, Tel: +44 (0)118 378 2908
> Whiteknights, Reading, RG6 2AF, UK Fax: +44 (0)118 975 3094
>
> _______________________________________________
> Ntop-misc mailing list
> Ntop-misc@listgateway.unipi.it
> http://listgateway.unipi.it/mailman/listinfo/ntop-misc

_______________________________________________
Ntop-misc mailing list
Ntop-misc@listgateway.unipi.it
http://listgateway.unipi.it/mailman/listinfo/ntop-misc