Blame libnetlabel/netlabel_internal.h
|
Packit |
51d0f7 |
/*
|
|
Packit |
51d0f7 |
* NetLabel Library Internals
|
|
Packit |
51d0f7 |
*
|
|
Packit |
51d0f7 |
* Author: Paul Moore <paul@paul-moore.com>
|
|
Packit |
51d0f7 |
*
|
|
Packit |
51d0f7 |
*/
|
|
Packit |
51d0f7 |
|
|
Packit |
51d0f7 |
/*
|
|
Packit |
51d0f7 |
* (c) Copyright Hewlett-Packard Development Company, L.P., 2006
|
|
Packit |
51d0f7 |
*
|
|
Packit |
51d0f7 |
* This program is free software: you can redistribute it and/or modify
|
|
Packit |
51d0f7 |
* it under the terms of version 2 of the GNU General Public License as
|
|
Packit |
51d0f7 |
* published by the Free Software Foundation.
|
|
Packit |
51d0f7 |
*
|
|
Packit |
51d0f7 |
* This program is distributed in the hope that it will be useful,
|
|
Packit |
51d0f7 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
Packit |
51d0f7 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
Packit |
51d0f7 |
* GNU General Public License for more details.
|
|
Packit |
51d0f7 |
*
|
|
Packit |
51d0f7 |
* You should have received a copy of the GNU General Public License
|
|
Packit |
51d0f7 |
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
Packit |
51d0f7 |
*
|
|
Packit |
51d0f7 |
*/
|
|
Packit |
51d0f7 |
|
|
Packit |
51d0f7 |
#ifndef _NETLINK_COMM_H
|
|
Packit |
51d0f7 |
#define _NETLINK_COMM_H_
|
|
Packit |
51d0f7 |
|
|
Packit |
51d0f7 |
#include <netlink/netlink.h>
|
|
Packit |
51d0f7 |
#include <netlink/genl/genl.h>
|
|
Packit |
51d0f7 |
#include <netlink/genl/ctrl.h>
|
|
Packit |
51d0f7 |
|
|
Packit |
51d0f7 |
/* NetLabel communication handle */
|
|
Packit |
51d0f7 |
struct nlbl_handle {
|
|
Packit |
51d0f7 |
struct nl_sock *nl_sock;
|
|
Packit |
51d0f7 |
};
|
|
Packit |
51d0f7 |
|
|
Packit |
51d0f7 |
#define NL_MULTI_CONTINUE(hdr) \
|
|
Packit |
51d0f7 |
(((hdr)->nlmsg_type == 0) || \
|
|
Packit |
51d0f7 |
(((hdr)->nlmsg_flags & NLM_F_MULTI) && \
|
|
Packit |
51d0f7 |
((hdr)->nlmsg_type != NLMSG_DONE)))
|
|
Packit |
51d0f7 |
|
|
Packit |
51d0f7 |
#endif
|