mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 01:57:45 +00:00
strace: Show sun_path on AF_UNIX socket addresses
This commit is contained in:
parent
441a1ae35d
commit
6ff56a96bd
1 changed files with 5 additions and 0 deletions
|
@ -518,6 +518,11 @@ struct Formatter<struct sockaddr> : StandardFormatter {
|
||||||
", sin_port={}, sin_addr={}",
|
", sin_port={}, sin_addr={}",
|
||||||
address_in->sin_port,
|
address_in->sin_port,
|
||||||
IPv4Address(address_in->sin_addr.s_addr).to_string());
|
IPv4Address(address_in->sin_addr.s_addr).to_string());
|
||||||
|
} else if (address.sa_family == AF_UNIX) {
|
||||||
|
auto* address_un = (const struct sockaddr_un*)&address;
|
||||||
|
builder.appendff(
|
||||||
|
", sun_path={}",
|
||||||
|
address_un->sun_path);
|
||||||
}
|
}
|
||||||
builder.append('}');
|
builder.append('}');
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue