Print this page
%B

Split Close
Expand all
Collapse all
          --- old/usr/src/cmd/mdb/common/modules/ip/ip.c
          +++ new/usr/src/cmd/mdb/common/modules/ip/ip.c
↓ open down ↓ 333 lines elided ↑ open up ↑
 334  334          if (zi_cb.ipst == NULL) {
 335  335                  mdb_warn("failed to find zone %s\n", zone_name);
 336  336                  return (NULL);
 337  337          }
 338  338  
 339  339          return (zi_cb.ipst);
 340  340  }
 341  341  
 342  342  /*
 343  343   * Generic network stack walker initialization function.  It is used by all
 344      - * other netwrok stack walkers.
      344 + * other network stack walkers.
 345  345   */
 346  346  int
 347  347  ns_walk_init(mdb_walk_state_t *wsp)
 348  348  {
 349  349          if (mdb_layered_walk("netstack", wsp) == -1) {
 350  350                  mdb_warn("can't walk 'netstack'");
 351  351                  return (WALK_ERR);
 352  352          }
 353  353          return (WALK_NEXT);
 354  354  }
↓ open down ↓ 12 lines elided ↑ open up ↑
 367  367          if (mdb_vread(&nss, sizeof (nss), wsp->walk_addr) == -1) {
 368  368                  mdb_warn("can't read netstack at %p", wsp->walk_addr);
 369  369                  return (WALK_ERR);
 370  370          }
 371  371          kaddr = (uintptr_t)nss.netstack_modules[which];
 372  372  
 373  373          return (wsp->walk_callback(kaddr, wsp->walk_layer, wsp->walk_cbdata));
 374  374  }
 375  375  
 376  376  /*
      377 + * DCCP network stack walker stepping function.
      378 + */
      379 +int
      380 +dccp_stacks_walk_step(mdb_walk_state_t *wsp)
      381 +{
      382 +        return (ns_walk_step(wsp, NS_DCCP));
      383 +}
      384 +
      385 +/*
 377  386   * IP network stack walker stepping function.
 378  387   */
 379  388  int
 380  389  ip_stacks_walk_step(mdb_walk_state_t *wsp)
 381  390  {
 382  391          return (ns_walk_step(wsp, NS_IP));
 383  392  }
 384  393  
 385  394  /*
 386  395   * TCP network stack walker stepping function.
↓ open down ↓ 1559 lines elided ↑ open up ↑
1946 1955                  ip_list_walk_init, ip_list_walk_step, ip_list_walk_fini,
1947 1956                  &srcid_walk_arg },
1948 1957          { "ire", "walk active ire_t structures",
1949 1958                  ire_walk_init, ire_walk_step, NULL },
1950 1959          { "ire_next", "walk ire_t structures in the ctable",
1951 1960                  ire_next_walk_init, ire_next_walk_step, NULL },
1952 1961          { "nce", "walk active nce_t structures",
1953 1962                  nce_walk_init, nce_walk_step, NULL },
1954 1963          { "dce", "walk active dce_t structures",
1955 1964                  dce_walk_init, dce_walk_step, NULL },
     1965 +        { "dccp_stacks", "walk all the dccp_stack_t",
     1966 +                ns_walk_init, dccp_stacks_walk_step, NULL },
1956 1967          { "ip_stacks", "walk all the ip_stack_t",
1957 1968                  ns_walk_init, ip_stacks_walk_step, NULL },
1958 1969          { "tcp_stacks", "walk all the tcp_stack_t",
1959 1970                  ns_walk_init, tcp_stacks_walk_step, NULL },
1960 1971          { "sctp_stacks", "walk all the sctp_stack_t",
1961 1972                  ns_walk_init, sctp_stacks_walk_step, NULL },
1962 1973          { "udp_stacks", "walk all the udp_stack_t",
1963 1974                  ns_walk_init, udp_stacks_walk_step, NULL },
1964 1975          { "th_hash", "walk all the th_hash_t entries",
1965 1976                  th_hash_walk_init, th_hash_walk_step, NULL },
↓ open down ↓ 1665 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX