Changeset 3196 in vbox for trunk/src/VBox/Devices/Network
- Timestamp:
- Jun 21, 2007 7:11:55 AM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Network/DrvNetSniffer.cpp
r2981 r3196 100 100 }; 101 101 102 struct pcaprec_hdr_init 103 { 104 uint32_t u32Magic; 105 struct pcap_hdr pcap; 106 #ifdef LOG_ENABLED 107 pcaprec_hdr rec; 108 #endif 109 }; 102 110 103 111 … … 404 412 * Write pcap header. 405 413 */ 406 struct407 {408 uint32_t u32Magic;409 struct pcap_hdr pcap;410 414 #ifdef LOG_ENABLED 411 pcaprec_hdr rec; 412 } Hdr = { PCAP_MAGIC, { 2, 4, 0, 0, 0xffff, 1 }, { 0, 1, 0, 60} }; /* force ethereal to start at 0.000000. */ 415 pcaprec_hdr_init Hdr = 416 { 417 PCAP_MAGIC, 418 { 2, 4, 0, 0, 0xffff, 1 }, 419 { 0, 1, 0, 60} 420 }; /* force ethereal to start at 0.000000. */ 413 421 #else 414 } Hdr = { PCAP_MAGIC, { 2, 4, 0, 0, 0xffff, 1 } }; /* this is just to make it happy, not to be correct. */ 422 pcaprec_hdr_init Hdr = 423 { 424 PCAP_MAGIC, 425 { 2, 4, 0, 0, 0xffff, 1 } 426 }; /* this is just to make it happy, not to be correct. */ 415 427 #endif 428 416 429 RTFileWrite(pData->File, &Hdr, sizeof(Hdr), NULL); 417 430
Note:
See TracChangeset
for help on using the changeset viewer.