We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2a0c9aa commit f5223e9Copy full SHA for f5223e9
include/uapi/linux/can.h
@@ -175,6 +175,23 @@ struct sockaddr_can {
175
/* transport protocol class address information (e.g. ISOTP) */
176
struct { canid_t rx_id, tx_id; } tp;
177
178
+ /* J1939 address information */
179
+ struct {
180
+ /* 8 byte name when using dynamic addressing */
181
+ __u64 name;
182
+
183
+ /* pgn:
184
+ * 8 bit: PS in PDU2 case, else 0
185
+ * 8 bit: PF
186
+ * 1 bit: DP
187
+ * 1 bit: reserved
188
+ */
189
+ __u32 pgn;
190
191
+ /* 1 byte address */
192
+ __u8 addr;
193
+ } j1939;
194
195
/* reserved for future CAN protocols address information */
196
} can_addr;
197
};
0 commit comments