Introduce nfnl_set_rcv_buffer_size to set the receive buffer size used by 
nfnl_catch. This revision changes the behaviour of nfnl_catch which does not
perform a peek-and-resize if the buffer size used by nfnl_recv is too small.

The only known client which may be affected by this change is 
libnetfilter_conntrack. However, this library uses nfnl_catch to get conntrack
events which are always much smaller than 4096 bytes (default receive buffer 
size).

This change boosts up performance in the receive path since we do only one recv
instead of two.
3 files changed