From ast@marabu.ch  Wed Jul 24 07:40:09 2002
Return-Path: <ast@marabu.ch>
Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id 9C0BA37B400
	for <FreeBSD-gnats-submit@freebsd.org>; Wed, 24 Jul 2002 07:40:09 -0700 (PDT)
Received: from oneplusone.ch (oneplusone.ch [212.55.208.170])
	by mx1.FreeBSD.org (Postfix) with ESMTP id 7660E43E4A
	for <FreeBSD-gnats-submit@freebsd.org>; Wed, 24 Jul 2002 07:40:08 -0700 (PDT)
	(envelope-from ast@marabu.ch)
Received: (from uucp@localhost)
	by oneplusone.ch (8.11.4/8.11.3) with UUCP id g6OEe6H65984
	for FreeBSD-gnats-submit@freebsd.org; Wed, 24 Jul 2002 16:40:06 +0200 (MEST)
	(envelope-from ast@marabu.ch)
Received: (from ast@localhost)
	by marabu.ch (8.11.6/8.11.6) id g6OEb9V88771;
	Wed, 24 Jul 2002 16:37:09 +0200 (MEST)
	(envelope-from ast)
Message-Id: <200207241437.g6OEb9V88771@marabu.ch>
Date: Wed, 24 Jul 2002 16:37:09 +0200 (MEST)
From: Adrian Steinmann <ast@marabu.ch>
Reply-To: Adrian Steinmann <ast@marabu.ch>
To: FreeBSD-gnats-submit@freebsd.org
Subject: rarpd on laptops doesn't find interfaces, fix at http://www.webgroup.ch/ast/rarpd/
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         40957
>Category:       i386
>Synopsis:       rarpd on laptops doesn't find interfaces, fix at http://www.webgroup.ch/ast/rarpd/
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Wed Jul 24 07:50:01 PDT 2002
>Closed-Date:    Fri Jul 11 07:21:46 PDT 2003
>Last-Modified:  Fri Jul 11 07:21:46 PDT 2003
>Originator:     Adrian Steinmann
>Release:        FreeBSD-stable i386
>Organization:
Webgroup Consulting AG
>Environment:
System: FreeBSD webgroup.ch 4.5-STYX FreeBSD 4.5-STYX #0: Tue Apr 16 11:06:34 GMT 2002 root@rumori.com:/usr/src/sys/compile/STYX i386

Stock FreeBSD

>Description:
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.

>How-To-Repeat:
Start rarpd -a on a laptop with removable PCMCIA NIC.

>Fix:

http://www.webgroup.ch/ast/rarpd/

contains the OpenBSD version of rarpd ported to FreeBSD.

This has been tested on IBM ThinkPAD laptops with ep0 and
xe0 inetrfaces (to netboot Sun systems;-).

___________________________________________________________________________
Dr. Adrian Steinmann  Webgroup Consulting AG  Apollostrasse 21  8032 Zurich
   Tel +41 1 380 30 80     Fax +41 1 380 30 85    Mailto:ast@webgroup.ch
>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: mux 
State-Changed-When: Fri Jul 11 07:21:20 PDT 2003 
State-Changed-Why:  
I've just fixed this problem while not knowing about this PR. 
Thanks for reporting it! 

http://www.freebsd.org/cgi/query-pr.cgi?pr=40957 
>Unformatted:
