e045e325df
And use them where they can be applicable.
10 lines
187 B
Awk
10 lines
187 B
Awk
BEGIN{
|
|
print "static const char* const socket_protocol_names[] = { "
|
|
}
|
|
!/HOPOPTS/ {
|
|
printf " [IPPROTO_%s] = \"%s\",\n", $1, tolower($1)
|
|
}
|
|
END{
|
|
print "};"
|
|
}
|