Print this page
3087 libuuid has a lot of dependencies

Split Close
Expand all
Collapse all
          --- old/usr/src/lib/libuuid/common/uuid.c
          +++ new/usr/src/lib/libuuid/common/uuid.c
↓ open down ↓ 16 lines elided ↑ open up ↑
  17   17   * information: Portions Copyright [yyyy] [name of copyright owner]
  18   18   *
  19   19   * CDDL HEADER END
  20   20   */
  21   21  /*
  22   22   * Copyright 2008 Sun Microsystems, Inc.  All rights reserved.
  23   23   * Use is subject to license terms.
  24   24   * Copyright 2012 Milan Jurik. All rights reserved.
  25   25   * Copyright 2015 Joyent, Inc. All rights reserved.
  26   26   * Copyright 2014 Andrew Stormont.
       27 + * Copyright 2015 Nexenta Systems, Inc. All rights reserved.
  27   28   */
  28   29  
  29   30  /*
  30   31   * The copyright in this file is taken from the original Leach & Salz
  31   32   * UUID specification, from which this implementation is derived.
  32   33   */
  33   34  
  34   35  /*
  35   36   * Copyright (c) 1990- 1993, 1996 Open Software Foundation, Inc.
  36   37   * Copyright (c) 1989 by Hewlett-Packard Company, Palo Alto, Ca. &
↓ open down ↓ 144 lines elided ↑ open up ↑
 181  182   */
 182  183  static void
 183  184  gen_ethernet_address(uuid_node_t *system_node)
 184  185  {
 185  186          uchar_t         node[6];
 186  187  
 187  188          if (get_ethernet_address(system_node) != 0) {
 188  189                  arc4random_buf(node, 6);
 189  190                  (void) memcpy(system_node->nodeID, node, 6);
 190  191                  /*
 191      -                 * use 8:0:20 with the multicast bit set
 192      -                 * to avoid namespace collisions.
      192 +                 * use 8:.. with the multicast bit set
      193 +                 * to reduce namespace collisions.
 193  194                   */
 194  195                  system_node->nodeID[0] = 0x88;
 195      -                system_node->nodeID[1] = 0x00;
 196      -                system_node->nodeID[2] = 0x20;
 197  196          }
 198  197  }
 199  198  
 200  199  /*
 201  200   * Formats a UUID, given the clock_seq timestamp, and node address.
 202  201   * Fills in passed-in pointer with the resulting uuid.
 203  202   */
 204  203  static void
 205  204  format_uuid(struct uuid *uuid, uint16_t clock_seq,
 206  205      uuid_time_t timestamp, uuid_node_t node)
↓ open down ↓ 434 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX