From: Michael Vergoz <mvergoz@sysdoor.com>
To: "shesha bhushan" <bhushan_vadulas@hotmail.com>
Cc: linux-kernel@vger.kernel.org, kernelnewbies@nl.linux.org
Subject: Re: inet_addr Equivalent
Date: Sun, 23 Mar 2003 13:18:18 +0100 [thread overview]
Message-ID: <20030323131818.0a66b59a.mvergoz@sysdoor.com> (raw)
In-Reply-To: <F110LwR2ozm2F4mOKbA0000952b@hotmail.com>
Hi,
Look at :
/* Convert from presentation format of an Internet number in buffer
starting at CP to the binary network format and store result for
interface type AF in buffer starting at BUF. */
extern int inet_pton (int __af, __const char *__restrict __cp,
void *__restrict __buf) __THROW;
If it doesn't work look in the libc source code :)
regards,
Michael
On Sun, 23 Mar 2003 07:32:05 +0000
"shesha bhushan" <bhushan_vadulas@hotmail.com> wrote:
>
> Hi all,
>
> IF i want to use the inet_addr in kernel modules, then how to use. What is
> the equivalent function to this or which is the header file that I have to
> include. If I include "arpa/inet.h" and compile as kernel module, I gives
> whole bunch of errors.
>
> So please help me how to convert doted IP address to unsigned long inside
> kernel modules. All help is very mucg apperciated.
>
> Tahnking You
> Shesha
>
>
>
>
>
> _________________________________________________________________
> Get more buddies in your list. Win prizes http://messenger.msn.co.in/promo
>
> -
> 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/
next prev parent reply other threads:[~2003-03-23 12:07 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-03-23 7:32 shesha bhushan
2003-03-23 12:18 ` Michael Vergoz [this message]
2003-03-23 14:46 ` Prasad
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=20030323131818.0a66b59a.mvergoz@sysdoor.com \
--to=mvergoz@sysdoor.com \
--cc=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®