[LLC]: set local mac addr at connect time when userland left it as zeroes

parent 087f8b0e
......@@ -425,6 +425,7 @@ static int llc_ui_connect(struct socket *sock, struct sockaddr *uaddr,
if (!dev)
goto out;
llc->dev = dev;
memcpy(llc->laddr.mac, llc->dev->dev_addr, IFHWADDRLEN);
} else
dev = llc->dev;
if (sk->sk_type != SOCK_STREAM)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment