can-eth-gw-utils Utilities  0.1
A bidirectional CAN to Ethernet Gateway (Utilities)
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
netlink.h
Go to the documentation of this file.
1 
11 /*****************************************************************************
12  * (C) Copyright 2013 Fabian Raab, Stefan Smarzly
13  *
14  * This file is part of CAN-Eth-GW.
15  *
16  * CAN-Eth-GW is free software: you can redistribute it and/or modify
17  * it under the terms of the GNU General Public License as published by
18  * the Free Software Foundation, either version 3 of the License, or
19  * (at your option) any later version.
20  *
21  * CAN-Eth-GW is distributed in the hope that it will be useful,
22  * but WITHOUT ANY WARRANTY; without even the implied warranty of
23  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
24  * GNU General Public License for more details.
25  *
26  * You should have received a copy of the GNU General Public License
27  * along with CAN-Eth-GW. If not, see <http://www.gnu.org/licenses/>.
28  *****************************************************************************/
29 
30 #ifndef __CAN_ETH_GW_UTILS_NETLINK_H__
31 #define __CAN_ETH_GW_UTILS_NETLINK_H__
32 
33 #include <stdint.h>
34 
36 #define F_CAN_FD 0x00000001
37 
42 enum gw_type {
50 };
51 #define TYPE_MAX (__TYPE_MAX - 1)
52 
58 enum {
65 };
66 #define CE_GW_C_MAX (__CE_GW_C_MAX - 1)
83 extern int ce_gw_add(char *dst_name, char *src_name, uint8_t type,
84  uint32_t flags);
85 
100 extern int ce_gw_del(uint32_t id, char *dev_name);
101 
117 extern int ce_gw_list(uint32_t id);
118 
127 extern int ce_gw_echo(char *message);
128 
139 extern int nl_sk_fam_init(void);
140 
148 extern void nl_sk_fam_exit(void);
149 
150 #endif
151