can.h 663 B

12345678910111213141516171819202122232425262728
  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. #ifndef _NET_CAN_H
  11. #define _NET_CAN_H
  12. /**
  13. * struct can_skb_ext - skb extensions for CAN specific content
  14. * @can_iif: ifindex of the first interface the CAN frame appeared on
  15. * @can_framelen: cached echo CAN frame length for bql
  16. * @can_gw_hops: can-gw CAN frame time-to-live counter
  17. * @can_ext_flags: CAN skb extensions flags
  18. */
  19. struct can_skb_ext {
  20. int can_iif;
  21. u16 can_framelen;
  22. u8 can_gw_hops;
  23. u8 can_ext_flags;
  24. };
  25. #endif /* _NET_CAN_H */