Changeset 13910 in vbox for trunk/src/VBox/HostDrivers
- Timestamp:
- Nov 6, 2008 12:27:56 PM (16 years ago)
- svn:sync-xref-src-repo-rev:
- 38917
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/HostDrivers/VBoxNetFlt/solaris/VBoxNetFlt-solaris.c
r13906 r13910 1794 1794 { 1795 1795 /* 1796 * Inject/Eject from the host IP stack. 1797 */ 1798 if (!fAttach) 1799 vboxNetFltRetain(pThis, false /* fBusy */); 1800 1801 /* 1796 1802 * Set global data which will be grabbed by ModOpen. 1797 1803 * There is a known (though very unlikely) race here because … … 1801 1807 g_VBoxNetFltSolarisStreamType = kIp4Stream; 1802 1808 1803 /*1804 * Inject/Eject from the host IP stack.1805 */1806 if (!fAttach)1807 vboxNetFltRetain(pThis, false /* fBusy */);1808 1809 rc = strioctl(pIp4VNode, fAttach ? _I_INSERT : _I_REMOVE, (intptr_t)&StrMod, 0, K_TO_K, 1809 1810 kcred, &ret); … … 1854 1855 */ 1855 1856 if (fAttach) 1856 strioctl(p Ip4VNode, _I_REMOVE, (intptr_t)&StrMod, 0, K_TO_K, kcred, &ret);1857 strioctl(pArpVNode, _I_REMOVE, (intptr_t)&StrMod, 0, K_TO_K, kcred, &ret); 1857 1858 } 1858 1859 else … … 1860 1861 LogRel((DEVICE_NAME ":vboxNetFltSolarisAttachIp4: failed to %s the ARP stack. rc=%d\n", 1861 1862 fAttach ? "inject into" : "eject from", rc)); 1862 if (!fAttach)1863 vboxNetFltRelease(pThis, false /* fBusy */);1864 1863 } 1865 1864 … … 1868 1867 1869 1868 vboxNetFltSolarisRelinkIp4(pUdp4VNode, &Ip4Interface, Ip4MuxFd, ArpMuxFd); 1869 1870 if (!fAttach) 1871 vboxNetFltRelease(pThis, false /* fBusy */); 1870 1872 } 1871 1873 else … … 1873 1875 LogRel((DEVICE_NAME ":vboxNetFltSolarisAttachIp4: failed to %s the IP stack. rc=%d\n", 1874 1876 fAttach ? "inject into" : "eject from", rc)); 1875 if (!fAttach)1876 vboxNetFltRelease(pThis, false /* fBusy */);1877 1877 } 1878 1879 g_VBoxNetFltSolarisInstance = NULL; 1880 g_VBoxNetFltSolarisStreamType = kUndefined; 1881 1882 if (!fAttach) 1883 vboxNetFltRelease(pThis, false /* fBusy */); 1878 1884 } 1879 1885 else … … 2011 2017 if (RT_SUCCESS(rc)) 2012 2018 { 2019 if (!fAttach) 2020 vboxNetFltRetain(pThis, false /* fBusy */); 2021 2013 2022 /* 2014 2023 * Set global data which will be grabbed by ModOpen. … … 2018 2027 g_VBoxNetFltSolarisInstance = pThis; 2019 2028 g_VBoxNetFltSolarisStreamType = kIp6Stream; 2020 2021 if (!fAttach)2022 vboxNetFltRetain(pThis, false /* fBusy */);2023 2029 2024 2030 /*
Note:
See TracChangeset
for help on using the changeset viewer.