Lines Matching refs:bootopts

150 struct boot_option	bootopts;  variable
500 if (loadfile(bootopts.b_pathname, marks, LOAD_KERNEL)) { in command_boot()
767 bootopts.b_magic == BOOTOPT_MAGIC ? "ok" : "bad", in opt_subcmd_print()
768 bootopts.b_pathname, in opt_subcmd_print()
769 bootopts.b_flags & B_F_USE_BOOTP ? "yes" : "no"); in opt_subcmd_print()
770 printf("remote IP:\t%s\n", inet_ntoa(bootopts.b_remote_ip)); in opt_subcmd_print()
771 printf("local IP:\t%s\n", inet_ntoa(bootopts.b_local_ip)); in opt_subcmd_print()
772 printf("netmask:\t%s\n", intoa(bootopts.b_netmask)); in opt_subcmd_print()
773 printf("gateway IP:\t%s\n", inet_ntoa(bootopts.b_gate_ip)); in opt_subcmd_print()
779 bootopts = *((struct boot_option *) BOOTOPTS_BASE); in opt_subcmd_read()
780 if (bootopts.b_magic != BOOTOPT_MAGIC) in opt_subcmd_read()
781 bootopts.b_pathname[0] = '\0'; in opt_subcmd_read()
787 bootopts.b_magic = BOOTOPT_MAGIC; in opt_subcmd_write()
789 check_write_verify_flash((u_int32_t) &bootopts, BOOTOPTS_BASE, in opt_subcmd_write()
790 sizeof bootopts); in opt_subcmd_write()
796 strlcpy(bootopts.b_pathname, opt, sizeof bootopts.b_pathname); in opt_subcmd_path()
803 bootopts.b_flags |= B_F_USE_BOOTP; in opt_subcmd_bootp()
805 bootopts.b_flags &= ~B_F_USE_BOOTP; in opt_subcmd_bootp()
814 bootopts.b_remote_ip.s_addr = inet_addr(opt); in opt_subcmd_ip()
816 bootopts.b_local_ip.s_addr = inet_addr(opt); in opt_subcmd_ip()
818 bootopts.b_netmask = inet_addr(opt); in opt_subcmd_ip()
820 bootopts.b_gate_ip.s_addr = inet_addr(opt); in opt_subcmd_ip()