[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <freemail.20060107143726.20280@fm02.freemail.hu>
Date: Tue Feb 7 13:38:34 2006
From: panczelos at freemail.hu (Zolee)
Subject: aix sniffer
Hi!
I want write a tcp packet capture sniffer for aix.(without
packet capture library).
But the following socket is capure only the udp packets:
/The udp capture works fine/
if((sockfd = socket(PF_INET,SOCK_RAW,0)) < 0){
perror("Socket:");
exit(1);
}
And I trying this code:
....
socket(PF_INET,SOCK_RAW,IPPROTO_TCP)
......
But, it doesnt work.
The code is work on linux( a little bit modification).
I dont know, what is false.
Someone can help me?
Ups, Sorry my poor english.
I hope you understand me :-)
Tanx
PZ
________________________________________________________________________
Harry Potter ?s a F?lv?r Herceg - megjelenik febru?r 10-?n. Rendeld meg most!
http://www.bookline.hu/control/news?newsid=322&affiliate=frehp6kar87
Powered by blists - more mailing lists