Subject: Loopback interfaces
To: None <netbsd-help@netbsd.org>
From: None <amitg@hss.hns.com>
List: netbsd-help
Date: 06/13/2003 14:29:26
Hi All,

In General when a netbsd machine is booted, a loopback interface get
attached with the system with the name lo0.
Now my requirement is that  i dont want the loopback interface to get
attached attached at the system up time but i should have some other ioctl
or etc to add that loopback interface later as other interface.

For this, if i comment the loopback pseudo device entry from the lernel
configuration file, the loopback code is not linked with the netbsd image
but this is not what i want to do. I want the loopback code to be lkinked
with the netbsd image but no loopback interface get attached at the time of
system up.

Moreover, where is the code for attaching the loopback addresses
(127.0.0.1 and ::1) to the loopback interafce. By kernel configuration
file,  only the pdevinit strcutre is init to have the loattach as the entry
in it and to attach the addresses. When i made 2 loopback interface entry
in the krnel config file only the first loopback interface is attached with
the ip addresses.

Pls give me the useful pointers for this. Reg adding a new loopback
afterwards can be done similary like vlan etc bvy additing some cloners for
it.


Thanx and Regards
- amit


"DISCLAIMER: This message is proprietary to Hughes Software Systems Limited
(HSS) and is intended solely for the use of the individual to whom it is
addressed. It may contain  privileged or confidential information and
should not be circulated or used for any purpose other than for what it is
intended. If you have received this message in error, please notify the
originator immediately. If you are not the intended recipient, you are
notified that you are strictly prohibited from using, copying, altering, or
disclosing the contents of this message. HSS accepts no responsibility for
loss or damage arising from the use of the information transmitted by this
email including damage from virus."