STRUCT SOCKADDR_CAN(9)
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βsAF_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
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms