From owner-freebsd-mobile Fri Aug 23 12:24:14 2002 Delivered-To: freebsd-mobile@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E566737B401 for ; Fri, 23 Aug 2002 12:24:04 -0700 (PDT) Received: from oneplusone.ch (oneplusone.ch [212.55.208.170]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9D97043E6E for ; Fri, 23 Aug 2002 12:24:03 -0700 (PDT) (envelope-from ast@marabu.ch) Received: (from uucp@localhost) by oneplusone.ch (8.11.4/8.11.3) with UUCP id g7NJO2V85531 for mobile@freebsd.org; Fri, 23 Aug 2002 21:24:02 +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 g7NJNNG74912 for ; Fri, 23 Aug 2002 21:23:24 +0200 (MEST) (envelope-from ast@marabu.ch) Received: by marabu.marabu.ch (8.7.5/20001028-ast-8.3) id VAA16307; Fri, 23 Aug 2002 21:23:22 +0200 (CEST) Message-Id: <200208231923.VAA16307@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: Fri, 23 Aug 2002 21:23:20 +0200 To: mobile@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-mobile@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 for 4.7 and 5. Adrian To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-mobile" in the body of the message