Re: no extension found for this protocol

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

 



On Mon, Sep 24, 2012 at 7:28 PM, Jan Engelhardt <jengelh@xxxxxxx> wrote:
>
> On Monday 2012-09-24 15:14, Aft nix wrote:
>>>
>>> Specify the command you ran, and the _exact_ error message. There is
>>> no "No extension found for this protocol" string anywhere in the code
>>> to spot.
>>$iptables -t mangle -A PREROUTING -p udp --dport 9090 -j OBSF --key
>>"abc" --enc-type "arc4" --enc
>>$/usr/local/lib/xtables/libxt_OBSF.so : no "OBSF" extension found for
>>this protocol.
>>$iptables v1.4.15: unknown option "--key"
>
> (in libxt_OBSF.c): You do not have a _init function that actually
> registers obsf_target.

libxt_OBSF.c :

static struct xtables_target obsf_target = {
				.family  = NFPROTO_UNSPEC,
				.name    = "OBSF",
				.version = XTABLES_VERSION,
				.size    = XT_ALIGN(sizeof(struct xt_OBSF_tginfo)),
				.userspacesize = XT_ALIGN(sizeof(struct xt_OBSF_tginfo) -
sizeof(struct xt_obsf_priv *)),
				.help = OBSF_help,
				.print = OBSF_print,
				.save = OBSF_save,
				.x6_options = OBSF_opts,
};

static void __init(void)
{
	xtables_register_target(&obsf_target);
}

I do have a __init function.
-- 
-aft
--
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


[Index of Archives]     [Netfitler Users]     [LARTC]     [Bugtraq]     [Yosemite Forum]

  Powered by Linux