Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
torvalds
GitHub Repository: torvalds/linux
Path: blob/master/include/net/can.h
121797 views
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 <[email protected]>
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
30