Changeset 30111 in vbox for trunk/src/VBox/HostDrivers/VBoxNetFlt/freebsd
- Timestamp:
- Jun 9, 2010 12:14:59 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/HostDrivers/VBoxNetFlt/freebsd/VBoxNetFlt-freebsd.c
r29747 r30111 498 498 int error; 499 499 500 ifp = (void *)ASMAtomicUoReadPtr((void * volatile *)&pThis->u.s.ifp);500 ifp = ASMAtomicUoReadPtrT(&pThis->u.s.ifp, struct ifnet *); 501 501 502 502 if (fDst & INTNETTRUNKDIR_WIRE) … … 568 568 RTSpinlockAcquireNoInts(pThis->hSpinlock, &Tmp); 569 569 570 ASMAtomicUoWritePtr( (void * volatile *)&pThis->u.s.ifp, ifp);570 ASMAtomicUoWritePtr(&pThis->u.s.ifp, ifp); 571 571 pThis->u.s.node = node; 572 572 bcopy(IF_LLADDR(ifp), &pThis->u.s.MacAddr, ETHER_ADDR_LEN); … … 611 611 struct ifnet *ifp, *ifp0; 612 612 613 ifp = (struct ifnet *)ASMAtomicUoReadPtr((void * volatile *)&pThis->u.s.ifp);613 ifp = ASMAtomicUoReadPtrT(&pThis->u.s.ifp, struct ifnet *); 614 614 /* 615 615 * Attempt to check if the interface is still there and re-initialize if … … 669 669 Log(("%s: fActive:%d\n", __func__, fActive)); 670 670 671 ifp = (struct ifnet *)ASMAtomicUoReadPtr((void * volatile *)&pThis->u.s.ifp);672 node = (node_p)ASMAtomicUoReadPtr((void * volatile *)&pThis->u.s.node);671 ifp = ASMAtomicUoReadPtrT(&pThis->u.s.ifp, struct ifnet *); 672 node = ASMAtomicUoReadPtrT(&pThis->u.s.node, node_p); 673 673 674 674 memset(&ifreq, 0, sizeof(struct ifreq));
Note:
See TracChangeset
for help on using the changeset viewer.