Rivoreo Source Code Repositories
src.rivoreo.one
/
systemd-stable
/
v243-rc1
/
.
/
src
/
shared
/
ip-protocol-to-name.awk
blob: 824f811f5ca4071e87adfc1c50d915ac331074b8 [
file
] [
log
] [
blame
] [
raw
]
BEGIN
{
print
"static const char* const ip_protocol_names[] = { "
}
!
/HOPOPTS/
{
printf
" [IPPROTO_%s] = \"%s\",\n"
,
$1
,
tolower
(
$1
)
}
END
{
print
"};"
}