[Winpcap-users] Finding header size.

David Barnish david.barnish at spanlink.com
Fri Mar 17 15:57:30 GMT 2006


You do need to look at this yourself.
WinPCap doesn't care what the size of headers or data is (or any other
bit of info in the packet) unless it is a specific test of the filter
you give it. Some protocol headers are a set size. Others are not. If
you wish to only accept packets that have specific values in their
headers, you can do that with the filter string. If you want to read a
specific value from a packet, you must do this yourself in your code
when the packet is delivered to you.

Thank you,
David Barnish
 
Senior Software Engineer R&D
Spanlink Communications

-----Original Message-----
From: winpcap-users-bounces at winpcap.org
[mailto:winpcap-users-bounces at winpcap.org] On Behalf Of Ramiro Polla
Sent: Friday, March 17, 2006 8:24 AM
To: winpcap-users at winpcap.org
Subject: [Winpcap-users] Finding header size.

Hello,

Is there a way for winpcap to inform me the size of the ethernet (or 
whatever) header? Do I really have to check pcap_datalink(pd) myself?
I was wondering, since winpcap can tell me if it's an ip address or not,
it 
must know the header size before the ip address.

Thanks,
Bye,
Ramiro Polla 
_______________________________________________
Winpcap-users mailing list
Winpcap-users at winpcap.org
https://www.winpcap.org/mailman/listinfo/winpcap-users



More information about the Winpcap-users mailing list