diff options
author | Darren Reed <Darren.Reed@Sun.COM> | 2009-09-24 07:28:12 -0700 |
---|---|---|
committer | Darren Reed <Darren.Reed@Sun.COM> | 2009-09-24 07:28:12 -0700 |
commit | 0a0e9771ca0211c15f3ac4466b661c145feeb9e4 (patch) | |
tree | 9579700b2fec7e9c9c57beeca83bda8681eb9e7a /usr/src/uts/common/os/netstack.c | |
parent | af1222373b60d56d6b0e630911372d4162b7787b (diff) | |
download | illumos-gate-0a0e9771ca0211c15f3ac4466b661c145feeb9e4.tar.gz |
PSARC/2009/232 Solaris Packet Capture
PSARC/2009/403 kstats for ipnet
6824047 every downcall function should have a "notsupported" function
6822740 RFE: provide PF_PACKET for developers on OpenSolaris
6822741 RFE: Solaris needs BPF to improve the packet capture story
6867683 RFE: need to be able to retrieve physical interface flags
Diffstat (limited to 'usr/src/uts/common/os/netstack.c')
-rw-r--r-- | usr/src/uts/common/os/netstack.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/usr/src/uts/common/os/netstack.c b/usr/src/uts/common/os/netstack.c index 0e23043859..b8467fbe13 100644 --- a/usr/src/uts/common/os/netstack.c +++ b/usr/src/uts/common/os/netstack.c @@ -20,7 +20,7 @@ */ /* - * Copyright 2008 Sun Microsystems, Inc. All rights reserved. + * Copyright 2009 Sun Microsystems, Inc. All rights reserved. * Use is subject to license terms. */ @@ -1279,6 +1279,12 @@ zoneid_to_netstackid(zoneid_t zoneid) return (zoneid); } +zoneid_t +netstack_get_zoneid(netstack_t *ns) +{ + return (netstackid_to_zoneid(ns->netstack_stackid)); +} + /* * Simplistic support for walking all the handles. * Example usage: |