kSockAddrCanSize top-level constant

int const kSockAddrCanSize

Size of struct sockaddr_can on Linux x86_64.

Layout: sa_family_t can_family; // 2 bytes int can_ifindex; // 4 bytes union can_addr (16); // tp / mcgcp / j1939 — kernel uses // the largest variant size. Total = 24 bytes (with padding).

Implementation

const int kSockAddrCanSize = 16;