Helo,
I'm trying to write a packet generator using wpcap.dll
but I have a problem with creating a packet.
Suppose I'm able to create a ethernet header and a
packet header. How can I make from these two structure
a pointer to u_char?
This is my problem:
const u_char *packet
struct ethernet_header{
u_char ether_dhost[6];
u_char ether_shost[6];
u_short ether_type;
};
struct ip_header{
...
};
ethernet_header ethernet;
ip_header ip;
//?how do I push 'ethernet' and 'ip' into 'packet'?
Thanks,
Kenny Cauwerts
__________________________________________________
Do you Yahoo!?
Yahoo! Tax Center - forms, calculators, tips, more
http://taxes.yahoo.com/
==================================================================
This is the WinPcap users list. It is archived at
http://www.mail-archive.com/[EMAIL PROTECTED]/
To unsubscribe use
mailto: [EMAIL PROTECTED]
==================================================================