diff options
author | Bryan Cantrill <bryan@joyent.com> | 2016-09-06 22:13:54 +0000 |
---|---|---|
committer | Bryan Cantrill <bryan@joyent.com> | 2016-09-09 20:55:11 +0000 |
commit | 30929368aafd4ac5de5f09aa113e55772d766549 (patch) | |
tree | d5b62dc02fc844e0fb80f74f00f5943750ab8119 /usr/src/uts/common/sys/netstack.h | |
parent | d09721f7446ca0fcc46a38cae275f18d560585c7 (diff) | |
download | illumos-joyent-30929368aafd4ac5de5f09aa113e55772d766549.tar.gz |
OS-4810 Panic: BAD TRAP in udp_do_open
OS-5631 iptun leaks netstacks
OS-5632 ipnet_promisc_add() leaks netstacks in error paths
OS-5633 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>
Approved by: Jerry Jelinek <jerry.jelinek@joyent.com>
Diffstat (limited to 'usr/src/uts/common/sys/netstack.h')
-rw-r--r-- | usr/src/uts/common/sys/netstack.h | 6 |
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 73f29d1e63..4d8e99934b 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 @@ -234,6 +239,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 *); |