tcpdump mailing list archives

Re: ETHERMTU


From: itojun () itojun org (Jun-ichiro itojun Hagino)
Date: Thu, 6 Sep 2007 01:16:26 +0900 (JST)

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.

        namespace is not protected when non-POSIX headers are used, so i
        do not think only libpcap headers are in the wrong.  net/ethernet.h
        is in the wrong too.

itojun
-
This is the tcpdump-workers list.
Visit https://cod.sandelman.ca/ to unsubscribe.


Current thread: