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.
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?
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.