Forum Discussion
Altera_Forum
Honored Contributor
10 years ago --- Quote Start --- I believe you're looking for ni_set_config(). See net.h and iface.c in the iniche files.
/* FUNCTION: ni_set_config()
*
* set IP address and subnet for a particular device.
*
* PARAM1: NET ifp
* PARAM2: struct niconfig_0 * cfg
*
* RETURNS: 0
*/
--- Quote End --- the proposed solution worked just fine until I realized I need the possibility to change the gateway as well. Are you aware of any such function to allow me that?