Lines Matching refs:g_offIfNetPCount
144 static unsigned g_offIfNetPCount = sizeof(void *) * (1 /*if_softc*/ + 1 /*if_name*/ + 2 /*if_link*/ + 2 /*if_addrhead*/ + 1 /*if_check_multi*/)
147 #define VBOX_GET_PCOUNT(pIfNet) ( *(int *)((uintptr_t)pIfNet + g_offIfNetPCount) )
150 /** Indicates whether g_offIfNetPCount has been adjusted already (no point in
178 for (unsigned i = g_offIfNetPCount / sizeof(int); i < RT_ELEMENTS(aiSavedState); i++)
210 if (g_offIfNetPCount != offTry1)
212 Log(("VBoxNetFltDarwinDetectPCountOffset: Adjusted if_pcount offset to %x from %x.\n", offTry1, g_offIfNetPCount));
213 g_offIfNetPCount = offTry1;
220 if (g_offIfNetPCount != offTry1)
221 LogRel(("VBoxNetFlt: Failed to detect promiscuous count, all traffic may reach wire (%x != %x).\n", g_offIfNetPCount, offTry1));
1035 /* Adjust g_offIfNetPCount as it varies for different versions of xnu. */