From owner-freebsd-questions Thu Sep 14 22: 2:30 2000 Delivered-To: freebsd-questions@freebsd.org Received: from srcso.globis.ru (globis.ru [212.248.80.7]) by hub.freebsd.org (Postfix) with ESMTP id 9675F37B422 for ; Thu, 14 Sep 2000 22:02:22 -0700 (PDT) Received: from raduga.dyndns.org (raduga.sochi.net [212.248.82.76]) by srcso.globis.ru (8.9.3/8.9.3) with ESMTP id JAA07483 for ; Fri, 15 Sep 2000 09:19:27 +0400 (MSD) (envelope-from igor@raduga.dyndns.org) Received: (from igor@localhost) by raduga.dyndns.org (8.10.0/8.10.0) id e8F52Eh05875 for freebsd-questions@FreeBSD.ORG; Fri, 15 Sep 2000 09:02:14 +0400 Date: Fri, 15 Sep 2000 09:02:14 +0400 From: Igor Roboul To: FreeBSD questions Subject: Re: GNUstep problem SOLVED Message-ID: <20000915090214.E5384@linux.rainbow> Reply-To: igorr@crosswinds.net Mail-Followup-To: FreeBSD questions References: <20000910182158.A8159@linux.rainbow> <20000914083141.A22658@linux.rainbow> <10009140915.AA00380@tiptree.brainstorm.co.uk> <20000914160047.B31439@linux.rainbow> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0pre4i In-Reply-To: <20000914160047.B31439@linux.rainbow>; from igor@raduga.sochi.net on Thu, Sep 14, 2000 at 04:00:47PM +0400 X-Operating-System: Linux linux.rainbow 2.2.14-plus-SMP X-Best-Window-Manager: Window Maker (www.windowmaker.org) Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Hello, > On Thu, Sep 14, 2000 at 10:15:58AM +0100, richard@brainstorm.co.uk wrote: > > On Thu, 14 Sep 2000 08:31:41 +0400, igor@raduga.sochi.net wrote: > > > > Is this a bug in the gdomap code, or does FreeBSD lack a fully working > > loopback interface? Oh, yet again :-( It does not work with both fake ppp0 and lo0. These are my expirience: (sorry for big mail) --------------- ifconfig before I run gdomap: ppp0: flags=8010 mtu 1500 lo0: flags=8049 mtu 16384 inet 127.0.0.1 netmask 0xff000000 This is first time I run gdomap: SIOCGIFFLAGS: Device not configured SIOCGIFFLAGS: Device not configured SIOCGIFBRDADDR: Invalid argument SIOCGIFFLAGS: Device not configured SIOCGIFFLAGS: Device not configured This is second: SIOCGIFFLAGS: Device not configured SIOCGIFFLAGS: Device not configured SIOCGIFBRDADDR: Invalid argument SIOCGIFFLAGS: Device not configured SIOCGIFFLAGS: Device not configured Unable to bind address to UDP socket This is third (this worked two days ago, and I sent mail with SOLVED): darkstar# ifconfig ppp0 192.168.5.2 192.168.5.1 darkstar# route add -host 192.168.5.2 127.0.0.1 add host 192.168.5.2: gateway 127.0.0.1 darkstar# logout %opentool gdomap %SIOCGIFFLAGS: Device not configured SIOCGIFFLAGS: Device not configured SIOCGIFFLAGS: Device not configured SIOCGIFBRDADDR: Invalid argument SIOCGIFFLAGS: Device not configured SIOCGIFFLAGS: Device not configured Unable to bind address to UDP socket This is gdomap's help. These is info how it finds network interfaces: Gdomap normally probes every machine on the local network to see if there is a copy of gdomap running on it. This is done for class-C networks and subnets of class-C networks. If your host is on a class-B or class-A net then the default behaviour is to treat it as a class-C net and probe only the hosts that would be expected on a class-C network of the same number. If you are running on a class-A or class-B network, or if your net has a large number of hosts which will not have gdomap on them - you may want to supply a configuration file listing the hosts to be probed explicitly, rather than getting gdomap to probe all hosts on the local net. You may also want to supply the configuration file so that hosts which are not actually on your local network can still be found when your code tries to connect to a host using @"*" as the host name. NB. this functionality does not exist in OpenStep. A configuration file consists of a list of IP addresses to be probed. The IP addresses should be in standard 'dot' notation, one per line. Empty lines are permitted in the configuration file. Anything on a line after a hash ('#') is ignored. You tell gdomap about the config file with the '-c' command line option. gdomap uses the SIOCGIFCONF ioctl to build a list of IP addresses and ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ This is info netmasks for the network interface cards on your machine. On some operating systems, this facility is not available (or is broken), so you must tell gdomap the addresses and masks of the interfaces using the '-a' command line option. The file named with '-a' should contain a series of lines with space separated pairs of addresses and masks in 'dot' notation. You must NOT include loopback interfaces in this list. If your operating system has some other method of giving you a list of network interfaces and masks, please send me example code so that I can implement it in gdomap. netstat -na after my tryings: Active Internet connections (including servers) Proto Recv-Q Send-Q Local Address Foreign Address (state) tcp4 0 0 *.538 *.* LISTEN ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ this is gdomap tcp4 0 0 *.6000 *.* LISTEN tcp4 0 0 *.587 *.* LISTEN tcp4 0 0 *.25 *.* LISTEN tcp4 0 0 *.79 *.* LISTEN tcp4 0 0 *.513 *.* LISTEN tcp4 0 0 *.514 *.* LISTEN tcp4 0 0 *.23 *.* LISTEN tcp4 0 0 *.21 *.* LISTEN tcp4 0 0 *.111 *.* LISTEN tcp4 0 0 127.0.0.1.53 *.* LISTEN udp4 0 0 *.538 *.* ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ this is gdomap udp4 0 0 *.518 *.* udp4 0 0 *.512 *.* udp4 0 0 *.111 *.* udp4 0 0 *.1024 *.* udp4 0 0 127.0.0.1.53 *.* udp4 0 0 *.514 *.* So gdomap have used socket, but didnt run :-( -- Igor Roboul, Unix System Administrator & Programmer @ sanatorium "Raduga", Sochi, Russia http://www.brainbench.com/transcript.jsp?pid=304744 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message