Print this page
fixup .text where possible
7127  remove -Wno-missing-braces from Makefile.uts

Split Close
Expand all
Collapse all
          --- old/usr/src/uts/common/io/mac/mac_protect.c
          +++ new/usr/src/uts/common/io/mac/mac_protect.c
↓ open down ↓ 2166 lines elided ↑ open up ↑
2167 2167  /*
2168 2168   * This is called whenever the mac client's mac address changes, to make sure
2169 2169   * we allow use of the new link-local address.
2170 2170   */
2171 2171  static void
2172 2172  mac_protect_update_v6_local_addr(mac_client_impl_t *mcip)
2173 2173  {
2174 2174          uint_t          i;
2175 2175          in6_addr_t      *token = &mcip->mci_v6_mac_token;
2176 2176          in6_addr_t      *v6addr = &mcip->mci_v6_local_addr;
2177      -        in6_addr_t      ll_template = {(uint32_t)V6_LINKLOCAL, 0x0, 0x0, 0x0};
     2177 +        in6_addr_t      ll_template = {{{ (uint32_t)V6_LINKLOCAL, 0, 0, 0 }}};
2178 2178  
2179 2179          for (i = 0; i < 4; i++) {
2180 2180                  v6addr->s6_addr32[i] = token->s6_addr32[i] |
2181 2181                      ll_template.s6_addr32[i];
2182 2182          }
2183 2183          mcip->mci_protect_flags |= MPT_FLAG_V6_LOCAL_ADDR_SET;
2184 2184  }
2185 2185  
2186 2186  /*
2187 2187   * This is called whenever the mac client's mac address changes, to make sure
↓ open down ↓ 427 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX