From: "shesha bhushan" <bhushan_vadulas@hotmail.com>
To: linux-kernel@vger.kernel.org, kernelnewbies@nl.linux.org
Subject: UDP sendmsg error # -95
Date: Thu, 27 Mar 2003 08:33:43 +0000 [thread overview]
Message-ID: <F69r3sNbCJGe1xqZFWF0000a7cb@hotmail.com> (raw)
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
next reply other threads:[~2003-03-27 8:22 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-03-27 8:33 shesha bhushan [this message]
2003-03-27 14:41 ` Chuck Winters
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=F69r3sNbCJGe1xqZFWF0000a7cb@hotmail.com \
--to=bhushan_vadulas@hotmail.com \
--cc=kernelnewbies@nl.linux.org \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®