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

Split Close
Expand all
Collapse all
          --- old/usr/src/uts/common/inet/sctp/sctp_snmp.c
          +++ new/usr/src/uts/common/inet/sctp/sctp_snmp.c
↓ open down ↓ 255 lines elided ↑ open up ↑
 256  256          netstack_rele(ns);
 257  257          return (0);
 258  258  }
 259  259  
 260  260  void *
 261  261  sctp_kstat_init(netstackid_t stackid)
 262  262  {
 263  263          kstat_t *ksp;
 264  264  
 265  265          sctp_named_kstat_t template = {
 266      -                { "sctpRtoAlgorithm",           KSTAT_DATA_INT32, 0 },
 267      -                { "sctpRtoMin",                 KSTAT_DATA_UINT32, 0 },
 268      -                { "sctpRtoMax",                 KSTAT_DATA_UINT32, 0 },
 269      -                { "sctpRtoInitial",             KSTAT_DATA_UINT32, 0 },
 270      -                { "sctpMaxAssocs",              KSTAT_DATA_INT32, 0 },
 271      -                { "sctpValCookieLife",          KSTAT_DATA_UINT32, 0 },
 272      -                { "sctpMaxInitRetr",            KSTAT_DATA_UINT32, 0 },
 273      -                { "sctpCurrEstab",              KSTAT_DATA_INT32, 0 },
 274      -                { "sctpActiveEstab",            KSTAT_DATA_INT32, 0 },
 275      -                { "sctpPassiveEstab",           KSTAT_DATA_INT32, 0 },
 276      -                { "sctpAborted",                KSTAT_DATA_INT32, 0 },
 277      -                { "sctpShutdowns",              KSTAT_DATA_INT32, 0 },
 278      -                { "sctpOutOfBlue",              KSTAT_DATA_INT32, 0 },
 279      -                { "sctpChecksumError",          KSTAT_DATA_INT32, 0 },
 280      -                { "sctpOutCtrlChunks",          KSTAT_DATA_INT64, 0 },
 281      -                { "sctpOutOrderChunks",         KSTAT_DATA_INT64, 0 },
 282      -                { "sctpOutUnorderChunks",       KSTAT_DATA_INT64, 0 },
 283      -                { "sctpRetransChunks",          KSTAT_DATA_INT64, 0 },
 284      -                { "sctpOutAck",                 KSTAT_DATA_INT32, 0 },
 285      -                { "sctpOutAckDelayed",          KSTAT_DATA_INT32, 0 },
 286      -                { "sctpOutWinUpdate",           KSTAT_DATA_INT32, 0 },
 287      -                { "sctpOutFastRetrans",         KSTAT_DATA_INT32, 0 },
 288      -                { "sctpOutWinProbe",            KSTAT_DATA_INT32, 0 },
 289      -                { "sctpInCtrlChunks",           KSTAT_DATA_INT64, 0 },
 290      -                { "sctpInOrderChunks",          KSTAT_DATA_INT64, 0 },
 291      -                { "sctpInUnorderChunks",        KSTAT_DATA_INT64, 0 },
 292      -                { "sctpInAck",                  KSTAT_DATA_INT32, 0 },
 293      -                { "sctpInDupAck",               KSTAT_DATA_INT32, 0 },
 294      -                { "sctpInAckUnsent",            KSTAT_DATA_INT32, 0 },
 295      -                { "sctpFragUsrMsgs",            KSTAT_DATA_INT64, 0 },
 296      -                { "sctpReasmUsrMsgs",           KSTAT_DATA_INT64, 0 },
 297      -                { "sctpOutSCTPPkts",            KSTAT_DATA_INT64, 0 },
 298      -                { "sctpInSCTPPkts",             KSTAT_DATA_INT64, 0 },
 299      -                { "sctpInInvalidCookie",        KSTAT_DATA_INT32, 0 },
 300      -                { "sctpTimRetrans",             KSTAT_DATA_INT32, 0 },
 301      -                { "sctpTimRetransDrop",         KSTAT_DATA_INT32, 0 },
 302      -                { "sctpTimHearBeatProbe",       KSTAT_DATA_INT32, 0 },
 303      -                { "sctpTimHearBeatDrop",        KSTAT_DATA_INT32, 0 },
 304      -                { "sctpListenDrop",             KSTAT_DATA_INT32, 0 },
 305      -                { "sctpInClosed",               KSTAT_DATA_INT32, 0 }
      266 +                { "sctpRtoAlgorithm",           KSTAT_DATA_INT32, {{0}} },
      267 +                { "sctpRtoMin",                 KSTAT_DATA_UINT32, {{0}} },
      268 +                { "sctpRtoMax",                 KSTAT_DATA_UINT32, {{0}} },
      269 +                { "sctpRtoInitial",             KSTAT_DATA_UINT32, {{0}} },
      270 +                { "sctpMaxAssocs",              KSTAT_DATA_INT32, {{0}} },
      271 +                { "sctpValCookieLife",          KSTAT_DATA_UINT32, {{0}} },
      272 +                { "sctpMaxInitRetr",            KSTAT_DATA_UINT32, {{0}} },
      273 +                { "sctpCurrEstab",              KSTAT_DATA_INT32, {{0}} },
      274 +                { "sctpActiveEstab",            KSTAT_DATA_INT32, {{0}} },
      275 +                { "sctpPassiveEstab",           KSTAT_DATA_INT32, {{0}} },
      276 +                { "sctpAborted",                KSTAT_DATA_INT32, {{0}} },
      277 +                { "sctpShutdowns",              KSTAT_DATA_INT32, {{0}} },
      278 +                { "sctpOutOfBlue",              KSTAT_DATA_INT32, {{0}} },
      279 +                { "sctpChecksumError",          KSTAT_DATA_INT32, {{0}} },
      280 +                { "sctpOutCtrlChunks",          KSTAT_DATA_INT64, {{0}} },
      281 +                { "sctpOutOrderChunks",         KSTAT_DATA_INT64, {{0}} },
      282 +                { "sctpOutUnorderChunks",       KSTAT_DATA_INT64, {{0}} },
      283 +                { "sctpRetransChunks",          KSTAT_DATA_INT64, {{0}} },
      284 +                { "sctpOutAck",                 KSTAT_DATA_INT32, {{0}} },
      285 +                { "sctpOutAckDelayed",          KSTAT_DATA_INT32, {{0}} },
      286 +                { "sctpOutWinUpdate",           KSTAT_DATA_INT32, {{0}} },
      287 +                { "sctpOutFastRetrans",         KSTAT_DATA_INT32, {{0}} },
      288 +                { "sctpOutWinProbe",            KSTAT_DATA_INT32, {{0}} },
      289 +                { "sctpInCtrlChunks",           KSTAT_DATA_INT64, {{0}} },
      290 +                { "sctpInOrderChunks",          KSTAT_DATA_INT64, {{0}} },
      291 +                { "sctpInUnorderChunks",        KSTAT_DATA_INT64, {{0}} },
      292 +                { "sctpInAck",                  KSTAT_DATA_INT32, {{0}} },
      293 +                { "sctpInDupAck",               KSTAT_DATA_INT32, {{0}} },
      294 +                { "sctpInAckUnsent",            KSTAT_DATA_INT32, {{0}} },
      295 +                { "sctpFragUsrMsgs",            KSTAT_DATA_INT64, {{0}} },
      296 +                { "sctpReasmUsrMsgs",           KSTAT_DATA_INT64, {{0}} },
      297 +                { "sctpOutSCTPPkts",            KSTAT_DATA_INT64, {{0}} },
      298 +                { "sctpInSCTPPkts",             KSTAT_DATA_INT64, {{0}} },
      299 +                { "sctpInInvalidCookie",        KSTAT_DATA_INT32, {{0}} },
      300 +                { "sctpTimRetrans",             KSTAT_DATA_INT32, {{0}} },
      301 +                { "sctpTimRetransDrop",         KSTAT_DATA_INT32, {{0}} },
      302 +                { "sctpTimHearBeatProbe",       KSTAT_DATA_INT32, {{0}} },
      303 +                { "sctpTimHearBeatDrop",        KSTAT_DATA_INT32, {{0}} },
      304 +                { "sctpListenDrop",             KSTAT_DATA_INT32, {{0}} },
      305 +                { "sctpInClosed",               KSTAT_DATA_INT32, {{0}} }
 306  306          };
 307  307  
 308  308          ksp = kstat_create_netstack(SCTP_MOD_NAME, 0, "sctp", "mib2",
 309  309              KSTAT_TYPE_NAMED, NUM_OF_FIELDS(sctp_named_kstat_t), 0, stackid);
 310  310  
 311  311          if (ksp == NULL)
 312  312                  return (NULL);
 313  313  
 314  314          /* These won't change. */
 315  315          template.sctpRtoAlgorithm.value.i32 = MIB2_SCTP_RTOALGO_VANJ;
↓ open down ↓ 654 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX