My program works fine over a PPPoA internet connection, however, it
can't capture any packets over a PPPoE connection. WinDump works fine on
both connections, so there's a problem with my program. I use the
following structure for IP header:
typedef struct IP_HEADER
{
u_char ver_ihl;
u_char tos;
u_short tlen;
u_short identification;
u_short flags_fo;
u_char ttl;
u_char proto;
u_short crc;
IP_ADDRESS saddr;
IP_ADDRESS daddr;
u_int op_pad;
}
IP_HEADER;
IP_HEADER *ih = (IP_HEADER *)(packet + 14);
Is PPPoE header different than the above? Please help, TIA.
==================================================================
This is the WinPcap users list. It is archived at
http://www.mail-archive.com/[EMAIL PROTECTED]/
To unsubscribe use
mailto: [EMAIL PROTECTED]
==================================================================