Changeset 33540 in vbox for trunk/src/VBox/HostDrivers/VBoxNetFlt/darwin
- Timestamp:
- Oct 28, 2010 9:27:05 AM (15 years ago)
- svn:sync-xref-src-repo-rev:
- 67140
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/HostDrivers/VBoxNetFlt/darwin/VBoxNetFlt-darwin.cpp
r32740 r33540 95 95 * We have to associate the ethernet header with each packet we're sending 96 96 * because things like icmp will inherit the tag it self so the tag along 97 * isn't suffic ent to identify our mbufs. For the icmp scenario the ethernet98 * header natura rlly changes before the packet is send pack, so let check it.97 * isn't sufficient to identify our mbufs. For the icmp scenario the ethernet 98 * header naturally changes before the packet is send pack, so let check it. 99 99 */ 100 100 typedef struct VBOXNETFLTTAG … … 132 132 133 133 /** The unique tag id for this module. 134 * This is basically a unique string hash that lives on until lreboot.134 * This is basically a unique string hash that lives on until reboot. 135 135 * It is used for tagging mbufs. */ 136 136 static mbuf_tag_id_t g_idTag; … … 324 324 static mbuf_t vboxNetFltDarwinMBufFromSG(PVBOXNETFLTINS pThis, PINTNETSG pSG) 325 325 { 326 /// @todo future? mbuf_how_t How = preem tion enabled ? MBUF_DONTWAIT : MBUF_WAITOK;326 /// @todo future? mbuf_how_t How = preemption enabled ? MBUF_DONTWAIT : MBUF_WAITOK; 327 327 mbuf_how_t How = MBUF_WAITOK; 328 328 … … 350 350 * 351 351 * So, in the end it's better to just do it the simple way that will work 352 * 100%, even if it invol es some extra work (alloc + copy) we really wished352 * 100%, even if it involves some extra work (alloc + copy) we really wished 353 353 * to avoid. 354 354 * 355 355 * Note. We can't make use of the physical addresses on darwin because the 356 * way the mbuf / cluster stuff eworks (see mbuf_data_to_physical and356 * way the mbuf / cluster stuff works (see mbuf_data_to_physical and 357 357 * mcl_to_paddr). 358 358 */ … … 1056 1056 * This api is a bit weird, the best reference is the code. 1057 1057 * 1058 * Also, we have a bit or race conditions wrt the maint ance of1058 * Also, we have a bit or race conditions wrt the maintenance of 1059 1059 * host the interface promiscuity for vboxNetFltPortOsIsPromiscuous. 1060 1060 */
Note:
See TracChangeset
for help on using the changeset viewer.