Logo Search packages:      
Sourcecode: libnetfilter-queue version File versions  Download package

int nfq_bind_pf ( struct nfq_handle *  h,
u_int16_t  pf 
)

nfq_bind_pf - bind a nfqueue handler to a given protocol family

Parameters:
h Netfilter queue connection handle obtained via call to nfq_open()
pf protocol family to bind to nfqueue handler obtained from nfq_open()
Binds the given queue connection handle to process packets belonging to the given protocol family (ie. PF_INET, PF_INET6, etc).

Returns:
integer inferior to 0 in case of failure

Definition at line 393 of file libnetfilter_queue.c.

{
      return __build_send_cfg_msg(h, NFQNL_CFG_CMD_PF_BIND, 0, pf);
}


Generated by  Doxygen 1.6.0   Back to index