Am 07.11.2010 16:18, schrieb Jan Engelhardt: > On Sunday 2010-11-07 15:26, Frederic Leroy wrote: >> >> I wrote a new classify target. Patches for both current linux-stable and >> arptables cvs are joined. >> >> +++ b/net/ipv4/netfilter/arpt_classify.c >> @@ -0,0 +1,41 @@ >> +/* module that allows classification of arp packet */ >> +#include <linux/module.h> >> +#include <linux/netfilter.h> >> +#include <linux/netfilter/x_tables.h> >> +#include <linux/netfilter_arp/arpt_classify.h> >> + >> +MODULE_LICENSE("GPL"); >> +MODULE_AUTHOR("Frederic Leroy <fredo@xxxxxxxxxx>"); >> +MODULE_DESCRIPTION("arptables arp classify target"); >> + >> +static unsigned int >> +target(struct sk_buff *skb, const struct xt_action_param *par) >> +{ >> + const struct arpt_classify *classify = par->targinfo; >> + >> + skb->priority=classify->priority; >> + >> + return XT_CONTINUE; >> +} > > Why did you not update xt_CLASSIFY instead? Actually we already register for NFPROTO_UNSPEC, so simply adding a userspace extension should do the job. -- To unsubscribe from this list: send the line "unsubscribe netfilter-devel" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html