On Thu, Jan 02, 2014 at 07:47:38PM +0100, Arturo Borrero Gonzalez wrote: > On 2 January 2014 14:52, Pablo Neira Ayuso <pablo@xxxxxxxxxxxxx> wrote: > > > > Please, rework this to pass a file descriptor instead so it's > > consistent with _fprintf API and we can use it with pipes as well. > > Should I do a fread() based input?: > > size_t fread(void *ptr, size_t size, size_t nmemb, FILE *stream); > > If so, the API func may look like: > > int nft_chain_fparse(struct nft_chain *c, type, size_t size, FILE *stream); That interface is fine. > And then I will need to malloc(size). Please, explain why you need this. -- 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