raw.h 717 B

123456789101112131415161718192021222324252627282930
  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. */
  12. #ifndef CAN_RAW_H
  13. #define CAN_RAW_H
  14. #include <linux/can.h>
  15. #define SOL_CAN_RAW (SOL_CAN_BASE + CAN_RAW)
  16. /* for socket options affecting the socket (not the global system) */
  17. enum {
  18. CAN_RAW_FILTER = 1, /* set 0 .. n can_filter(s) */
  19. CAN_RAW_ERR_FILTER, /* set filter for error frames */
  20. CAN_RAW_LOOPBACK, /* local loopback (default:on) */
  21. CAN_RAW_RECV_OWN_MSGS /* receive my own msgs (default:off) */
  22. };
  23. #endif