Print this page
3882 remove xmod & friends

Split Close
Expand all
Collapse all
          --- old/usr/src/psm/stand/boot/sparc/common/wbcli.c
          +++ new/usr/src/psm/stand/boot/sparc/common/wbcli.c
↓ open down ↓ 17 lines elided ↑ open up ↑
  18   18   *
  19   19   * CDDL HEADER END
  20   20   */
  21   21  /*
  22   22   * Copyright 2007 Sun Microsystems, Inc.  All rights reserved.
  23   23   * Use is subject to license terms.
  24   24   */
  25   25  
  26   26  #pragma ident   "%Z%%M% %I%     %E% SMI"
  27   27  
  28      -/* EXPORT DELETE START */
  29   28  #include <sys/types.h>
  30   29  #include <sys/param.h>
  31   30  #include <sys/salib.h>
  32   31  #include <sys/promif.h>
  33   32  #include <sys/wanboot_impl.h>
  34   33  #include <netinet/in.h>
  35   34  #include <parseURL.h>
  36   35  #include <bootlog.h>
  37   36  #include <sys/socket.h>
  38   37  #include <netinet/inetutil.h>
↓ open down ↓ 3 lines elided ↑ open up ↑
  42   41  #include <lib/inet/ipv4.h>
  43   42  #include <lib/inet/dhcpv4.h>
  44   43  #include <lib/sock/sock_test.h>
  45   44  #include <sys/sunos_dhcp_class.h>
  46   45  #include <aes.h>
  47   46  #include <des3.h>
  48   47  #include <hmac_sha1.h>
  49   48  #include <netdb.h>
  50   49  #include <wanboot_conf.h>
  51   50  #include <bootinfo.h>
  52      -/* EXPORT DELETE END */
  53   51  
  54   52  #include "wbcli.h"
  55   53  
  56      -/* EXPORT DELETE START */
  57      -
  58   54  #define skipspace(p)    while (isspace(*(p))) ++p
  59   55  
  60   56  #define skiptext(p)     while (*(p) != '\0' && !isspace(*(p)) && \
  61   57                              *(p) != '=' && *(p) != ',') ++p
  62   58  
  63   59  #define PROMPT          "boot> "
  64   60  #define TEST_PROMPT     "boot-test> "
  65   61  
  66   62  #define CLI_SET         0
  67   63  #define CLI_FAIL        (-1)
↓ open down ↓ 1230 lines elided ↑ open up ↑
1298 1294                  ipv4_setdefaultrouter(&in_addr);
1299 1295                  (void) ipv4_route(IPV4_ADD_ROUTE, RT_DEFAULT, NULL, &in_addr);
1300 1296          }
1301 1297  
1302 1298          len = sizeof (str);
1303 1299          if (bootinfo_get(BI_HOSTNAME, str, &len, NULL) == BI_E_SUCCESS) {
1304 1300                  (void) sethostname(str, len);
1305 1301          }
1306 1302  }
1307 1303  
1308      -/* EXPORT DELETE END */
1309 1304  boolean_t
1310 1305  wanboot_init_interface(char *boot_arguments)
1311 1306  {
1312      -/* EXPORT DELETE START */
1313 1307          boolean_t       interactive;
1314 1308          int             which;
1315 1309  
1316 1310  #if     defined(__sparcv9)
1317 1311          /*
1318 1312           * Get the keys from PROM before we allow the user
1319 1313           * to override them from the CLI.
1320 1314           */
1321 1315          get_prom_encr_keys();
1322 1316          get_prom_hash_keys();
↓ open down ↓ 75 lines elided ↑ open up ↑
1398 1392           */
1399 1393          generate_default_clientid();
1400 1394  
1401 1395          /*
1402 1396           * If net-config-strategy == "manual" then we must setup
1403 1397           * the interface now; if "dhcp" then it will already have
1404 1398           * been setup.
1405 1399           */
1406 1400          if (strcmp(net_config_strategy(), "manual") == 0)
1407 1401                  setup_interface();
1408      -/* EXPORT DELETE END */
1409 1402          return (B_TRUE);
1410 1403  }
1411 1404  
1412 1405  boolean_t
1413 1406  wanboot_verify_config(void)
1414 1407  {
1415      -/* EXPORT DELETE START */
1416 1408          /*
1417 1409           * Check that the wanboot.conf file defines a valid root_server
1418 1410           * URL, and check that, if given, the boot_logger URL is valid.
1419 1411           */
1420 1412          if (config_incomplete(0, B_FALSE)) {
1421 1413                  bootlog("wanboot", BOOTLOG_CRIT,
1422 1414                      "incomplete boot configuration");
1423 1415                  return (B_FALSE);
1424 1416          }
1425      -/* EXPORT DELETE END */
1426 1417          return (B_TRUE);
1427 1418  }
    
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX