Print this page
4770 soconfig(1M) needs an option to print the in-kernel socket configuration table

Split Close
Expand all
Collapse all
          --- old/usr/src/uts/common/fs/sockfs/socksyscalls.c
          +++ new/usr/src/uts/common/fs/sockfs/socksyscalls.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  /*
  23   23   * Copyright (c) 1995, 2010, Oracle and/or its affiliates. All rights reserved.
  24   24   */
  25   25  
  26   26  /* Copyright (c) 2013, OmniTI Computer Consulting, Inc. All rights reserved. */
       27 +/*
       28 + * Copyright 2015 Nexenta Systems, Inc. All rights reserved.
       29 + */
  27   30  
  28   31  #include <sys/types.h>
  29   32  #include <sys/t_lock.h>
  30   33  #include <sys/param.h>
  31   34  #include <sys/systm.h>
  32   35  #include <sys/buf.h>
  33   36  #include <sys/conf.h>
  34   37  #include <sys/cred.h>
  35   38  #include <sys/kmem.h>
  36   39  #include <sys/sysmacros.h>
↓ open down ↓ 1818 lines elided ↑ open up ↑
1855 1858          case SOCKCONFIG_REMOVE_SOCK:
1856 1859                  error = sockconf_remove_sock((int)(uintptr_t)arg1,
1857 1860                      (int)(uintptr_t)arg2, (int)(uintptr_t)arg3);
1858 1861                  break;
1859 1862          case SOCKCONFIG_ADD_FILTER:
1860 1863                  error = sockconfig_add_filter((const char *)arg1, arg2);
1861 1864                  break;
1862 1865          case SOCKCONFIG_REMOVE_FILTER:
1863 1866                  error = sockconfig_remove_filter((const char *)arg1);
1864 1867                  break;
     1868 +        case SOCKCONFIG_GET_SOCKTABLE:
     1869 +                error = sockparams_copyout_socktable((int)(uintptr_t)arg1);
     1870 +                break;
1865 1871          default:
1866 1872  #ifdef  DEBUG
1867 1873                  cmn_err(CE_NOTE, "sockconfig: unkonwn subcommand %d", cmd);
1868 1874  #endif
1869 1875                  error = EINVAL;
1870 1876                  break;
1871 1877          }
1872 1878  
1873 1879          if (error != 0) {
1874 1880                  eprintline(error);
↓ open down ↓ 1214 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX