Print this page
7127  remove -Wno-missing-braces from Makefile.uts

Split Close
Expand all
Collapse all
          --- old/usr/src/uts/common/inet/ip/ip6.c
          +++ new/usr/src/uts/common/inet/ip/ip6.c
↓ open down ↓ 119 lines elided ↑ open up ↑
 120  120   */
 121  121  
 122  122  /*
 123  123   * ip6opt_ls is used to enable IPv6 (via /etc/system on TX systems).
 124  124   * We need to do this because we didn't obtain the IP6OPT_LS (0x0a)
 125  125   * from IANA. This mechanism will remain in effect until an official
 126  126   * number is obtained.
 127  127   */
 128  128  uchar_t ip6opt_ls;
 129  129  
 130      -const in6_addr_t ipv6_all_ones =
 131      -        { 0xffffffffU, 0xffffffffU, 0xffffffffU, 0xffffffffU };
 132      -const in6_addr_t ipv6_all_zeros = { 0, 0, 0, 0 };
      130 +const in6_addr_t ipv6_all_ones = {
      131 +        {{ 0xffffffffU, 0xffffffffU, 0xffffffffU, 0xffffffffU }}};
      132 +const in6_addr_t ipv6_all_zeros = {{{ 0, 0, 0, 0 }}};
 133  133  
 134  134  #ifdef  _BIG_ENDIAN
 135      -const in6_addr_t ipv6_unspecified_group = { 0xff000000U, 0, 0, 0 };
      135 +const in6_addr_t ipv6_unspecified_group = {{{ 0xff000000U, 0, 0, 0 }}};
 136  136  #else   /* _BIG_ENDIAN */
 137      -const in6_addr_t ipv6_unspecified_group = { 0x000000ffU, 0, 0, 0 };
      137 +const in6_addr_t ipv6_unspecified_group = {{{ 0x000000ffU, 0, 0, 0 }}};
 138  138  #endif  /* _BIG_ENDIAN */
 139  139  
 140  140  #ifdef  _BIG_ENDIAN
 141      -const in6_addr_t ipv6_loopback = { 0, 0, 0, 0x00000001U };
      141 +const in6_addr_t ipv6_loopback = {{{ 0, 0, 0, 0x00000001U }}};
 142  142  #else  /* _BIG_ENDIAN */
 143      -const in6_addr_t ipv6_loopback = { 0, 0, 0, 0x01000000U };
      143 +const in6_addr_t ipv6_loopback = {{{ 0, 0, 0, 0x01000000U }}};
 144  144  #endif /* _BIG_ENDIAN */
 145  145  
 146  146  #ifdef _BIG_ENDIAN
 147      -const in6_addr_t ipv6_all_hosts_mcast = { 0xff020000U, 0, 0, 0x00000001U };
      147 +const in6_addr_t ipv6_all_hosts_mcast = {{{ 0xff020000U, 0, 0, 0x00000001U }}};
 148  148  #else  /* _BIG_ENDIAN */
 149      -const in6_addr_t ipv6_all_hosts_mcast = { 0x000002ffU, 0, 0, 0x01000000U };
      149 +const in6_addr_t ipv6_all_hosts_mcast = {{{ 0x000002ffU, 0, 0, 0x01000000U }}};
 150  150  #endif /* _BIG_ENDIAN */
 151  151  
 152  152  #ifdef _BIG_ENDIAN
 153      -const in6_addr_t ipv6_all_rtrs_mcast = { 0xff020000U, 0, 0, 0x00000002U };
      153 +const in6_addr_t ipv6_all_rtrs_mcast = {{{ 0xff020000U, 0, 0, 0x00000002U }}};
 154  154  #else  /* _BIG_ENDIAN */
 155      -const in6_addr_t ipv6_all_rtrs_mcast = { 0x000002ffU, 0, 0, 0x02000000U };
      155 +const in6_addr_t ipv6_all_rtrs_mcast = {{{ 0x000002ffU, 0, 0, 0x02000000U }}};
 156  156  #endif /* _BIG_ENDIAN */
 157  157  
 158  158  #ifdef _BIG_ENDIAN
 159      -const in6_addr_t ipv6_all_v2rtrs_mcast = { 0xff020000U, 0, 0, 0x00000016U };
      159 +const in6_addr_t ipv6_all_v2rtrs_mcast = {{{ 0xff020000U, 0, 0, 0x00000016U }}};
 160  160  #else  /* _BIG_ENDIAN */
 161      -const in6_addr_t ipv6_all_v2rtrs_mcast = { 0x000002ffU, 0, 0, 0x16000000U };
      161 +const in6_addr_t ipv6_all_v2rtrs_mcast = {{{ 0x000002ffU, 0, 0, 0x16000000U }}};
 162  162  #endif /* _BIG_ENDIAN */
 163  163  
 164  164  #ifdef _BIG_ENDIAN
 165      -const in6_addr_t ipv6_solicited_node_mcast =
 166      -                        { 0xff020000U, 0, 0x00000001U, 0xff000000U };
      165 +const in6_addr_t ipv6_solicited_node_mcast = {
      166 +                        {{ 0xff020000U, 0, 0x00000001U, 0xff000000U }}};
 167  167  #else  /* _BIG_ENDIAN */
 168      -const in6_addr_t ipv6_solicited_node_mcast =
 169      -                        { 0x000002ffU, 0, 0x01000000U, 0x000000ffU };
      168 +const in6_addr_t ipv6_solicited_node_mcast = {
      169 +                        {{ 0x000002ffU, 0, 0x01000000U, 0x000000ffU }}};
 170  170  #endif /* _BIG_ENDIAN */
 171  171  
 172  172  static boolean_t icmp_inbound_verify_v6(mblk_t *, icmp6_t *, ip_recv_attr_t *);
 173  173  static void     icmp_inbound_too_big_v6(icmp6_t *, ip_recv_attr_t *);
 174  174  static void     icmp_pkt_v6(mblk_t *, void *, size_t, const in6_addr_t *,
 175  175      ip_recv_attr_t *);
 176  176  static void     icmp_redirect_v6(mblk_t *, ip6_t *, nd_redirect_t *,
 177  177      ip_recv_attr_t *);
 178  178  static void     icmp_send_redirect_v6(mblk_t *, in6_addr_t *,
 179  179      in6_addr_t *, ip_recv_attr_t *);
↓ open down ↓ 4871 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX