int nfnl_log_pf_bind(struct nl_sock *nlh, uint8_t pf) { struct nl_msg *msg; int err; if ((err = nfnl_log_build_pf_bind(pf, &msg)) < 0) return err; return send_log_request(nlh, msg); }
int nfnl_log_pf_bind(struct nl_handle *nlh, uint8_t pf) { struct nl_msg *msg; msg = nfnl_log_build_pf_bind(pf); if (!msg) return nl_get_errno(); return send_log_msg(nlh, msg); }