From 6a24f641e8a8f9a4c383e5ca34e9977984d1f67c Mon Sep 17 00:00:00 2001 From: Claudio-Daniel Freire Date: Mon, 18 Apr 2011 17:53:13 +0200 Subject: [PATCH] Utility program to print out distro-dependant constants --- scripts/consts.c | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 scripts/consts.c 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; +} -- 2.47.0