summaryrefslogtreecommitdiff
path: root/usr/src/uts/common/sys/netstack.h
diff options
context:
space:
mode:
authorBryan Cantrill <bryan@joyent.com>2016-09-24 08:43:10 -0700
committerRobert Mustacchi <rm@joyent.com>2016-10-11 11:14:30 -0700
commit854956ce2a18fd37e3f6160d38ffb87fdbc2edc4 (patch)
tree7854044a320a40c4603857830089ded254695860 /usr/src/uts/common/sys/netstack.h
parent860884eb865676dc41b8ef65c09df94f7c3f14ef (diff)
downloadillumos-joyent-854956ce2a18fd37e3f6160d38ffb87fdbc2edc4.tar.gz
7413 netstack leaks lead to blind netstack reuse
7414 iptun leaks netstacks 7415 ipnet_promisc_add() leaks netstacks in error paths 7416 ill_lookup_on_ifindex_global_instance() could leak netstack ids Reviewed by: Jerry Jelinek <jerry.jelinek@joyent.com> Reviewed by: Robert Mustacchi <rm@joyent.com> Reviewed by: Sebastien Roy <sebastien.roy@delphix.com> Approved by: Dan McDonald <danmcd@omniti.com>
Diffstat (limited to 'usr/src/uts/common/sys/netstack.h')
-rw-r--r--usr/src/uts/common/sys/netstack.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/usr/src/uts/common/sys/netstack.h b/usr/src/uts/common/sys/netstack.h
index 2c77e1be96..edf703f2ef 100644
--- a/usr/src/uts/common/sys/netstack.h
+++ b/usr/src/uts/common/sys/netstack.h
@@ -23,6 +23,11 @@
* Copyright 2009 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
+
+/*
+ * Copyright (c) 2016, Joyent, Inc. All rights reserved.
+ */
+
#ifndef _SYS_NETSTACK_H
#define _SYS_NETSTACK_H
@@ -233,6 +238,7 @@ extern void netstack_rele(netstack_t *);
extern netstack_t *netstack_find_by_cred(const cred_t *);
extern netstack_t *netstack_find_by_stackid(netstackid_t);
extern netstack_t *netstack_find_by_zoneid(zoneid_t);
+extern boolean_t netstack_inuse_by_stackid(netstackid_t stackid);
extern zoneid_t netstackid_to_zoneid(netstackid_t);
extern zoneid_t netstack_get_zoneid(netstack_t *);