Problem about libnet on FreeBSD 6.0



Hi hackers,
I find that I can't include <net/ethernet.h> when I programming
with libnet,because $(CC) complains that "struct ether_addr redefined".
But I need some definitions in <net/ethernet.h>,struct ether_header etc.
Currently,I just copy the definitions I need from <net/ethernet.h>,but
it seems very ugly.Any one has some good ideas?
Thanks.

--
Three passions, simple but overwhelmingly strong, have governed my life:
the longing for love, the search for knowledge, and unbearable pity for
the suffering of mankind.
---------Bertrand Russell
_______________________________________________
freebsd-hackers@xxxxxxxxxxx mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@xxxxxxxxxxx"



Relevant Pages

  • Re: reading from a serial port
    ... >> array of structs, it uses a pointer to one element in an array ... >far enough to know that FILE is possibly a typedef to some struct. ... Ritchie, "The C Programming Language", 2nd Edition. ... the stdio library allocates a data buffer (BUFSIZ in stdio.h is ...
    (comp.unix.programmer)
  • Re: Timeless Classics of Software Engineering
    ... snipped most of a fabulous post about XP and engineering. ... > the problems of average users (problems hackers don't have at all). ... * 'Tog on Interface' and 'Tog on Software Design' ... * 'The Elements of Programming Style' ...
    (comp.lang.cpp)
  • Re: string class question..
    ... I didn't necessarily mean timing or memory overhead. ... when all I needed was a struct. ... that do usually do not tout it as the be-all end-all of programming. ... data hiding has it's uses. ...
    (comp.lang.cpp)
  • Re: WinCE Struct Help
    ... Some of us just started programming while others are more advanced. ... >> what do you mean basic concept of malloc and realloc?? ... But I want to use struct. ... >> malloc or realloc function for struct? ...
    (microsoft.public.windowsce.app.development)
  • Re: Getting class pointer from interface pointer [dont use structures?]
    ... reading a book on MFC programming by Richard M. Jones "Intro to MFC ... Jones is a professional and teaches as well, ... Say I have this struct definition: ...
    (microsoft.public.dotnet.languages.vc)