dhcpd

Has anyone ported a dhcp server (dhcpd) to QNX 6.1? If so, pointers would
be appreciated.

Thanks,

Issam

Go get the latest ISC DHCP server… it already supports Nto.

http://www.isc.org/products/DHCP/dhcp-v3.html

Jay

Issam Haddad wrote in message <9krejs$km5$1@inn.qnx.com>…

Has anyone ported a dhcp server (dhcpd) to QNX 6.1? If so, pointers would
be appreciated.

Thanks,

Issam

I downloaded a built the latest dhcp server. I am trying to support 2 nic’s
and subnets - it doesn’t work!

Anyone get this to work with 2 subnets? It appears to be a problem with
binding to the interfaces.
I can bind to a single interface but not to 2 interfaces. Also, if it binds
to a single interface, it appears
to still have trouble with broadcasting the response.

  • Jim Robbins

Jay Hogg wrote:

Go get the latest ISC DHCP server… it already supports Nto.

http://www.isc.org/products/DHCP/dhcp-v3.html

Jay

Issam Haddad wrote in message <9krejs$km5$> 1@inn.qnx.com> >…
Has anyone ported a dhcp server (dhcpd) to QNX 6.1? If so, pointers would
be appreciated.

Thanks,

Issam

I originally had the same problem – we use three interfaces. I’ll download
the latest and try it. (btw, Thanks, Jay).

“Jim Robbins” <robbinsj@us.ibm.com> wrote in message
news:3B78235A.E8C77611@us.ibm.com

I downloaded a built the latest dhcp server. I am trying to support 2
nic’s
and subnets - it doesn’t work!

Anyone get this to work with 2 subnets? It appears to be a problem with
binding to the interfaces.
I can bind to a single interface but not to 2 interfaces. Also, if it
binds
to a single interface, it appears
to still have trouble with broadcasting the response.

  • Jim Robbins

Jay Hogg wrote:

Go get the latest ISC DHCP server… it already supports Nto.

http://www.isc.org/products/DHCP/dhcp-v3.html

Jay

Issam Haddad wrote in message <9krejs$km5$> 1@inn.qnx.com> >…
Has anyone ported a dhcp server (dhcpd) to QNX 6.1? If so, pointers
would
be appreciated.

Thanks,

Issam
\

Issam Haddad wrote in message <9lb29v$ehd$1@inn.qnx.com>…

I originally had the same problem – we use three interfaces. I’ll
download
the latest and try it. (btw, Thanks, Jay).

No prob. Unfortunately I only have 1 interface running at home since
I have a hardware firewall.

If I tried this at work (where I have more than 1 interface) I’d have our
NetworkOps group looking to put my head on a stick :wink:

Jay

“Jim Robbins” <> robbinsj@us.ibm.com> > wrote in message
news:> 3B78235A.E8C77611@us.ibm.com> …
I downloaded a built the latest dhcp server. I am trying to support 2
nic’s
and subnets - it doesn’t work!

Anyone get this to work with 2 subnets? It appears to be a problem with
binding to the interfaces.
I can bind to a single interface but not to 2 interfaces. Also, if it
binds
to a single interface, it appears
to still have trouble with broadcasting the response.

  • Jim Robbins

Jay Hogg wrote:

Go get the latest ISC DHCP server… it already supports Nto.

http://www.isc.org/products/DHCP/dhcp-v3.html

Jay

Issam Haddad wrote in message <9krejs$km5$> 1@inn.qnx.com> >…
Has anyone ported a dhcp server (dhcpd) to QNX 6.1? If so, pointers
would
be appreciated.

Thanks,

Issam


\

That’s why you try all the fun stuff late at night when no one else is
there!

“Jay Hogg” <Jay.Hogg@t-netix.com.r-e-m-o-v-e> wrote in message
news:9lcbif$9st$1@inn.qnx.com

If I tried this at work (where I have more than 1 interface) I’d have our
NetworkOps group looking to put my head on a stick > :wink:

Jay

I played with this problem some more and could only get it to work by

  1. defining HAVE_SO_BINDTODEVICE in the includes/cf/qnx.h right after the
    USE_SOCKETS define
  2. add SO_REUSEPORT flag in common/socket.c
  3. add SO_DONTROUTE flag in common/socket.c

Does anyone know if this is the correct thing to do?

“Bill Caroselli (Q-TPS)” wrote:

That’s why you try all the fun stuff late at night when no one else is
there!

“Jay Hogg” <> Jay.Hogg@t-netix.com.r-e-m-o-v-e> > wrote in message
news:9lcbif$9st$> 1@inn.qnx.com> …

If I tried this at work (where I have more than 1 interface) I’d have our
NetworkOps group looking to put my head on a stick > :wink:

Jay

Jim Robbins wrote in message <3B7DA95B.D960C9D4@us.ibm.com>…

I played with this problem some more and could only get it to work by

  1. defining HAVE_SO_BINDTODEVICE in the includes/cf/qnx.h right after the
    USE_SOCKETS define
  2. add SO_REUSEPORT flag in common/socket.c

These make sense. HAVE_SO_BINDTODEVICE is documented as
required for multiple interfaces and since dhcp is done at the MAC
layer you have to know where it came from. SO_REUSEPORT also
makes sense because you are binding to the same “port” on “n”
interfaces.

  1. add SO_DONTROUTE flag in common/socket.c

Since it is done at the interface layer I’m not sure why this is
required but if it works…

Does anyone know if this is the correct thing to do?

Reading the comments in common/socket.c it looks like the only
system currently supported in the base code for multiple
interfaces is Linux - so I guess it can’t be too far off. You may
want to consider submitting the changes back…

Jay

“Bill Caroselli (Q-TPS)” wrote:

That’s why you try all the fun stuff late at night when no one else is
there!

“Jay Hogg” <> Jay.Hogg@t-netix.com.r-e-m-o-v-e> > wrote in message
news:9lcbif$9st$> 1@inn.qnx.com> …

If I tried this at work (where I have more than 1 interface) I’d have
our
NetworkOps group looking to put my head on a stick > :wink:

Jay

Hi All,

I also installed the DHCP server. It work but I still have a problem.

The readme tells me to use:
route add -host 255.255.255.255 dev eth0

In QNX this has to be something like:
route add -host 255.255.255.255 -interface en0

I tried en0 and 0 but error messages like ‘network not found’ are returned.

If I use:
route add -host 255.255.255.255 -interface
then it works. Is this the correct way to invoke the route command?

Regards and thanks in advance.

Freddy

Jay Hogg <Jay.Hogg@t-netix.com.r-e-m-o-v-e> wrote in message
news:9l29jm$qkv$1@inn.qnx.com

Go get the latest ISC DHCP server… it already supports Nto.

http://www.isc.org/products/DHCP/dhcp-v3.html

Jay

Issam Haddad wrote in message <9krejs$km5$> 1@inn.qnx.com> >…
Has anyone ported a dhcp server (dhcpd) to QNX 6.1? If so, pointers
would
be appreciated.

Thanks,

Issam

\