|
-
February 18th, 2009, 11:06 AM
#1
sendto: Invalid argument netbsd
hi all,
I wrote a tiny client\server on raw-socket. On linux it works very well ,but on netbsd I've got this errno...
sendto: Invalid argument
sent=sendto(sock, buf, buf_siz, 0, (struct sockaddr *) &sin, sizeof(sin));
sent returns -1, but creates socket eventually without errno
if((raw = socket(PF_INET, SOCK_RAW, PPROTO_TCP))== -1) {
perror("Error creating raw socket: ");
return 0;
}
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|