summaryrefslogtreecommitdiffstats
path: root/src/basic/af-to-name.awk
blob: 18d0a8972845c1e7a2e3c6d2a0f558a64c6c78b4 (plain)
1
2
3
4
5
6
7
8
9
BEGIN{
        print "static const char* const af_names[] = { "
}
!/AF_FILE/ && !/AF_ROUTE/ && !/AF_LOCAL/ {
        printf "        [%s] = \"%s\",\n", $1, $1
}
END{
        print "};"
}