diff options
Diffstat (limited to 'src/basic/arphrd-to-name.awk')
-rw-r--r-- | src/basic/arphrd-to-name.awk | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/src/basic/arphrd-to-name.awk b/src/basic/arphrd-to-name.awk index 57e4680f17..5a35673e2c 100644 --- a/src/basic/arphrd-to-name.awk +++ b/src/basic/arphrd-to-name.awk @@ -1,5 +1,9 @@ -BEGIN{ print "static const char* const arphrd_names[] = { "} +BEGIN{ + print "static const char* const arphrd_names[] = { " +} !/CISCO/ { - printf " [ARPHRD_%s] = \"%s\",\n", $1, $1 + printf " [ARPHRD_%s] = \"%s\",\n", $1, $1 +} +END{ + print "};" } -END{print "};"} |