All of lore.kernel.org
 help / color / mirror / Atom feed
From: Pablo Neira Ayuso <pablo@netfilter.org>
To: Daniel Wagner <wagi@monom.org>
Cc: netfilter@vger.kernel.org, connman@lists.01.org,
	Dragos Tatulea <dragos@endocode.com>
Subject: Re: autoload of nft modules
Date: Wed, 27 Apr 2016 14:54:47 +0200	[thread overview]
Message-ID: <20160427125447.GA6899@salvia> (raw)
In-Reply-To: <67e90927-885f-e860-a1dd-9f61ea95b53e@monom.org>

On Wed, Apr 27, 2016 at 10:52:13AM +0200, Daniel Wagner wrote:
> Hi,
> 
> Dragos and I are working on getting nft support into ConnMan [1]. Now we
> face a small problem with the rule we load, which are essentially:
> 
>  nft add table connman
>  nft add chain connman nat-prerouting			\
> 	{ type nat hook prerouting priortiy 0 ; }
>  nft add chain connman nat-postrouting			\
> 	{ type nat hook postrouting priortiy 0 ; }
>  nft add chain connman filter-output			\
> 	{ type filter hook output priority 0 ; }
> 
> These work nicely using the nft CLI but when we run those commands
> via libnftnl after a fresh reboot of the system, there is a ENOENT at
> the third rule.

Most likely you're missing the NLM_F_CREATE flags in your netlink
messages.

Please, send us patches for the example so other don't hit this
problem.

Thanks.

  reply	other threads:[~2016-04-27 12:54 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-04-27  8:52 autoload of nft modules Daniel Wagner
2016-04-27 12:54 ` Pablo Neira Ayuso [this message]
2016-04-29  5:33   ` Daniel Wagner

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=20160427125447.GA6899@salvia \
    --to=pablo@netfilter.org \
    --cc=connman@lists.01.org \
    --cc=dragos@endocode.com \
    --cc=netfilter@vger.kernel.org \
    --cc=wagi@monom.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.