Back to home page

OSCL-LXR

 
 

    


0001 /*
0002  * net/tipc/netlink.h: Include file for TIPC netlink code
0003  *
0004  * Copyright (c) 2014, Ericsson AB
0005  * All rights reserved.
0006  *
0007  * Redistribution and use in source and binary forms, with or without
0008  * modification, are permitted provided that the following conditions are met:
0009  *
0010  * 1. Redistributions of source code must retain the above copyright
0011  *    notice, this list of conditions and the following disclaimer.
0012  * 2. Redistributions in binary form must reproduce the above copyright
0013  *    notice, this list of conditions and the following disclaimer in the
0014  *    documentation and/or other materials provided with the distribution.
0015  * 3. Neither the names of the copyright holders nor the names of its
0016  *    contributors may be used to endorse or promote products derived from
0017  *    this software without specific prior written permission.
0018  *
0019  * Alternatively, this software may be distributed under the terms of the
0020  * GNU General Public License ("GPL") version 2 as published by the Free
0021  * Software Foundation.
0022  *
0023  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
0024  * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
0025  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
0026  * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
0027  * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
0028  * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
0029  * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
0030  * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
0031  * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
0032  * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
0033  * POSSIBILITY OF SUCH DAMAGE.
0034  */
0035 
0036 #ifndef _TIPC_NETLINK_H
0037 #define _TIPC_NETLINK_H
0038 #include <net/netlink.h>
0039 
0040 extern struct genl_family tipc_genl_family;
0041 
0042 struct tipc_nl_msg {
0043     struct sk_buff *skb;
0044     u32 portid;
0045     u32 seq;
0046 };
0047 
0048 extern const struct nla_policy tipc_nl_name_table_policy[];
0049 extern const struct nla_policy tipc_nl_sock_policy[];
0050 extern const struct nla_policy tipc_nl_net_policy[];
0051 extern const struct nla_policy tipc_nl_link_policy[];
0052 extern const struct nla_policy tipc_nl_node_policy[];
0053 extern const struct nla_policy tipc_nl_prop_policy[];
0054 extern const struct nla_policy tipc_nl_bearer_policy[];
0055 extern const struct nla_policy tipc_nl_media_policy[];
0056 extern const struct nla_policy tipc_nl_udp_policy[];
0057 extern const struct nla_policy tipc_nl_monitor_policy[];
0058 
0059 int tipc_netlink_start(void);
0060 int tipc_netlink_compat_start(void);
0061 void tipc_netlink_stop(void);
0062 void tipc_netlink_compat_stop(void);
0063 
0064 #endif