CAN_RAW_FILTER_MAX is only relevant for CAN_RAW sockets and used in linux/can/raw.c or in userspace applications that include the raw.h file anyway.
Showing the changes to include/uapi (2 of 2 files). Show all
Unified · Split
| @@ -285,6 +285,5 @@ struct can_filter { · 284 unmodified lines | |||
| 285 | }; | 285 | }; |
| 286 | 286 | ||
| 287 | #define CAN_INV_FILTER 0x20000000U /* to be set in can_filter.can_id */ | 287 | #define CAN_INV_FILTER 0x20000000U /* to be set in can_filter.can_id */ |
| 288 | #define CAN_RAW_FILTER_MAX 512 /* maximum number of can_filter set via setsockopt() */ | ||
| 289 | 288 | ||
| 290 | #endif /* !_UAPI_CAN_H */ | 289 | #endif /* !_UAPI_CAN_H */ |
| @@ -49,6 +49,8 @@ · 48 unmodified lines | |||
| 49 | #include <linux/can.h> | 49 | #include <linux/can.h> |
| 50 | 50 | ||
| 51 | #define SOL_CAN_RAW (SOL_CAN_BASE + CAN_RAW) | 51 | #define SOL_CAN_RAW (SOL_CAN_BASE + CAN_RAW) |
| 52 | #define CAN_RAW_FILTER_MAX 512 /* maximum number of can_filter set via setsockopt() */ | ||
| 53 | |||
| 52 | enum { | 54 | enum { |
| 53 | SCM_CAN_RAW_ERRQUEUE = 1, | 55 | SCM_CAN_RAW_ERRQUEUE = 1, |
| 54 | }; | 56 | }; |