How does dhcp get started?

I’m totally new to Neutrino, and i’ve been trying to figure out how the
networking is getting started as i want to run dhcp.client -h
to select my own hostname. After poking around for a while, i’m unable
to figure out how dhcp gets started. It’s listed in /etc/net.cfg (a
configuration file). I can’t find anywhere where netmanager or io-net
is run and neither seems to be set to run in the kernel (as far as i can
tell). ?

craig duncan <duncan@nycap.rr.com> wrote:

I’m totally new to Neutrino, and i’ve been trying to figure out how the
networking is getting started as i want to run dhcp.client -h <hostname
to select my own hostname. After poking around for a while, i’m unable
to figure out how dhcp gets started. It’s listed in /etc/net.cfg (a
configuration file). I can’t find anywhere where netmanager or io-net
is run and neither seems to be set to run in the kernel (as far as i can
tell). ?

You use “Configure” → “Network”, specify your interface as “DHCP”, and
put your “hostname” in the “ID:” filed, and reboot.

-xtang

Xiaodan Tang wrote:

craig duncan <> duncan@nycap.rr.com> > wrote:
I’m totally new to Neutrino, and i’ve been trying to figure out how the
networking is getting started as i want to run dhcp.client -h <hostname
to select my own hostname. After poking around for a while, i’m unable
to figure out how dhcp gets started. It’s listed in /etc/net.cfg (a
configuration file). I can’t find anywhere where netmanager or io-net
is run and neither seems to be set to run in the kernel (as far as i can
tell). ?

You use “Configure” → “Network”, specify your interface as “DHCP”, and
put your “hostname” in the “ID:” filed, and reboot.

-xtang

Thanks. I see that doing this adds "dhcp_id " to the [en0]
section of /etc/net.cfg. So that’s that. I still haven’t figured out
how this gets started, though. I’m guessing that io-net does it. If
that’s so, how does io-net get started? I see no trace of it in
/etc/rc.d/rc.sysinit or /boot/build/qnxbasedma.build.

craig

how this gets started, though. I’m guessing that io-net does it. If

Nope. the device enumurator → netmanager invokes it.
See the tail of /etc/system/enum/devices/net

kabe

kabe@sra-tohoku.co.jp wrote:

how this gets started, though. I’m guessing that io-net does it. If

Nope. the device enumurator → netmanager invokes it.
See the tail of /etc/system/enum/devices/net

kabe

Thanks very much. That was enough of a hint. It seems that
/etc/system/sysinit runs /etc/rc.d/rc.devices (before it runs your local
/etc/rc.d/rc.sysinit script) and this script runs enum-devices which,
using the info in /etc/system/enum/devices, starts network drivers,
dhcp, etc.

craig