Commit 5048f9a0 authored by Stephen Hemminger's avatar Stephen Hemminger

ss: use rta_getattr_u32

parent defd61ca
...@@ -2172,7 +2172,7 @@ static int unix_show_sock(struct nlmsghdr *nlh, struct filter *f) ...@@ -2172,7 +2172,7 @@ static int unix_show_sock(struct nlmsghdr *nlh, struct filter *f)
sprintf(name, "*"); sprintf(name, "*");
if (tb[UNIX_DIAG_PEER]) if (tb[UNIX_DIAG_PEER])
peer_ino = *(int *)RTA_DATA(tb[UNIX_DIAG_PEER]); peer_ino = rta_getattr_u32(tb[UNIX_DIAG_PEER]);
else else
peer_ino = 0; peer_ino = 0;
......
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