コード例 #1
0
ファイル: log.c プロジェクト: Alenevod/libnl
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);
}
コード例 #2
0
ファイル: log.c プロジェクト: DINKIN/tuo
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);
}