Debian Codegraph @

src/shared/ip-protocol-to-name.awk

raw
1 # SPDX-License-Identifier: LGPL-2.1-or-later
2
3 BEGIN{
4 print "static const char* const ip_protocol_names[] = { "
5 }
6 !/HOPOPTS/ {
7 printf " [IPPROTO_%s] = \"%s\",\n", $1, tolower($1)
8 }
9 END{
10 print "};"
11 }