Re: tcptrace problem with funtion Ether_Ntoa

From: Manikantan Ramadas (mramadas@masaka.cs.ohiou.edu)
Date: 01/08/04


Date: Thu, 8 Jan 2004 23:33:42 -0500
From: Manikantan Ramadas <mramadas@masaka.cs.ohiou.edu>
Subject: Re: tcptrace problem with funtion Ether_Ntoa
Message-ID: <20040109043342.GA29099@irg.cs.ohiou.edu>


Hi Prakash,

  I suspect "struct ether_addr" is not defined in any of the header files
included in tcptrace.h in HP-UX. It is defined (or included in header files
included from) in "/usr/include/netinet/if_ether.h" in Solaris/Linux.
Could you please check if such a file exists in HP-UX and if so contains
the definition (not just declaration) of struct ether_addr. It seems to
me that it is not the case.

  If so, you probably want to recursively search for the header file
(using "grep -r" or equivalent) that defines this structure under
/usr/include and include the header file in tcptrace.h. It would probably
fix it.

- Mani.

On Fri, Jan 09, 2004 at 03:28:24AM +0000, Prakash babu wrote:
> Hello all,
>
> I am working on a HP-UX 11.11 machine.when i make
> the tcp trace i get the following error.what may be the reason
>
>
> In file included from print.c:54:
> tcptrace.h:787: warning: `struct ether_addr' declared inside parameter list
> tcptrace.h:787: warning: its scope is only this definition or declaration, which is probably not what you want
> print.c: In function `printeth_packet':
> print.c:140: warning: passing arg 1 of `Ether_Ntoa' from incompatible pointer type
> print.c:141: warning: passing arg 1 of `Ether_Ntoa' from incompatible pointer type
> print.c: At top level:
> print.c:755: warning: `struct ether_addr' declared inside parameter list
> print.c:756: conflicting types for `Ether_Ntoa'
> tcptrace.h:787: previous declaration of `Ether_Ntoa'
> gmake: *** [print.o] Error 1
>
> with regards,
> Prakash
>
> Yahoo! India Mobile: Ringtones, Wallpapers, Picture Messages and more.Download now.

-- 
"A man is but the product of his thoughts. 
 What he thinks, he becomes."	 - Mahatma Gandhi
____________________________________________________________________
  
* Manikantan Ramadas * IRG, OU * http://irg.cs.ohiou.edu/~mramadas *
____________________________________________________________________

----------------------------------------------------------------------------
To unsubscribe, send a message with body containing "unsubscribe tcptrace" to
majordomo@tcptrace.org.




This archive was generated by hypermail 2.1.7 : 01/09/04 EST