Hi,
im programming in linux sockets, but i need a help in this
lines:
struct etherpacket
{
struct ethhdr eth;
struct iphdr ip;
struct tcphdr tcp;
char buff[8193];
}ep;
struct iphdr *ip;
struct tcphdr *tcp;
-> ip=(struct iphdr *)(((unsigned long)&ep.ip)-2);
-> tcp=(struct tcphdr *)(((unsigned long)&ep.tcp)-2);
Anyone can help me??
The original source of this program in:
http://www.rootshell.com/archive-j457nxiqi3gq59dv/199804/linsniff.c.html
Tnx!!
(O- paulo henrique castro interactive midia
//\ ------------------------------------------------------
V_/_�[EMAIL PROTECTED] -//- www.imidia.com.br -//- debian user
* nao de o peixe. ensine a pescar! *
-
To unsubscribe from this list: send the line "unsubscribe linux-net" in
the body of a message to [EMAIL PROTECTED]