]> git.ipfire.org Git - thirdparty/systemd.git/blob - src/shared/ip-protocol-to-name.awk
util: rename socket_protocol_{from,to}_name() to ip_protocol_{from,to}_name()
[thirdparty/systemd.git] / src / shared / ip-protocol-to-name.awk
1 BEGIN{
2 print "static const char* const ip_protocol_names[] = { "
3 }
4 !/HOPOPTS/ {
5 printf " [IPPROTO_%s] = \"%s\",\n", $1, tolower($1)
6 }
7 END{
8 print "};"
9 }