move internally used defines away from header
Signed-off-by: Luotao Fu <l.fu@pengutronix.de>pull/106/head^2
parent
bae25c1438
commit
bbac00bbc7
|
|
@ -17,16 +17,11 @@
|
|||
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||
*/
|
||||
|
||||
|
||||
#ifndef _SOCKETCAN_NETLINK_H
|
||||
#define _SOCKETCAN_NETLINK_H
|
||||
|
||||
#include <linux/can/netlink.h>
|
||||
|
||||
#define IFLA_CAN_MAX (__IFLA_CAN_MAX - 1)
|
||||
#define IF_UP 1
|
||||
#define IF_DOWN 2
|
||||
|
||||
#define GET_STATE 1
|
||||
#define GET_RESTART_MS 2
|
||||
#define GET_BITTIMING 3
|
||||
|
|
|
|||
|
|
@ -36,6 +36,11 @@
|
|||
#define NLMSG_TAIL(nmsg) \
|
||||
((struct rtattr *) (((void *) (nmsg)) + NLMSG_ALIGN((nmsg)->nlmsg_len)))
|
||||
|
||||
#define IFLA_CAN_MAX (__IFLA_CAN_MAX - 1)
|
||||
|
||||
#define IF_UP 1
|
||||
#define IF_DOWN 2
|
||||
|
||||
struct get_req {
|
||||
struct nlmsghdr n;
|
||||
struct rtgenmsg g;
|
||||
|
|
|
|||
Loading…
Reference in New Issue