void net_test(cyg_addrword_t param) { diag_printf("Start TFTP test\n"); init_all_network_interfaces(); #ifdef CYGHWR_NET_DRIVER_ETH0 if (eth0_up) { tftp_test(ð0_bootp_data); } #endif #ifdef CYGHWR_NET_DRIVER_ETH1 if (eth1_up) { tftp_test(ð1_bootp_data); } #endif cyg_test_exit(); }
void net_test(cyg_addrword_t param) { diag_printf("Start TFTP server test\n"); init_all_network_interfaces(); TNR_INIT(); #ifdef CYGHWR_NET_DRIVER_ETH0 if (eth0_up) { tftp_test(ð0_bootp_data); } #else if ( 0 ) ; #endif #ifdef CYGHWR_NET_DRIVER_ETH1 else if (eth1_up) { tftp_test(ð1_bootp_data); } #endif TNR_PRINT_ACTIVITY(); cyg_test_exit(); }