netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] Documentation/networking: Fix basic node example document ISO 15765-2
@ 2025-02-03 22:47 Reyders Morales
  2025-02-04  7:40 ` Oliver Hartkopp
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: Reyders Morales @ 2025-02-03 22:47 UTC (permalink / raw)
  To: kuba
  Cc: Reyders Morales, Oliver Hartkopp, Marc Kleine-Budde,
	David S. Miller, Eric Dumazet, Paolo Abeni, Simon Horman,
	Jonathan Corbet, linux-can, netdev, linux-doc, linux-kernel

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>
---
 Documentation/networking/iso15765-2.rst | 4 ++--
 1 file 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)
-- 
2.43.0


^ permalink raw reply related	[flat|nested] 6+ messages in thread
[parent not found: <20250121225241.128810-1-reyders1@gmail.com>]

end of thread, other threads:[~2025-02-06  8:03 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-02-03 22:47 [PATCH] Documentation/networking: Fix basic node example document ISO 15765-2 Reyders Morales
2025-02-04  7:40 ` Oliver Hartkopp
2025-02-04 13:45 ` Simon Horman
2025-02-06  8:02 ` Marc Kleine-Budde
     [not found] <20250121225241.128810-1-reyders1@gmail.com>
2025-01-22  0:06 ` Jonathan Corbet
2025-01-22  0:48   ` Jakub Kicinski

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).