Sign in
third-party-mirror
/
systemd
/
2398d87694e8af48e92ff8fb5f9cf273f706fb00
/
.
/
src
/
shared
/
ip-protocol-to-name.awk
blob: a0671e7ee203203b502fb81320c591caf358a68f [
file
] [
log
] [
blame
]
# SPDX-License-Identifier: LGPL-2.1-or-later
BEGIN
{
print
"static const char* const ip_protocol_names[] = { "
}
!
/HOPOPTS/
{
printf
" [IPPROTO_%s] = \"%s\",\n"
,
$1
,
tolower
(
$1
)
}
END
{
print
"};"
}