Debian Bug report logs - #18407
Network install/configure does not allow Arcnet

Package: boot-floppies; Maintainer for boot-floppies is (unknown);

Reported by: Trannie Carter <borys@bill.ncats.net>

Date: Fri, 20 Feb 1998 07:48:00 UTC

Severity: fixed

Done: Adam Di Carlo <adam@onshore.com>

Bug is archived. No further changes may be made.

Toggle useless messages

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to debian-bugs-dist@lists.debian.org:
Bug#18407; Package Debian. (full text, mbox, link).


Acknowledgement sent to Trannie Carter <borys@bill.ncats.net>:
New bug report received and forwarded. (full text, mbox, link).


Message #5 received at submit@bugs.debian.org (full text, mbox, reply):

From: Trannie Carter <borys@bill.ncats.net>
To: submit@bugs.debian.org
Subject: Network install/configure does not allow Arcnet
Date: Fri, 20 Feb 1998 02:47:54 -0500 (EST)
Package: Debian
Version: 1.3.1

As part of the 1.3.1 install, it asks if you are part of a network.
If so, it goes on to ask what your primary interface is, and lists
such things as Ethernet, Token Ring, and PPP.  Arcnet(arc0) is
strangely absent from this list.

Adding arc0, with proper checks to see that the arcnet module is being
loaded perhaps, would be a good idea, I think.


Trannie Carter


Bug reassigned from package `Debian' to `boot-floppies'. Request was from Enrique Zanardi <ezanardi@ull.es> to control@bugs.debian.org. (full text, mbox, link).


Bug reassigned from package `boot-floppies' to `boot-floppies'. Request was from Igor Grobman <igor@digicron.com> to control@bugs.debian.org. (full text, mbox, link).


Acknowledgement sent to Peter Tobias <tobias@et-inf.fho-emden.de>:
Extra info received and filed, but not forwarded. (full text, mbox, link).


Message #12 received at 18407-quiet@bugs.debian.org (full text, mbox, reply):

From: Peter Tobias <tobias@et-inf.fho-emden.de>
To: 18407-quiet@bugs.debian.org
Subject: Re: Bug#18407: Network install/configure does not allow Arcnet
Date: Sat, 28 Feb 1998 12:34:28 +0100
On Feb 20, Trannie Carter wrote:
> Package: Debian
> Version: 1.3.1
> 
> As part of the 1.3.1 install, it asks if you are part of a network.
> If so, it goes on to ask what your primary interface is, and lists
> such things as Ethernet, Token Ring, and PPP.  Arcnet(arc0) is
> strangely absent from this list.
> 
> Adding arc0, with proper checks to see that the arcnet module is being
> loaded perhaps, would be a good idea, I think.

If the interface is already configured you can use the following small
C program to get a list of the configured interfaces, otherwise
/proc/modules is your friend :-).



#include <stdio.h>
#include <unistd.h>
#include <string.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <sys/ioctl.h>
#include <net/if.h>

char *getiflist(void);

void main()
{
    printf("Found: %s\n", getiflist());
}

char *getiflist(void)
{
    static unsigned char devlist[1024];

    int sock_fd, n;
    struct ifconf ifc;
    struct ifreq ibuf[16], ifrfl;
    struct ifreq *ifrp, *ifend;
    unsigned char oldifnam[64];

    devlist[0] = '\0';
    oldifnam[0] = '\0';

    if ((sock_fd = socket(AF_INET, SOCK_DGRAM, 0)) < 0) {
        return(NULL);
    }

    ifc.ifc_len = sizeof(ibuf);
    ifc.ifc_buf = (caddr_t) ibuf;
    if (ioctl(sock_fd, SIOCGIFCONF, (char *) &ifc) < 0 ||
        ifc.ifc_len < sizeof(struct ifreq)) {
        close(sock_fd);
        return(NULL);
    }

    ifrp = ibuf;
    ifend = (struct ifreq *) ((char *) ibuf + ifc.ifc_len);
    while (ifrp < ifend) {
#ifdef DONT_HAVE_SIOCGIFFLAGS
        strcat(devlist, ifrp->ifr_name);
        strcat(devlist, ",");
#else
        ifrfl = *ifrp;
        if (ioctl(sock_fd, SIOCGIFFLAGS, (char *) &ifrfl) < 0) {
            printf("SIOCGIFFLAGS failed\n");
        } else {
            if (ifrfl.ifr_flags & IFF_UP) {
                if (strncmp(oldifnam, ifrp->ifr_name, sizeof(oldifnam)) != 0) {
                    strcat(devlist, ifrp->ifr_name);
                    strcat(devlist, ",");
                    strncpy(oldifnam, ifrp->ifr_name, sizeof(oldifnam));
                }
            }
        }
#endif
#ifdef HAVE_SOCKADDR_SA_LEN
        n = ifrp->ifr_addr.sa_len + sizeof(ifrp->ifr_name);
#else
        n = 0;
#endif
        if (n < sizeof(*ifrp)) {
            n = sizeof(*ifrp);
        }
        ifrp = (struct ifreq *) ((char *) ifrp + n);
    }

    close(sock_fd);

    /* remove trailing ',' character */
    if (strlen(devlist) > 0) {
        devlist[strlen(devlist)-1] = '\0';
    }
    return(devlist);
}


Thanks,

Peter

-- 
Peter Tobias <tobias@et-inf.fho-emden.de> <tobias@debian.org> <tobias@linux.de>
PGP ID EFAA400D, fingerprint = 06 89 EB 2E 01 7C B4 02  04 62 89 6C 2F DD F1 3C 


Severity set to `fixed'. Request was from Adam Di Carlo <aph@debian.org> to control@bugs.debian.org. (full text, mbox, link).


Bug closed, ack sent to submitter - they'd better know why ! Request was from Adam Di Carlo <adam@onshore.com> to control@bugs.debian.org. (full text, mbox, link).


Send a report that this bug log contains spam.


Debian bug tracking system administrator <owner@bugs.debian.org>. Last modified: Fri Apr 26 08:49:46 2024; Machine Name: buxtehude

Debian Bug tracking system

Debbugs is free software and licensed under the terms of the GNU Public License version 2. The current version can be obtained from https://bugs.debian.org/debbugs-source/.

Copyright © 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson, 2005-2017 Don Armstrong, and many other contributors.