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 for use across
several operating systems then it should be careful not pollute name
space of the platforms it intends to be used on. Please correct me if I
am wrong.
Thanks,
Saikiran.
Bruce M Simpson wrote:
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. I understand that
gencode doesnot include that file.
gencode.c is intended for use across several operating systems,
therefore the definition of a preprocessor symbol which happens to have
the same name as a symbol in the Linux system headers is not an issue.
regards,
BMS
-
This is the tcpdump-workers list.
Visit https://cod.sandelman.ca/ to unsubscribe.
-
This is the tcpdump-workers list.
Visit https://cod.sandelman.ca/ to unsubscribe.