Re: [tcpdump-workers] ETHERMTU

2007-09-05 Thread Saikiran Madugula
Guy Harris wrote: On Sep 5, 2007, at 2:17 PM, Saikiran Madugula wrote: Yes, I get warning when gencode.c gets compiled with the custom package. (ofcourse standalone libpcap compiles fine). gcc -O2 -I. -I -DHAVE_CONFIG_H -D_U_="__attribute__((unused))" -D -fPIC -DPIC -c ./gencode.c ./genc

Re: [tcpdump-workers] ETHERMTU

2007-09-05 Thread Guy Harris
On Sep 5, 2007, at 2:17 PM, Saikiran Madugula wrote: Yes, I get warning when gencode.c gets compiled with the custom package. (ofcourse standalone libpcap compiles fine). gcc -O2 -I. -I - DHAVE_CONFIG_H -D_U_="__attribute__((unused))" -D -fPIC - DPIC -c ./gencode.c ./gencode.c:87:1: war

Re: [tcpdump-workers] ETHERMTU

2007-09-05 Thread Saikiran Madugula
Guy Harris wrote: Saikiran Madugula wrote: I ran into this problem when I was trying to compile libpcap with a package which has support for a custom interface in Linux. I get a warning message about redefining ETHERMTU while compiling that package as the package uses net/ethernet.h. Do you

Re: [tcpdump-workers] ETHERMTU

2007-09-05 Thread Guy Harris
Saikiran Madugula wrote: I ran into this problem when I was trying to compile libpcap with a package which has support for a custom interface in Linux. I get a warning message about redefining ETHERMTU while compiling that package as the package uses net/ethernet.h. Do you get a warning messa

Re: [tcpdump-workers] ETHERMTU

2007-09-05 Thread Jun-ichiro itojun Hagino
> I ran into this problem when I was trying to compile libpcap with a > package which has support for a custom interface in Linux. I get a > warning message about redefining ETHERMTU while compiling that package > as the package uses net/ethernet.h. > > if gencode.c (or any other code) is indee

Re: [tcpdump-workers] ETHERMTU

2007-09-05 Thread Saikiran Madugula
I ran into this problem when I was trying to compile libpcap with a package which has support for a custom interface in Linux. I get a warning message about redefining ETHERMTU while compiling that package as the package uses net/ethernet.h. if gencode.c (or any other code) is indeed intended

Re: [tcpdump-workers] Ethermtu

2007-09-05 Thread Saikiran Madugula
I understand Linux is not standard but libpcap does support Linux. The question I have asked is it valid or am I missing something ? Jun-ichiro itojun Hagino wrote: gencode.c in libpcap defines ETHERMTU as 1500, is it good to redifine what standard linux does ? Eg in net/ethernet.h. I understa

Re: [tcpdump-workers] ETHERMTU

2007-09-05 Thread Bruce M Simpson
Saikiran Madugula wrote: Am extremely sorry for replying to a mail in the list. I was hoping to change the subject, but missed it. Re-sending as new email. --- Original Mail--- gencode.c in libpcap defines ETHERMTU as 1500, is it good to redifine what standard linux does ? Eg in net/ethernet.h

[tcpdump-workers] ETHERMTU

2007-09-05 Thread Saikiran Madugula
Am extremely sorry for replying to a mail in the list. I was hoping to change the subject, but missed it. Re-sending as new email. --- Original Mail--- gencode.c in libpcap defines ETHERMTU as 1500, is it good to redifine what standard linux does ? Eg in net/ethernet.h. I understand that genco