From: Brad Fisher <brad@info-link.net>
To: netfilter-devel@lists.netfilter.org
Subject: Setting skb->priority with libnetfilter_queue
Date: Mon, 27 Mar 2006 13:40:15 -0600 [thread overview]
Message-ID: <44283F9F.4010206@info-link.net> (raw)
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
next reply other threads:[~2006-03-27 19:40 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-03-27 19:40 Brad Fisher [this message]
2006-03-27 21:38 ` [PATCH] Re: Setting skb->priority with libnetfilter_queue 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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=44283F9F.4010206@info-link.net \
--to=brad@info-link.net \
--cc=netfilter-devel@lists.netfilter.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.