- Timestamp:
- Aug 15, 2016 11:13:51 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/HostDrivers/VBoxNetFlt/darwin/VBoxNetFlt-darwin.cpp
r62490 r63512 237 237 static kern_return_t VBoxNetFltDarwinStart(struct kmod_info *pKModInfo, void *pvData) 238 238 { 239 int rc;239 RT_NOREF(pKModInfo, pvData); 240 240 241 241 /* … … 243 243 * (IPRT is shared with VBoxDrv, it creates the loggers.) 244 244 */ 245 rc = RTR0Init(0);245 int rc = RTR0Init(0); 246 246 if (RT_SUCCESS(rc)) 247 247 { … … 283 283 static kern_return_t VBoxNetFltDarwinStop(struct kmod_info *pKModInfo, void *pvData) 284 284 { 285 RT_NOREF(pKModInfo, pvData); 285 286 Log(("VBoxNetFltDarwinStop\n")); 286 287 … … 569 570 * @param fSrc The source of the frame. 570 571 */ 571 DECLINLINE(void) vboxNetFltDarwinMBufToSG(PVBOXNETFLTINS pThis, mbuf_t pMBuf, void *pvFrame, PINTNETSG pSG, unsigned cSegs, uint32_t fSrc) 572 { 573 NOREF(pThis); 572 DECLINLINE(void) vboxNetFltDarwinMBufToSG(PVBOXNETFLTINS pThis, mbuf_t pMBuf, void *pvFrame, PINTNETSG pSG, unsigned cSegs, 573 uint32_t fSrc) 574 { 575 RT_NOREF(pThis, fSrc); 574 576 575 577 /* … … 772 774 static errno_t vboxNetFltDarwinIffIoCtl(void *pvThis, ifnet_t pIfNet, protocol_family_t eProtocol, u_long uCmd, void *pvArg) 773 775 { 776 RT_NOREF(pIfNet); 774 777 PVBOXNETFLTINS pThis = (PVBOXNETFLTINS)pvThis; 775 778 LogFlow(("vboxNetFltDarwinIffIoCtl: pThis=%p uCmd=%lx\n", pThis, uCmd)); … … 985 988 static errno_t vboxNetFltDarwinIffInput(void *pvThis, ifnet_t pIfNet, protocol_family_t eProtocol, mbuf_t *ppMBuf, char **ppchFrame) 986 989 { 987 NOREF(eProtocol); 988 NOREF(pIfNet); 990 RT_NOREF(eProtocol, pIfNet); 989 991 return vboxNetFltDarwinIffInputOutputWorker((PVBOXNETFLTINS)pvThis, *ppMBuf, *ppchFrame, INTNETTRUNKDIR_WIRE, eProtocol); 990 992 } … … 994 996 static DECLCALLBACK(int) vboxNetFltSendDummyWorker(RTTHREAD hThreadSelf, void *pvUser) 995 997 { 998 RT_NOREF(hThreadSelf); 996 999 Assert(pvUser); 997 1000 ifnet_t pIfNet = (ifnet_t)pvUser; … … 1331 1334 { 1332 1335 /* Nothing to do here. */ 1336 RT_NOREF(pThis); 1333 1337 return VINF_SUCCESS; 1334 1338 } … … 1338 1342 { 1339 1343 /* Nothing to do here. */ 1344 RT_NOREF(pThis); 1340 1345 return VINF_SUCCESS; 1341 1346 } … … 1517 1522 } 1518 1523 1519 struct net_event_data my_link;1520 1524 ifnet_t pIfNet = pThis->u.s.pIfNet; /* XXX: retain? */ 1521 1525 ifnet_family_t if_family = ifnet_family(pIfNet);
Note:
See TracChangeset
for help on using the changeset viewer.