History

can: uapi: move CAN_RAW_FILTER_MAX definition to raw.h

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.

Oliver Hartkopp committed 3 years ago

Commit 735d86a1 parent dc7daba2 files · +2 −1Browse files

Showing the changes to include/uapi (2 of 2 files). Show all

Unified · Split

2 files
  1. include/uapi/linux/can.h +0 −1
  2. include/uapi/linux/can/raw.h +2 −0
include/uapi/linux/can.h+0−1
@@ -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 */
include/uapi/linux/can/raw.h+2−0
@@ -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
52enum {54enum {
53 SCM_CAN_RAW_ERRQUEUE = 1,55 SCM_CAN_RAW_ERRQUEUE = 1,
54};56};

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t