From 324785bd58697a7853137f83dc0a510067aa9809 Mon Sep 17 00:00:00 2001 From: Pier-Yves Lessard Date: Wed, 2 Aug 2017 20:35:01 -0700 Subject: [PATCH] Added isotp information to output struct for getsockname syscall --- net/can/isotp.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/net/can/isotp.c b/net/can/isotp.c index 6a285c1..1763a0e 100644 --- a/net/can/isotp.c +++ b/net/can/isotp.c @@ -1159,6 +1159,8 @@ static int isotp_getname(struct socket *sock, struct sockaddr *uaddr, addr->can_family = AF_CAN; addr->can_ifindex = so->ifindex; + addr->can_addr.tp.rx_id = so->rxid; + addr->can_addr.tp.tx_id = so->txid; *len = sizeof(*addr);