This is the mail archive of the libc-hacker@sourceware.cygnus.com mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

[Petter Reinholdtsen <pere@hungry.com>] libc/858: Missing ethertype.h and ETHERTYPE_* defines



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



>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:




Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]