IOCTL

I would like to set up IP Address, Subnet Mask and Default Gateway from
code. I have read about socket IOCTL’s using SIOCSIFADDR, SIOGSIFNETMASK and
SIOCADDRT. I haven’t been able to work these yet. Could any kind soul
provide a snippet of source showing working code to carry out the above.

Many Thanks

I can’t believe that no-one here has ever successfully achieved changes to
IP Address, Mask and Gateway from a program. Can anyone shed any light on
this? Does anyone know whether the source to netmanager is available as
these questions would be answered in there?

Thanks

“A” <A.B@C.D> wrote in message news:9rmcop$oed$1@inn.qnx.com

I would like to set up IP Address, Subnet Mask and Default Gateway from
code. I have read about socket IOCTL’s using SIOCSIFADDR, SIOGSIFNETMASK
and
SIOCADDRT. I haven’t been able to work these yet. Could any kind soul
provide a snippet of source showing working code to carry out the above.

Many Thanks