From owner-freebsd-hackers Wed Jul 24 8:24:17 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id EE9A137B400 for ; Wed, 24 Jul 2002 08:24:14 -0700 (PDT) Received: from oneplusone.ch (oneplusone.ch [212.55.208.170]) by mx1.FreeBSD.org (Postfix) with ESMTP id D34F943E3B for ; Wed, 24 Jul 2002 08:24:13 -0700 (PDT) (envelope-from ast@marabu.ch) Received: (from uucp@localhost) by oneplusone.ch (8.11.4/8.11.3) with UUCP id g6OFODe66115 for freebsd-hackers@freebsd.org; Wed, 24 Jul 2002 17:24:13 +0200 (MEST) (envelope-from ast@marabu.ch) Received: from marabu.marabu.ch (marabu.marabu.ch [192.168.21.3]) by marabu.ch (8.11.6/8.11.6) with ESMTP id g6OFJDG88998 for ; Wed, 24 Jul 2002 17:19:14 +0200 (MEST) (envelope-from ast@marabu.ch) Received: by marabu.marabu.ch (8.7.5/20001028-ast-8.3) id RAA07325; Wed, 24 Jul 2002 17:19:13 +0200 (CEST) Message-Id: <200207241519.RAA07325@marabu.marabu.ch> MIME-Version: 1.0 (NeXT Mail 3.3 v124.8483.6) Content-Type: text/plain X-Nextstep-Mailer: Mail 3.3 (Enhance 2.0b6) Received: by NeXT.Mailer (1.124.8483.6) From: Adrian Steinmann Date: Wed, 24 Jul 2002 17:19:11 +0200 To: freebsd-hackers@freebsd.org Subject: rarpd on laptops doesn't find interfaces, fix at http://www.webgroup.ch/ast/rarpd/ X-Organization: Steinmann Consulting, Apollostrasse 21, 8032 Zurich X-Phone-Numbers: Switzerland, Tel +41 1 380 30 83 Fax +41 1 380 30 85 Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG FreeBSD rarpd returns "no interfaces" on say, laptops, which have removable Ethernet NICs. This can be corrected by replacing the SIOCGIFCONF ioctl() in the init() routine with getifaddrs(). OpenBSD rarpd.c (version 1.29) does it this way and hence I ported that version to -stable retrofitting the few extra options we support under FreeBSD. This directory contains the ported rarpd.c and modified manpages as well as the original OpenBSD and FreeBSD versions. This has been tested on IBM ThinkPAD laptops with ep and xe PCMCIA network cards on -stable (to netboot Sun systems;-). I've submited this change request and it's filed under http://www.freebsd.org/cgi/query-pr.cgi?pr=40957 I'd be very much obliged if someone would review it and possibly commit it to our tree. Adrian To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message