You are not logged in.
Look:
the first I create socket sk:
sk=socket(AF_INET, SOCK_RAW, IPPROTO_RAW);
and I fill data into Ip Head and Icmp Head,
then I sendto the packet,but I don't receive
any datas:
lenrecv=recvfrom(sk,buf,100,0,(struct sockaddr*)&addr,&rlen);
my codes run at the function recvfrom,but it
couldn't return variable lenrecv,and it look like down,
I want to know why?how to receive the data?
(I couldn't creat socket like this:
sk=socket(AF_INET, SOCK_RAW, IPPROTO_ICMP);
I want to know when I creat socket like this
sk=socket(AF_INET, SOCK_RAW, IPPROTO_RAW);
How to receive datas?)
Offline
![]()
Last edited by joseperezc (2012-08-14 18:58:22)
Hope to be helpfull
Offline
![]()
Last edited by joseperezc (2012-08-14 18:58:39)
Hope to be helpfull
Offline
joseperec - you will be banned if you do this again.
If you don't have anything constructive to add to a thread, don't post in it.
Offline
leetow2003, is this a programming problem or a network problem? If this is a network problem, please give more information about your network setup. Thanks.
aur S & M :: forum rules :: Community Ethos
Resources for Women, POC, LGBT*, and allies
Offline