Forum Discussion
Altera_Forum
Honored Contributor
14 years agothanks so much.
I had done many way. I'm define IP following and saving named(ip.h): /* * ip.h * * Created on: Jan 13, 2013 * Author: Lam Van Trung */ # ifndef IP_H_ # define IP_H_ # include "alt_iniche_dev.h" # include "includes.h" # include "ipport.h" # include "tcpport.h" int get_ip_addr(alt_iniche_dev* p_dev, ip_addr* ipaddr, ip_addr* netmask, ip_addr* gw, int* use_dhcp) { IP4_ADDR(&ipaddr, 10, 1, 1 ,3); // Assign the Default Gateway Address IP4_ADDR(&gw, 10, 1, 1, 254); // Assign the Netmask IP4_ADDR(&netmask, 255, 255, 255, 0); *use_dhcp = 0; } # endif /* IP_H_ */ But, there are numerous error occur. The NIOS report that"error line 0". please help me ? any help me will be better for me???