Date: Sat, 30 Nov 2002 12:38:44 +0000 From: "soheil soheil" <soheil_hh@hotmail.com> To: freebsd-net@freebsd.org Subject: Divert Socket And Q. About Raw Socket Message-ID: <F101nUTURLPWKsmlMII00034011@hotmail.com>
next in thread | raw e-mail | index | archive | help
Dear List first : I want to know if there is any sample of divert socket usage and divert socket programming? I see the ipfw manual it says divert socket is used but when i goto /usr/src/sbin/ipfw and trace ipfw.c i cannot find anything about divert socket i just found a raw socket. second: When i use this code of C (main.c) ....//include sections int main() { int s,fd; char buff[4096]; printf("going to make SD "); s = socket(PF_INET, IP printf("going to read"); soheil: read(s, buff, 4096); // or recv(s,buff,4096, 0); printf("done"); return 0; } After i compile it nothing about output on the screen ( none of printfs are executed ) when i comment out the line labled by soheil it works and output :going to make SD going to read .... I don't know why please help me. THANX alot Soheil hassas yeganeh _________________________________________________________________ MSN 8 with e-mail virus protection service: 2 months FREE* http://join.msn.com/?page=features/virus To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?F101nUTURLPWKsmlMII00034011>