Skip to contentSkip to conversation

Documentation/networking: Fix basic node example document ISO 15765-2

PATCH Applied Reyders Morales 4 participants 4 messages Feb 3, 2025 – Feb 6, 2025

Subsystems (5)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Documentation/networking: Fix basic node example document ISO 15765-2

In the current struct sockaddr_can tp is member of can_addr. tp is not member of struct sockaddr_can.

---
 Documentation/networking/iso15765-2.rst | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
Documentation/networking/iso15765-2.rst +2 -2
index 0e9d96074178..37ebb2c417cb 100644
@@ -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)
Signature · 1 line
2.43.0
maintainer Acked-by on v1 1/1
#1 lore raw
Quoted 4 lines · Reyders Morales

In the current struct sockaddr_can tp is member of can_addr. tp is not member of struct sockaddr_can.

Thanks!

Quoted 19 lines
---
  Documentation/networking/iso15765-2.rst | 4 ++--
  1 file changed, 2 insertions(+), 2 deletions(-)
Documentation/networking/iso15765-2.rst +2 -2
index 0e9d96074178..37ebb2c417cb 100644
@@ -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)
maintainer Applied
#3 lore raw
In reply to Reyders Morales
Quoted 4 lines · Reyders Morales

In the current struct sockaddr_can tp is member of can_addr. tp is not member of struct sockaddr_can.

Applied to linux-can.

Thanks,
Marc

Signature · 4 lines
Pengutronix e.K.                 | Marc Kleine-Budde          |
Embedded Linux                   | https://www.pengutronix.de |
Vertretung Nürnberg              | Phone: +49-5121-206917-129 |
Amtsgericht Hildesheim, HRA 2686 | Fax:   +49-5121-206917-9   |