]>
Commit | Line | Data |
---|---|---|
9ee03516 ZJS |
1 | # SPDX-License-Identifier: LGPL-2.1-or-later |
2 | ||
b884196c | 3 | BEGIN{ |
7e833f30 | 4 | print "const char *arphrd_to_name(int id) {" |
79893116 | 5 | print " switch (id) {" |
b884196c | 6 | } |
35bdba21 | 7 | !/^HDLC$/ { |
7e833f30 | 8 | printf " case ARPHRD_%s: return \"%s\";\n", $1, $1 |
b884196c ZJS |
9 | } |
10 | END{ | |
7e833f30 ZJS |
11 | print " default: return NULL;" |
12 | print " }" | |
13 | print "}" | |
5c23128d | 14 | } |