PageRenderTime 11ms CodeModel.GetById 9ms app.highlight 1ms RepoModel.GetById 0ms app.codeStats 0ms

/include/linux/can/raw.h

https://bitbucket.org/cyanogenmod/android_kernel_asus_tf300t
C Header | 31 lines | 11 code | 6 blank | 14 comment | 0 complexity | b9d0d750235848ee945c0f336e1d2f79 MD5 | raw file
Possible License(s): LGPL-2.0, AGPL-1.0, GPL-2.0
 1/*
 2 * linux/can/raw.h
 3 *
 4 * Definitions for raw CAN sockets
 5 *
 6 * Authors: Oliver Hartkopp <oliver.hartkopp@volkswagen.de>
 7 *          Urs Thuermann   <urs.thuermann@volkswagen.de>
 8 * Copyright (c) 2002-2007 Volkswagen Group Electronic Research
 9 * All rights reserved.
10 *
11 * Send feedback to <socketcan-users@lists.berlios.de>
12 *
13 */
14
15#ifndef CAN_RAW_H
16#define CAN_RAW_H
17
18#include <linux/can.h>
19
20#define SOL_CAN_RAW (SOL_CAN_BASE + CAN_RAW)
21
22/* for socket options affecting the socket (not the global system) */
23
24enum {
25	CAN_RAW_FILTER = 1,	/* set 0 .. n can_filter(s)          */
26	CAN_RAW_ERR_FILTER,	/* set filter for error frames       */
27	CAN_RAW_LOOPBACK,	/* local loopback (default:on)       */
28	CAN_RAW_RECV_OWN_MSGS	/* receive my own msgs (default:off) */
29};
30
31#endif