-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

Was the latest trace helpful?

Jim

On 07/15/2015 04:55 PM, Jim Hranicky wrote:
> Patch applied.
> 
> Command:
> 
> /usr/local/pf/sbin/tcpdump -nn -i net1 -c 10
> 
> dmesg attached (everything after PF_RING load).
> 
> Jim
> 
> On 07/15/2015 09:15 AM, Alfredo Cardigliano wrote:
>> Hi Jim this requires a bit of debugging because bpf_filter_skb()
>> is not supposed to be called with the command you provided, but
>> this does not seem to be the case from the trace. Could you apply
>> this patch and provide the dmesg output after running the
>> application?
>> 
>> Thank you Alfredo
>> 
>> diff --git a/kernel/pf_ring.c b/kernel/pf_ring.c index
>> 5433e89..0d52c26 100644 --- a/kernel/pf_ring.c +++
>> b/kernel/pf_ring.c @@ -4030,7 +4030,8 @@ static int
>> add_skb_to_ring(struct sk_buff *skb, 
>> atomic_inc(&pfr->num_ring_users);
>> 
>> /* [1] BPF Filtering */ -  if(pfr->bpfFilter) { +  if (0) { +
>> //if(pfr->bpfFilter) { if(bpf_filter_skb(skb, pfr, displ) == 0)
>> { atomic_dec(&pfr->num_ring_users); return(-1); @@ -7491,7
>> +7492,7 @@ static int ring_setsockopt(struct socket *sock, case
>> SO_ATTACH_FILTER: ret = -EINVAL;
>> 
>> -    if(unlikely(enable_debug)) +
>> //if(unlikely(enable_debug)) printk("[PF_RING] BPF filter
>> (%d)\n", 0);
>> 
>> if(optlen == sizeof(struct sock_fprog)) {
>> 
>> 
>> 
>> _______________________________________________ Ntop-misc mailing
>> list [email protected] 
>> http://listgateway.unipi.it/mailman/listinfo/ntop-misc
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.22 (GNU/Linux)

iF4EAREIAAYFAlWuUgQACgkQCGX2wHRYUXSOWQD/e62aR5wmzV43SXkIcoLsRYl6
om1oa9NFEmfWUiXQxjIA+wUgvGXJYOZmumeweqLYHcDKsmvzf9mzUP6hJvC8M1Wq
=avXV
-----END PGP SIGNATURE-----
_______________________________________________
Ntop-misc mailing list
[email protected]
http://listgateway.unipi.it/mailman/listinfo/ntop-misc

Reply via email to