STRUCT SOCKADDR_CAN(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

okay so bestie, this is the struct sockaddr_can(9) page from the Kernel API Manual, section 9 β€” and it’s literally the sockaddr structure for CAN sockets. iconic kernel-address energy, no cap πŸ’…

✨ NAME ✨

struct sockaddr_can β€” the sockaddr structure for CAN sockets. that’s the whole vibe, fr fr 🫢

🌸 SYNOPSIS 🌸

here’s the struct exactly as it is, no edits, no β€œi fixed it” behavior:

       struct sockaddr_can {
           __kernel_sa_family_t can_family;
           int can_ifindex;
           union {
             struct {
               canid_t rx_id, tx_id;
             } tp;
             struct {
               __u64 name;
               __u32 pgn;
               __u8 addr;
             } j1939;
           } can_addr;
        };

πŸŽ€ Members πŸŽ€

  • can_family β€” the address family number, and it’s AF_CAN. that’s the family field, bestie 🌸
  • can_ifindex β€” the CAN network interface index. it’s giving β€œwhich interface are we talking about” πŸ‘‘
  • can_addr β€” protocol specific address information. this is the address-info part, protocol-specific and all πŸ’«

πŸ”₯ SEE ALSO πŸ”₯

  • Kernel file ./include/uapi/linux/can.h
  • struct can_frame(9)
  • struct canfd_frame(9)
  • struct canxl_frame(9)
  • struct can_filter(9)

and that’s the page, bestie πŸŽ€ sourced from ./include/uapi/linux, dated October 2026, signing off as struct sockaddr_can(9) β€” mwah πŸ’‹βœ¨

πŸ“¦ where this page comes from