Skip to content

Commit

Permalink
Merge pull request #3 from pylessard/get_name-add-isotp-addr
Browse files Browse the repository at this point in the history
Added isotp information to output struct for getsockname syscall
  • Loading branch information
hartkopp authored Aug 3, 2017
2 parents 86bafdf + 324785b commit e65f4ce
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions net/can/isotp.c
Original file line number Diff line number Diff line change
Expand Up @@ -1175,6 +1175,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);

Expand Down

0 comments on commit e65f4ce

Please sign in to comment.