Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 14 Jun 1995 15:02:10 +0200 (MET DST)
From:      Luigi Rizzo <luigi@labinfo.iet.unipi.it>
To:        hackers@freebsd.org
Subject:   ed0 troubles with 2.0.5
Message-ID:  <199506141302.PAA23354@labinfo.iet.unipi.it>

next in thread | raw e-mail | index | archive | help
I having problems with 2.0.5R and ed0. if_ed.c is version 1.73

The kernel seems unable to recognize my NE2000 clone card. I am
compiling a kernel with 1.68 to see if things work better.
In the meantime, a diff between 1.68 and 1.73 shows the following:
  
  prova# diff -bw if_ed.c.16* if_ed.c.17*
  16c16
  <  * $Id: if_ed.c,v 1.68 1995/03/16 18:12:01 bde Exp $
  ---
  >  * if_ed.c,v 1.73 1995/05/30 08:01:58 rgrimes Exp
  172,173c172,173
  < #define       ETHER_MIN_LEN   64
  < #define ETHER_MAX_LEN 1518
  ---
  > #define       ETHER_MIN_LEN   60
  > #define ETHER_MAX_LEN 1514
  183,184c183,185
  <       DC_UNCONFIGURED,
  <       ""                      /* description */
  ---
  >       DC_UNCONFIGURED,        /* state */
  >       "",                     /* description */
  >       DC_CLS_NETIF            /* class */
  213a215
  > #ifndef DEV_LKM
  214a217
  > #endif /* not DEV_LKM */
  467,489d469
  < 
  <       if (sc->is790) {
     ... 790 code...
  <       }
  < 
  526c506
  <                * Use what the board tells us.
  ---
  >                * If no interrupt specified (or "?"), use what the board tells us.
  527a508
  >               if (isa_dev->id_irq <= 0)
  546c527
  <                * Use what the board tells us.
  ---
  >                * If no interrupt specified (or "?"), use what the board tells us.
  547a529
  >               if (isa_dev->id_irq <= 0)
  1703c1685
  <               if (len > ETHER_MAX_LEN) {
  ---
  >               if (len > ETHER_MAX_LEN+4) { /* len includes 4 byte
  header */
  
  
While unrelated to my problem, the change in ETHER_MIN_LEN causes
the code to send shorter packets than before. Is this correct ?

  	Luigi
====================================================================
Luigi Rizzo                     Dip. di Ingegneria dell'Informazione
email: luigi@iet.unipi.it       Universita' di Pisa
tel: +39-50-568533              via Diotisalvi 2, 56126 PISA (Italy)
fax: +39-50-568522
====================================================================
  



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199506141302.PAA23354>