summaryrefslogtreecommitdiff
path: root/Documentation
diff options
context:
space:
mode:
authorReyders Morales <reyders1@gmail.com>2025-02-03 23:47:20 +0100
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2025-02-21 14:10:44 +0100
commit952d281b6813a5d4c25d5ccfda795f5810635fa8 (patch)
tree07279abb5518b43832e43fb7113651c06e2254ef /Documentation
parenta718272e40943799d3608c0a8502543d87c38cd2 (diff)
downloadlinux-952d281b6813a5d4c25d5ccfda795f5810635fa8.tar.gz
linux-952d281b6813a5d4c25d5ccfda795f5810635fa8.tar.bz2
linux-952d281b6813a5d4c25d5ccfda795f5810635fa8.zip
Documentation/networking: fix basic node example document ISO 15765-2
[ Upstream commit d0b197b6505fe3788860fc2a81b3ce53cbecc69c ] 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 <reyders1@gmail.com> Reviewed-by: Simon Horman <horms@kernel.org> Acked-by: Oliver Hartkopp <socketcan@hartkopp.net> Link: https://patch.msgid.link/20250203224720.42530-1-reyders1@gmail.com Fixes: 67711e04254c ("Documentation: networking: document ISO 15765-2") Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de> Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'Documentation')
-rw-r--r--Documentation/networking/iso15765-2.rst4
1 files changed, 2 insertions, 2 deletions
diff --git a/Documentation/networking/iso15765-2.rst b/Documentation/networking/iso15765-2.rst
index 0e9d96074178..37ebb2c417cb 100644
--- a/Documentation/networking/iso15765-2.rst
+++ b/Documentation/networking/iso15765-2.rst
@@ -369,8 +369,8 @@ to their default.
addr.can_family = AF_CAN;
addr.can_ifindex = if_nametoindex("can0");
- addr.tp.tx_id = 0x18DA42F1 | CAN_EFF_FLAG;
- addr.tp.rx_id = 0x18DAF142 | CAN_EFF_FLAG;
+ addr.can_addr.tp.tx_id = 0x18DA42F1 | CAN_EFF_FLAG;
+ addr.can_addr.tp.rx_id = 0x18DAF142 | CAN_EFF_FLAG;
ret = bind(s, (struct sockaddr *)&addr, sizeof(addr));
if (ret < 0)