#define __DBL_MIN_EXP__ (-1021) #define __FLT_MIN__ 1.17549435e-38F #define __CHAR_BIT__ 8 #define __WCHAR_MAX__ 2147483647 #define __DBL_DENORM_MIN__ 4.9406564584124654e-324 #define __FLT_EVAL_METHOD__ 0 #define __DBL_MIN_10_EXP__ (-307) #define __FINITE_MATH_ONLY__ 0 #define __SHRT_MAX__ 32767 #define __LDBL_MAX__ 1.18973149535723176502e+4932L #define __APPLE_CC__ 5465 #define __UINTMAX_TYPE__ long long unsigned int #define __SCHAR_MAX__ 127 #define __USER_LABEL_PREFIX__ _ #define __STDC_HOSTED__ 1 #define __DBL_DIG__ 15 #define __FLT_EPSILON__ 1.19209290e-7F #define __LDBL_MIN__ 3.36210314311209350626e-4932L #define __strong #define __APPLE__ 1 #define __DECIMAL_DIG__ 21 #define __LDBL_HAS_QUIET_NAN__ 1 #define __DYNAMIC__ 1
On Thu, May 14, 2009 at 2:28 PM, fooler mail <[email protected]> wrote: > hi, > > anyone care to run and show the output of the command below in your > mac os console? > > touch _temp_.c ; gcc -dM -E _temp_.c | more ; rm _temp_.c > > i wrote a program in C language that can create a customized tcp, udp > or icmp packets using raw socket. It can modify any fields or bits in > the header of those three protocols that i mentioned including the ip > header... it can be use in a good way (eg. testing firewall rules by > spoofing any fields in the header) or in a bad way (eg. denial of > service attack such as syn attack with a spoof source ip address) > > i tested this on freebsd, netbsd, dragonfly, linux, solaris and > openbsd... but... freebsd, netbsd, dragonfly are doing different way > with their ip header while linux, solaris and openbsd are doing the > other way... i want this code to be portable as possible to all > operating system... > > in order for my code to determined the host's OS.. i look at gcc's > predefined name for that OS.. for example... freebsd, netbsd and > dragonfly predefined names are __FreeBSD__, __NetBSD__ and > __DragonFly__ respectively.. > > current mac OS is based on freebsd.. ill just assume that the > construction of its ip header is the same with freebsd... > > fooler. > _________________________________________________ > Philippine Linux Users' Group (PLUG) Mailing List > http://lists.linux.org.ph/mailman/listinfo/plug > Searchable Archives: http://archives.free.net.ph > -- Regards, Danny Ching
_________________________________________________ Philippine Linux Users' Group (PLUG) Mailing List http://lists.linux.org.ph/mailman/listinfo/plug Searchable Archives: http://archives.free.net.ph

