Rivoreo Source Code Repositories
src.rivoreo.one
/
systemd-stable
/
v239-21
/
.
/
src
/
basic
/
socket-protocol-to-name.awk
blob: 4848a7631a86e908bf702726ce1242ed95423b29 [
file
] [
log
] [
blame
] [
raw
]
BEGIN
{
print
"static const char* const socket_protocol_names[] = { "
}
!
/HOPOPTS/
{
printf
" [IPPROTO_%s] = \"%s\",\n"
,
$1
,
tolower
(
$1
)
}
END
{
print
"};"
}