All of lore.kernel.org
 help / color / mirror / Atom feed
* Setting skb->priority with libnetfilter_queue
@ 2006-03-27 19:40 Brad Fisher
  2006-03-27 21:38 ` [PATCH] " Brad Fisher
  0 siblings, 1 reply; 4+ messages in thread
From: Brad Fisher @ 2006-03-27 19:40 UTC (permalink / raw)
  To: netfilter-devel

Does anyone know how I could go about setting the skb->priority for 
queued packets?  I'd like to have my userspace program be able to 
classify packets dynamically, but I believe that would require either 
the skb pointer to the enqueued packet so I could use setsockopt, or a 
change to the libnetfilter_queue api.  I suppose one could add a 
function like:

    int nfq_set_verdict_mark_priority(struct nfq_q_handle *qh, u_int32_t 
id, u_int32_t verdict, u_int32_t mark, u_int32_t priority,
                                u_int32_t data_len, unsigned char *buf)

(or perhaps it  could be called nfq_set_mark_classify?)

Either way, it seems that both the kernel and libnetfilter_queue must be 
modified.  I'm hoping I'm wrong and that there is a way to do what I 
want without patching the kernel and libnetfilter_queue.  If so could 
someone please enlighten me?

-Brad

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2006-04-06 11:03 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-03-27 19:40 Setting skb->priority with libnetfilter_queue Brad Fisher
2006-03-27 21:38 ` [PATCH] " Brad Fisher
2006-03-27 21:40   ` [PATCH] Re: Setting skb->priority with libnetfilter_queue (patch really attached this time) Brad Fisher
2006-04-06 11:03     ` Patrick McHardy

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.