UDP sendmsg error # -95

From: shesha bhushan (bhushan_vadulas@hotmail.com)
Date: Thu Mar 27 2003 - 03:33:43 EST


Hi,

I am using UDP to in the kernel space. I have implemented as follows. But
the sock_sendmsg is returning "-95". Could any one let me know what is the
problem here..

Thanking You
Shesha

==============================
        strcpy(host_ip_ch,TARG_IP);
        host_ip = ntohl(my_inet_addr(host_ip_ch));
        sprintf(host_ip_long,"%u",host_ip);
        soc_addr->sin_addr.s_addr =
htonl(simple_strtoul(host_ip_long,NULL,0));

        soc_addr->sin_family = PF_INET;
        soc_addr->sin_port = htons(PORT_NUM);

        msg.msg_name = soc_addr;
        msg.msg_namelen = sizeof(struct sockaddr_in);

        oldfs = get_fs();
        set_fs(KERNEL_DS);

        retval = sock_sendmsg(sock, &msg, send_length);

        set_fs(oldfs);

===========================================================

_________________________________________________________________
Vrroooom…… Fasten your seatbelts.
http://server1.msn.co.in/msnSpecials/formula2003/index.asp Get set for F1
2003

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Mon Mar 31 2003 - 22:00:27 EST