Forum Discussion
Altera_Forum
Honored Contributor
15 years agoHi, Cris
My problem is I can not figure out the way that iniche assign the IP address and MAC address to the Ethernet port. I went through the targnios.c, which define the alt_iniche_init function, and net_main.c. I did not find that the alt_iniche_init and net_main call the get_ip_addr and get_board_mac_addr directly. That's why I am so confused. I am not quite sure about your "define" means. Do you mean like that:# define GETIP get_ip_addr(), Then put GETIP twice in the alt_iniche or net_main to get the IP address for two Ethernet ports? Or you mean rewrite these two functions for support multiple Ethernet ports?