net/memif: fix abstract socket address length
authorNathan Skrzypczak <nathan.skrzypczak@gmail.com>
Fri, 23 Jul 2021 09:18:57 +0000 (11:18 +0200)
committerThomas Monjalon <thomas@monjalon.net>
Fri, 30 Jul 2021 11:25:54 +0000 (13:25 +0200)
commit4e30586dcdf09e670f2e3c6b58c919f6b887d431
tree7798ed81262cf59f2cd1f6d749d80df0fc4708e1
parent08b3a170cb9c84bde34dddee47fb60144370c87a
net/memif: fix abstract socket address length

This fixes using abstract sockets with memifs.
We were not passing the exact addr_len,
which requires zeroing the remaining sun_path
and doesn't appear well in other utilities (e.g. lsof -U)

Signed-off-by: Nathan Skrzypczak <nathan.skrzypczak@gmail.com>
Reviewed-by: Jakub Grajciar <jgrajcia@cisco.com>
drivers/net/memif/memif_socket.c