summaryrefslogtreecommitdiff
path: root/src/shared/ip-protocol-to-name.awk
blob: a0671e7ee203203b502fb81320c591caf358a68f (plain)
1
2
3
4
5
6
7
8
9
10
11
# 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 "};"
}