Example #1
0
File: log.c Project: Alenevod/libnl
int nfnl_log_pf_unbind(struct nl_sock *nlh, uint8_t pf)
{
	struct nl_msg *msg;
	int err;

	if ((err = nfnl_log_build_pf_unbind(pf, &msg)) < 0)
		return err;

	return send_log_request(nlh, msg);
}
Example #2
0
File: log.c Project: DINKIN/tuo
int nfnl_log_pf_unbind(struct nl_handle *nlh, uint8_t pf)
{
	struct nl_msg *msg;

	msg = nfnl_log_build_pf_unbind(pf);
	if (!msg)
		return nl_get_errno();

	return send_log_msg(nlh, msg);
}