xref: /linux/include/net/can.h (revision 23b0f90ba871f096474e1c27c3d14f455189d2d9)
1 /* SPDX-License-Identifier: (GPL-2.0 OR BSD-3-Clause) */
2 /*
3  * net/can.h
4  *
5  * Definitions for the CAN network socket buffer extensions
6  *
7  * Copyright (C) 2026 Oliver Hartkopp <socketcan@hartkopp.net>
8  *
9  */
10 
11 #ifndef _NET_CAN_H
12 #define _NET_CAN_H
13 
14 /**
15  * struct can_skb_ext - skb extensions for CAN specific content
16  * @can_iif: ifindex of the first interface the CAN frame appeared on
17  * @can_framelen: cached echo CAN frame length for bql
18  * @can_gw_hops: can-gw CAN frame time-to-live counter
19  * @can_ext_flags: CAN skb extensions flags
20  */
21 struct can_skb_ext {
22 	int	can_iif;
23 	u16	can_framelen;
24 	u8	can_gw_hops;
25 	u8	can_ext_flags;
26 };
27 
28 #endif /* _NET_CAN_H */
29