Question about nfnl_handle_packet/nfnl_process error handling

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

 



libnetfilter_queue has:

int nfq_handle_packet(struct nfq_handle *h, char *buf, int len)
{
   return nfnl_handle_packet(h->nfnlh, buf, len);
}

When an error occurs, for example because a verdict for a bogus packet id was
sent, nfq_handle_packet/nfnl_handle_packet returns -1 with errno == 0.

Using nfnl_process() instead of nfq_handle_packet() sets errno to the expected
ENOENT.

Does anyone know if nfq_handle_packet() "errno 0" behaviour is intentional?
Should I just ignore nfq_handle_packet() return value?
What about deprecating nfnl_handle_packet() and using nfnl_process()
instead?

Thanks,
Florian
--
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