Re: xdm not seeing localhost

Harald Koenig (koenig@tat.physik.uni-tuebingen.de)
Tue, 15 Sep 1998 00:24:03 +0200


On Sep 14, Mike Jagdis wrote:

> Someone just said something about xdm not seeing localhost in 2.1.x
> but I've just deleted the message :-( (my subconscious is saying hpa?)
>
> Anyway the problem is that BROADCAST is set for the lo interface
> in 2.0 but not in 2.1. Xdm/chooser uses broadcasts as part of its
> who will manage me protocol. Since lo is not a broadcast interface
> xdm and chooser can not talk to each other across it.

ah, interesting. this also explains why I don't see my hostname at home
because (for historical reasons) I have a dummy interface too
which doen't hsa the broadcast flag set either:

# ifconfig
lo Link encap:Local Loopback
inet addr:127.0.0.1 Bcast:0.0.0.0 Mask:255.0.0.0
UP LOOPBACK RUNNING MTU:3924 Metric:1
RX packets:428560 errors:1719 dropped:0 overruns:0
TX packets:0 errors:0 dropped:0 overruns:428560

dummy0 Link encap:10Mbps Ethernet HWaddr 00:00:00:00:00:00
inet addr:10.2.170.191 Bcast:10.2.170.255 Mask:255.255.255.0
UP RUNNING NOARP MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0
TX packets:0 errors:0 dropped:0 overruns:51127

eth0 Link encap:10Mbps Ethernet HWaddr 02:07:01:16:ED:D4
inet addr:10.2.170.191 Bcast:10.2.170.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0
TX packets:0 errors:0 dropped:0 overruns:0
Interrupt:9 Base address:0x300 DMA chan:3

after `ifconfig dummy0 down' I get at least one chooser entry for hostname.

but how can I get an entry for localhost again with 2.1.x ?
I tried `ifconfig lo broadcast 127.255.255.255' but this didn't
set the BROADCAST flag.

is this a design decission in 2.1/2.2 that broadcasts are not possible
at all (and not only off by default) for lo and dummy devices
or is this just a bug ?

Harald

--
All SCSI disks will from now on                     ___       _____
be required to send an email notice                0--,|    /OOOOOOO\
24 hours prior to complete hardware failure!      <_/  /  /OOOOOOOOOOO\
                                                    \  \/OOOOOOOOOOOOOOO\
                                                      \ OOOOOOOOOOOOOOOOO|//
Harald Koenig,                                         \/\/\/\/\/\/\/\/\/
Inst.f.Theoret.Astrophysik                              //  /     \\  \
koenig@tat.physik.uni-tuebingen.de                     ^^^^^       ^^^^^

- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu Please read the FAQ at http://www.tux.org/lkml/