Set mark in -j QUEUE?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Using iptables-1.2.11-3.1.RHEL4.

In the mangle table, in an otherwise successful -j QUEUE
processor, I set:

   ipq_packet_msg_t*       msg;
   ...
   msg->mark = 2;
   ipq_set_verdict(ipqHand,msg->packet_id,NF_ACCEPT,0,NULL);

and in the filter table, I check:

   -A IN -s 192.168.1.0/24 -m mark --mark 0 -j LOG-QUEUE-0-DROP
   -A IN -s 192.168.1.0/24 -m mark --mark 1 -j LOG-QUEUE-DROP
   -A IN -s 192.168.1.0/24 -m mark --mark 2 -j LOG-QUEUE-ACCEPT

The result is zero. On the other hand, if in the mangle table:

   -A PRE -p tcp -s 192.168.1.0/24 -j MARK --set-mark 2

I get the correct result of 2 in the filter table.

Is there any way to make this work in the -j QUEUE processor?

Thanks in advance for your help.

Mike.

--
Michael D. Berger
m.d.berger@xxxxxxxx 




[Index of Archives]     [Linux Netfilter Development]     [Linux Kernel Networking Development]     [Netem]     [Berkeley Packet Filter]     [Linux Kernel Development]     [Advanced Routing & Traffice Control]     [Bugtraq]

  Powered by Linux