From: Claudio-Daniel Freire Date: Mon, 18 Apr 2011 15:53:13 +0000 (+0200) Subject: Utility program to print out distro-dependant constants X-Git-Tag: nepi_v2~153 X-Git-Url: http://git.onelab.eu/?a=commitdiff_plain;h=6a24f641e8a8f9a4c383e5ca34e9977984d1f67c;p=nepi.git Utility program to print out distro-dependant constants --- diff --git a/scripts/consts.c b/scripts/consts.c new file mode 100644 index 00000000..283993fb --- /dev/null +++ b/scripts/consts.c @@ -0,0 +1,24 @@ +#include +#include +#include +#include +#include +#include +#include + +int main() +{ + printf("ETH_P_ALL = 0x%08x\n", ETH_P_ALL); + printf("ETH_P_IP = 0x%08x\n", ETH_P_IP); + printf("TUNSETIFF = 0x%08x\n", TUNSETIFF); + printf("IFF_NO_PI = 0x%08x\n", IFF_NO_PI); + printf("IFF_TAP = 0x%08x\n", IFF_TAP); + printf("IFF_TUN = 0x%08x\n", IFF_TUN); + printf("IFF_VNET_HDR = 0x%08x\n", IFF_VNET_HDR); + printf("TUN_PKT_STRIP = 0x%08x\n", TUN_PKT_STRIP); + printf("IFHWADDRLEN = 0x%08x\n", IFHWADDRLEN); + printf("IFNAMSIZ = 0x%08x\n", IFNAMSIZ); + printf("IFREQ_SZ = 0x%08x\n", sizeof(struct ifreq)); + printf("FIONREAD = 0x%08x\n", FIONREAD); + return 0; +}