long tftp_use();

main() {
	char file[80];
	long host;
	
	net_init();

	puts("Now Machine TFTP Boot Program\n\n");
	puts("Enter the host to boot from.\n");
	if(gets(file) == 0) return;

	host = res_name(file);
	if(host == 0) {
		puts("couldn't parse %s\n", file);
		return;
		}

	puts("will boot from host ");
	phex(host);
	puts("\nEnter the name of the file to boot from.\n");
	if(gets(file) == 0) return;

	tftp_use(host, file);
	puts("tftp returned\n");
	}
