|
From: lak on 23 Jun 2008 00:05 There are some macros in the traceroute, but I can't able to know what is the use of that macro. Can any one give me a hint over the following macros? HAVE_USLEEP __hpux HAVE_SYS_SELECT_H HAVE_ICMP_NEXTMTU BYTESWAP_IP_HDR HAVE_RAW_OPTIONS
From: Jens Thoms Toerring on 23 Jun 2008 07:24 lak <lakindia89(a)gmail.com> wrote: > There are some macros in the traceroute, but I can't able to know what > is the use of that macro. Can any one give me a hint over the > following macros? > HAVE_USLEEP > __hpux > HAVE_SYS_SELECT_H > HAVE_ICMP_NEXTMTU > BYTESWAP_IP_HDR > HAVE_RAW_OPTIONS I guess you're talking about the source code for traceroute. These macros look like something generated by some kind of configuration script that gets run before the program is compiled and tests the system to try to find out what can be used on the target platform. E.g. HAVE_SYS_SELECT_H looks a lot like it would tell you if the include file <sys/select.h> exists and thus can savely be included. HAVE_USLEEP probably indicates if the usleep() function is available. And __hpux could set by the compiler when you're compiling on a HPUX system. Regards, Jens -- \ Jens Thoms Toerring ___ jt(a)toerring.de \__________________________ http://toerring.de
From: Joachim Schmitz on 23 Jun 2008 07:25 lak wrote: > There are some macros in the traceroute, but I can't able to know what > is the use of that macro. Can any one give me a hint over the > following macros? Aren't these pretty obvious,at least some of them? > HAVE_USLEEP #defined it when the system has a usleep() funtion > __hpux is #defined if the OS is HP/UX > HAVE_SYS_SELECT_H #define in if you have /usr/include/sys/select.h > HAVE_ICMP_NEXTMTU > BYTESWAP_IP_HDR > HAVE_RAW_OPTIONS No sure about these, guess the BYTESWAP_IP_HDR is baout htonl() and friends Bye, Jojo
|
Pages: 1 Prev: ANN: Seed7 Release 2008-06-22 Next: Debugging an exec'ed process |