Forum Discussion
Altera_Forum
Honored Contributor
15 years agoI can't understand exactly what is your problem.
Maybe you are missing a point: you don't have to call get_ip_addr and get_board_mac_addr functions; you'd rather have to define them into your project. iniche will call them during alt_iniche init or net_main (now I can't remember which) in order to know from you which ip and mac you want to assign to every network interface you have. If instead your problem is to reassign ip and mac AFTER initialization, this is possible, although I think it is not recommended. You need to change some fields in the device data structure (so, making nothing less than a re-initialization of the device). You can place a breakpoint into the above init functions and step with debugger in order to find where ip and mac data are stored. Cris