Home | History | Annotate | Download | only in lcboot

Lines Matching defs:bootopts

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