Skip site navigation (1)Skip section navigation (2)
Date:      Thu,  1 Oct 98 13:33:50 +0200
From:      David Wetzel <dave@turbocat.de>
To:        Benjamin Lorenz <lorenz@ps.uni-sb.de>
Cc:        freebsd-isdn@FreeBSD.ORG
Subject:   Re: structure has no member named `if_unit'
Message-ID:  <199810011133.NAA00377@cat.turbocat.de>
References:  <199810011042.MAA23825@toto.ps.uni-sb.de>

next in thread | previous in thread | raw e-mail | index | archive | help
Benjamin Lorenz <lorenz@ps.uni-sb.de> wrote:
(...)
> ../../../../i4b/driver/i4b_ipr.c:493: structure has no member named
> `if_unit'
*** Error code 1

I think, I contributed a patch for somthing like that some time ago.

alice# diff -c /Net/alice/usr/src/i4b/driver/i4b_ipr.c.org  
/Net/alice/usr/src/i4b/driver/i4b_ipr.c
*** /Net/alice/usr/src/i4b/driver/i4b_ipr.c.org Tue Jul 14 01:40:20 1998
--- /Net/alice/usr/src/i4b/driver/i4b_ipr.c     Wed Jul 15 12:56:36 1998
***************
*** 461,468 ****
--- 461,470 ----
  {
  #ifdef __FreeBSD__
        struct ipr_softc *sc = &ipr_softc[ifp->if_unit];
+       int unit = ifp->if_unit;
  #else
        struct ipr_softc *sc = ifp->if_softc;
+       int unit = sc->sc_unit;
  #endif

        struct ifreq *ifr = (struct ifreq *)data;
***************
*** 490,498 ****
                        {
                                /* disconnect ISDN line */

!                               i4b_l4_drvrdisc(BDRV_IPR, ifp->if_unit);

!                               /* sc->sc_if.if_flags &= ~IFF_RUNNING; */
                        }

                        if(ifr->ifr_flags & IFF_DEBUG)
--- 492,500 ----
                        {
                                /* disconnect ISDN line */

!                       i4b_l4_drvrdisc(BDRV_IPR, unit);

!                       /* sc->sc_if.if_flags &= ~IFF_RUNNING; */
                        }

                        if(ifr->ifr_flags & IFF_DEBUG)

ls -l /Net/alice/usr/src/i4b/driver/i4b_ipr.c.org  
/Net/alice/usr/src/i4b/driver/i4b_ipr.c
-rw-r--r--  1 dave  wheel  26139 Jul 15 12:56  
/Net/alice/usr/src/i4b/driver/i4b_ipr.c
-rw-r--r--  1 root  wheel  26098 Jul 14 01:40  
/Net/alice/usr/src/i4b/driver/i4b_ipr.c.org

---
   _  _
 _(_)(_)_  David Wetzel, Turbocat's Development,
(_) __ (_) Buchhorster Strasse, D-16567 Muehlenbeck/Berlin, FRG,
  _/  \_   Fax +49 33056 82835 NeXTmail dave@turbocat.de
 (______)  http://www.turbocat.de/
           DEVELOPMENT * CONSULTING * ADMINISTRATION
           WATCH OUT FOR TURBOFAX for OPENSTEP!

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-isdn" in the body of the message



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