Subject: loopback routes
To: None <tech-net@netbsd.org>
From: Andrew Brown <atatat@atatdot.net>
List: tech-net
Date: 05/05/2000 21:55:58
why is it that
# ifconfig lo0
lo0: flags=8009<UP,LOOPBACK,MULTICAST> mtu 32972
inet 127.0.0.1 netmask 0xff000000
inet6 fe80::1%lo0 prefixlen 64 scopeid 0x2
inet6 ::1 prefixlen 128
(noting the netmask) and then
# route -n get 127.0.0.2
route to: 127.0.0.2
destination: default
mask: default
gateway: 206.22.3.4
local addr: 206.22.3.12
interface: ex0
flags: <UP,GATEWAY,DONE,STATIC>
recvpipe sendpipe ssthresh rtt,msec rttvar hopcount mtu expire
0 0 0 0 0 0 1500 0
is it because lo0 is not marked with IFF_BROADCAST?
i know that IFF_LOOPBACK will cause tcpdump to skip over it if it has
not been told to use it specifically. what other effects does that
flag have? i've been trawling through the kernel, but can't quite
(yet) see the forest, just the trees...
tia.
--
|-----< "CODE WARRIOR" >-----|
codewarrior@daemon.org * "ah! i see you have the internet
twofsonet@graffiti.com (Andrew Brown) that goes *ping*!"
andrew@crossbar.com * "information is power -- share the wealth."