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); And then I will need to malloc(size). Is this OK? regards. -- Arturo Borrero González -- 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