Print this page
4770 soconfig(1M) needs an option to print the in-kernel socket configuration table
@@ -22,10 +22,13 @@
/*
* Copyright (c) 1995, 2010, Oracle and/or its affiliates. All rights reserved.
*/
/* Copyright (c) 2013, OmniTI Computer Consulting, Inc. All rights reserved. */
+/*
+ * Copyright 2015 Nexenta Systems, Inc. All rights reserved.
+ */
#include <sys/types.h>
#include <sys/t_lock.h>
#include <sys/param.h>
#include <sys/systm.h>
@@ -1860,10 +1863,13 @@
error = sockconfig_add_filter((const char *)arg1, arg2);
break;
case SOCKCONFIG_REMOVE_FILTER:
error = sockconfig_remove_filter((const char *)arg1);
break;
+ case SOCKCONFIG_GET_SOCKTABLE:
+ error = sockparams_copyout_socktable((int)(uintptr_t)arg1);
+ break;
default:
#ifdef DEBUG
cmn_err(CE_NOTE, "sockconfig: unkonwn subcommand %d", cmd);
#endif
error = EINVAL;