This is the mail archive of the
libc-hacker@sourceware.cygnus.com
mailing list for the glibc project.
[Petter Reinholdtsen <pere@hungry.com>] libc/858: Missing ethertype.h and ETHERTYPE_* defines
- To: libc-hacker@cygnus.com
- Subject: [Petter Reinholdtsen <pere@hungry.com>] libc/858: Missing ethertype.h and ETHERTYPE_* defines
- From: Andreas Jaeger <aj@arthur.rhein-neckar.de>
- Date: 07 Nov 1998 08:20:43 +0100
- Cc: Petter Reinholdtsen <pere@hungry.com>
- Mail-Copies-To: never
Hi,
here's another bug report where I'd like to get your feedback/help.
Should we add ETHERTYPE_DN, ETHERTYPE_ATALK and ETHERTYPE_AARP?
<net/ethernet.h> already includes <linux/if_ether.h> but neither
defines those constants. I couldn't find those constants on Solaris
either.
Andreas
--
Andreas Jaeger aj@arthur.rhein-neckar.de jaeger@informatik.uni-kl.de
for pgp-key finger ajaeger@aixd1.rhrk.uni-kl.de
- To: bugs@gnu.org
- Subject: libc/858: Missing ethertype.h and ETHERTYPE_* defines
- From: Petter Reinholdtsen <pere@hungry.com>
- Date: Sat, 7 Nov 1998 02:29:04 +0100 (MET)
- Reply-To: pere@hungry.com
- Resent-Cc: gnats-admin@gnu.org
- Resent-Reply-To: bugs@gnu.org, pere@hungry.com
- Resent-To: libc-gnats@gnu.org
>Number: 858
>Category: libc
>Synopsis: Missing ethertype.h and ETHERTYPE_* defines
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: libc-gnats
>State: open
>Class: change-request
>Submitter-Id: unknown
>Arrival-Date: Fri Nov 06 20:40:01 EST 1998
>Last-Modified:
>Originator: Petter Reinholdtsen <pere@td.org.uit.no>
>Organization:
Tromsøstudentenes Dataforening
>Release: libc-2.0.7
>Environment:
Host type: i686-pc-linux-gnu
System: Linux rayek.student.uit.no 2.0.36 #1 Tue Oct 13 22:17:11 EDT 1998 i686 \
unknown
Architecture: i686
RedHat Linux 5.2
Addons: crypt linuxthreads localedata
Build CFLAGS: -O2 -m486 -fno-strength-reduce -g -DNDEBUG=1
Build CC: gcc -B$(common-objpfx)
Build shared: yes
Build profile: yes
Build omitfp: no
Stdio: libio
>Description:
While trying to compile
<URL:ftp://ftp.unipi.it/pub/local/ntop/source/ntop-1.0.src.tar.gz>, I
discovered that the headerfile ethertype.h which should define
ETHERTYPE_DN, ETHERTYPE_ATALK and ETHERTYPE_AARP is missing.
This is not the first time I discover programs using this header file
and define, so I think this should be fixed in glibc.
>How-To-Repeat:
Fetch code and try to compile
>Fix:
I beleave the correct defines are to be found int <linux/if_ether.h>,
and that a simple headerfile looking like this would make this problem
go away:
#include <linux/if_ether.h>
#define ETHERTYPE_ATALK ETH_P_AARP
#define ETHERTYPE_ATALK ETH_P_ATALK
#define ETHERTYPE_DN ETH_P_DEC
--
##> Petter Reinholdtsen <## | pere@td.org.uit.no
O- <SCRIPT Language="Javascript">window.close()</SCRIPT>
http://www.hungry.com/~pere/ | Go Mozilla, go! Go!
>Audit-Trail:
>Unformatted: