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)) {

> On 13 Jul 2015, at 15:56, Jim Hranicky <[email protected]> wrote:
> 
> Attached is the crash with the original interface name and
> the crash with the interface renamed to 'net1' .
> 
> Both used the tcpdump command below.
> 
> Jim
> 
> On 07/11/2015 05:11 AM, Alfredo Cardigliano wrote:
>> Hi Jim
>> from the trace it seems you were using bpf, but I do not see any filter
>> in your tcpdump command line, did you use the same command?
>> BTW, could you also try with a shorter device name, to check if it is
>> related to that?
>> 
>> Thank you
>> Alfredo
>> 
> 
>>> /usr/local/pf/sbin/tcpdump -nn -i <interface> -c 10
> <vmcore-dmesg-eno16780032.txt><vmcore-dmesg-net1.txt>_______________________________________________
> Ntop-misc mailing list
> [email protected]
> http://listgateway.unipi.it/mailman/listinfo/ntop-misc

Attachment: signature.asc
Description: Message signed with OpenPGP using GPGMail

_______________________________________________
Ntop-misc mailing list
[email protected]
http://listgateway.unipi.it/mailman/listinfo/ntop-misc

Reply via email to