basic: introduce socket_protocol_{from,to}_name()
And use them where they can be applicable.
This commit is contained in:
@@ -0,0 +1,9 @@
|
||||
BEGIN{
|
||||
print "static const char* const socket_protocol_names[] = { "
|
||||
}
|
||||
!/HOPOPTS/ {
|
||||
printf " [IPPROTO_%s] = \"%s\",\n", $1, tolower($1)
|
||||
}
|
||||
END{
|
||||
print "};"
|
||||
}
|
||||
Reference in New Issue
Block a user