6 lines
165 B
Bash
Executable file
6 lines
165 B
Bash
Executable file
#!/bin/sh -eu
|
|
|
|
$1 -dM -include net/if_arp.h - </dev/null | \
|
|
awk '/^#define[ \t]+ARPHRD_[^ \t]+[ \t]+[^ \t]/ { print $2; }' | \
|
|
sed -e 's/ARPHRD_//'
|