Click here to Skip to main content
15,897,704 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Setting the font in SDI Pin
Steve S12-Feb-04 6:07
Steve S12-Feb-04 6:07 
Generalmodal dialog problem Pin
Coming12-Feb-04 3:45
Coming12-Feb-04 3:45 
GeneralRe: modal dialog problem Pin
basementman12-Feb-04 3:55
basementman12-Feb-04 3:55 
GeneralRe: modal dialog problem Pin
Coming12-Feb-04 4:06
Coming12-Feb-04 4:06 
GeneralRe: modal dialog problem Pin
Dennis L12-Feb-04 4:15
Dennis L12-Feb-04 4:15 
GeneralRe: modal dialog problem Pin
David Crow12-Feb-04 5:55
David Crow12-Feb-04 5:55 
GeneralRe: modal dialog problem Pin
RobJones12-Feb-04 4:50
RobJones12-Feb-04 4:50 
Generalreading header Pin
styve12-Feb-04 3:37
styve12-Feb-04 3:37 
Hi!

I'm recieving packets with pcap_next and store them to a file with pcap_dump. To double check I also copy the packet to a buffer and print the first five bytes at the console to see if they are the same as in the file.

But they not. In the file the first packet come after 40 bytes. So I think it is the IP header 20 bytes + TCP header 20 bytes. Why are they not performed on the screen when I print them in the console?

So I think, okey, then there will be 40 extra bytes for next paket too, but it is not. It is only 16 bytes??? and also next packet, and next ...
Why is it 40 bytes for the first packet I recieve, and then 16 bytes for the packets I recieve after?

Can someone explain this for a confused man,
Stefan
GeneralRegistration procedure Pin
Dennis L12-Feb-04 3:34
Dennis L12-Feb-04 3:34 
GeneralRe: Registration procedure Pin
David Crow12-Feb-04 5:52
David Crow12-Feb-04 5:52 
GeneralRe: Registration procedure Pin
Steve S12-Feb-04 6:12
Steve S12-Feb-04 6:12 
Generalvolume control Pin
mandiya12-Feb-04 3:29
mandiya12-Feb-04 3:29 
GeneralRe: volume control Pin
Ravi Bhavnani12-Feb-04 4:04
professionalRavi Bhavnani12-Feb-04 4:04 
GeneralRe: volume control Pin
David Crow12-Feb-04 5:50
David Crow12-Feb-04 5:50 
GeneralRe: how to read sectors from CD_ROM Pin
David Crow12-Feb-04 5:46
David Crow12-Feb-04 5:46 
GeneralIDispatch Interface for IE Pin
balifrank12-Feb-04 3:11
balifrank12-Feb-04 3:11 
GeneralRe: IDispatch Interface for IE Pin
Anonymous12-Feb-04 7:21
Anonymous12-Feb-04 7:21 
GeneralRe: IDispatch Interface for IE Pin
balifrank16-Feb-04 22:47
balifrank16-Feb-04 22:47 
GeneralControls Disappeat when I press "Enter" on a PropertyPage Pin
iffi99212-Feb-04 3:08
iffi99212-Feb-04 3:08 
GeneralRe: Controls Disappeat when I press "Enter" on a PropertyPage Pin
Maximilien12-Feb-04 3:14
Maximilien12-Feb-04 3:14 
QuestionMFC: Continuosly looping problem? Pin
Ashman11-Feb-04 22:19
Ashman11-Feb-04 22:19 
AnswerRe: MFC: Continuosly looping problem? Pin
David Crow12-Feb-04 2:56
David Crow12-Feb-04 2:56 
GeneralCapturing mouse coordinates Pin
techysavvy11-Feb-04 21:54
techysavvy11-Feb-04 21:54 
GeneralRe: Capturing mouse coordinates Pin
jerry0davis11-Feb-04 22:07
jerry0davis11-Feb-04 22:07 
GeneralRe: Capturing mouse coordinates Pin
Iain Clarke, Warrior Programmer11-Feb-04 22:25
Iain Clarke, Warrior Programmer11-Feb-04 22:25 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.