Changeset 28025 in vbox for trunk/src/VBox/HostDrivers/VBoxNetFlt/linux
- Timestamp:
- Apr 7, 2010 6:37:43 AM (15 years ago)
- svn:sync-xref-src-repo-rev:
- 59732
- Location:
- trunk/src/VBox/HostDrivers/VBoxNetFlt/linux
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/HostDrivers/VBoxNetFlt/linux/VBoxNetFlt-linux.c
r21682 r28025 34 34 #include <VBox/log.h> 35 35 #include <VBox/err.h> 36 #include <VBox/intnetinline.h> 36 37 #include <iprt/alloca.h> 37 38 #include <iprt/assert.h> … … 358 359 359 360 Assert(!skb_shinfo(pBuf)->frag_list); 360 pSG->pvOwnerData = NULL; 361 pSG->pvUserData = NULL; 362 pSG->pvUserData2 = NULL; 363 pSG->cUsers = 1; 364 pSG->fFlags = INTNETSG_FLAGS_TEMP; 365 pSG->cSegsAlloc = cSegs; 366 367 if (fSrc & INTNETTRUNKDIR_WIRE) 361 362 if (fSrc & INTNETTRUNKDIR_WIRE) 368 363 { 369 364 /* … … 373 368 skb_push(pBuf, ETH_HLEN); 374 369 } 375 pSG->cbTotal = pBuf->len; 370 371 INTNETSgInitTempSegs(pSG, pBuf->len, cSegs, 0 /*cSegsUsed*/); 372 376 373 #ifdef VBOXNETFLT_SG_SUPPORT 377 374 pSG->aSegs[0].cb = skb_headlen(pBuf); … … 387 384 pSG->aSegs[i+1].Phys = NIL_RTHCPHYS; 388 385 } 389 pSG->cSegsUsed = ++i; 386 ++i; 387 390 388 #else 391 389 pSG->aSegs[0].cb = pBuf->len; 392 390 pSG->aSegs[0].pv = pBuf->data; 393 391 pSG->aSegs[0].Phys = NIL_RTHCPHYS; 394 pSG->cSegsUsed = i = 1; 395 #endif 396 392 i = 1; 393 #endif 394 395 pSG->cSegsUsed = i; 397 396 398 397 #ifdef PADD_RUNT_FRAMES_FROM_HOST … … 415 414 pSG->cbTotal = 60; 416 415 pSG->cSegsUsed++; 417 } 418 #endif 416 Assert(i + 1 <= pSG->cSegsAlloc) 417 } 418 #endif 419 419 420 Log4(("vboxNetFltLinuxSkBufToSG: allocated=%d, segments=%d frags=%d next=%p frag_list=%p pkt_type=%x fSrc=%x\n", 420 421 pSG->cSegsAlloc, pSG->cSegsUsed, skb_shinfo(pBuf)->nr_frags, pBuf->next, skb_shinfo(pBuf)->frag_list, pBuf->pkt_type, fSrc)); -
trunk/src/VBox/HostDrivers/VBoxNetFlt/linux/files_vboxnetflt
-
Property svn:eol-style
changed from
LF
tonative
-
Property svn:keywords
set to
Author Date Id Revision
r25536 r28025 1 1 #!/bin/sh 2 # $Id :$2 # $Id$ 3 3 ## @file 4 4 # Shared file between Makefile.kmk and export_modules … … 55 55 ${PATH_ROOT}/include/VBox/log.h=>include/VBox/log.h \ 56 56 ${PATH_ROOT}/include/VBox/intnet.h=>include/VBox/intnet.h \ 57 ${PATH_ROOT}/include/VBox/intnetinline.h=>include/VBox/intnetinline.h \ 57 58 ${PATH_ROOT}/include/VBox/stam.h=>include/VBox/stam.h \ 58 59 ${PATH_ROOT}/include/VBox/sup.h=>include/VBox/sup.h \ -
Property svn:eol-style
changed from
Note:
See TracChangeset
for help on using the changeset viewer.