|
Hi.
First, it depends on how you declared the ethernet
header.
Second, the IP header has not a fixed length (it is
*usually* 20 bytes, but it's longer if it contains options).
Third, it is not safe to "printf("%s" payload)",
since the payload is not a string, but rather a sequence of bytes.
Fourth, did you try windump (http://windump.polito.it)? If it works (i.e.
it is able to decode packets), then there is an error in your code.
GV
|
- [WinPcap-users] (CLASS A&C PROBLEM AGAIN)code is here... leo lion
- Re: [WinPcap-users] (CLASS A&C PROBLEM AGAIN)cod... Gianluca Varenni
- Re: [WinPcap-users] (CLASS A&C PROBLEM AGAIN... Gianluca Varenni
