Skip to content

Commit 9c785d7

Browse files
reymormehmetb0
authored andcommitted
Documentation/networking: fix basic node example document ISO 15765-2
BugLink: https://bugs.launchpad.net/bugs/2104873 [ Upstream commit d0b197b ] In the current struct sockaddr_can tp is member of can_addr. tp is not member of struct sockaddr_can. Signed-off-by: Reyders Morales <[email protected]> Reviewed-by: Simon Horman <[email protected]> Acked-by: Oliver Hartkopp <[email protected]> Link: https://patch.msgid.link/[email protected] Fixes: 67711e0 ("Documentation: networking: document ISO 15765-2") Signed-off-by: Marc Kleine-Budde <[email protected]> Signed-off-by: Sasha Levin <[email protected]> Signed-off-by: Noah Wager <[email protected]>
1 parent 9958a28 commit 9c785d7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Documentation/networking/iso15765-2.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -369,8 +369,8 @@ to their default.
369369
370370
addr.can_family = AF_CAN;
371371
addr.can_ifindex = if_nametoindex("can0");
372-
addr.tp.tx_id = 0x18DA42F1 | CAN_EFF_FLAG;
373-
addr.tp.rx_id = 0x18DAF142 | CAN_EFF_FLAG;
372+
addr.can_addr.tp.tx_id = 0x18DA42F1 | CAN_EFF_FLAG;
373+
addr.can_addr.tp.rx_id = 0x18DAF142 | CAN_EFF_FLAG;
374374
375375
ret = bind(s, (struct sockaddr *)&addr, sizeof(addr));
376376
if (ret < 0)

0 commit comments

Comments
 (0)