1 2 3 4 5 6
#!/bin/sh set -eu $1 -dM -include net/if_arp.h -include "$2" -include "$3" - </dev/null | \ awk '/^#define[ \t]+ARPHRD_[^ \t]+[ \t]+[^ \t]/ { print $2; }' | \ sed -e 's/ARPHRD_//'