linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: antirez <antirez@invece.org>
To: Joe Wong <joewong@tkodog.no-ip.com>
Cc: linux-kernel@vger.kernel.org
Subject: Re: IP -> hostname lookup in kernel module?
Date: Wed, 12 Dec 2001 17:35:17 +0100	[thread overview]
Message-ID: <20011212173517.G17064@blu> (raw)
In-Reply-To: <1008174218.3c17848ab4b69@home.hjc.edu.sg> <Pine.LNX.4.33.0112130035070.2697-100000@localhost.localdomain>
In-Reply-To: <Pine.LNX.4.33.0112130035070.2697-100000@localhost.localdomain>; from joewong@tkodog.no-ip.com on Thu, Dec 13, 2001 at 12:36:06AM +0800

On Thu, Dec 13, 2001 at 12:36:06AM +0800, Joe Wong wrote:
> Hi,
> 
>   Is there such a thing in kernel like gethostbyaddr in user space?

There isn't, but you can create an UDP socket and to the query,
or run an userspace resolver daemon that talks with your
module, or some other trick.

BTW it isn't the kind of stuff to do in kernelspace.
You may think about do it in a post-processing stage
if possible, or to write a module that exports to userspace
what you need from the kernel and do the rest in userspace.

-- 
Salvatore Sanfilippo <antirez@invece.org>
http://www.kyuzz.org/antirez
finger antirez@tella.alicom.com for PGP key
28 52 F5 4A 49 65 34 29 - 1D 1B F6 DA 24 C7 12 BF

  reply	other threads:[~2001-12-12 16:43 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-12-12 16:23 Kernel-2.4.17pre8 & invalidate: busy buffer Chen Shiyuan
2001-12-12 16:36 ` IP -> hostname lookup in kernel module? Joe Wong
2001-12-12 16:35   ` antirez [this message]
2001-12-12 19:46     ` H. Peter Anvin
2001-12-13  9:29 ` Kernel-2.4.17pre8 & invalidate: busy buffer Benjamin Herrenschmidt
2001-12-13 11:41   ` Andreas Steinmetz
2001-12-13 14:35     ` Ulrich Wiederhold
2001-12-13 15:26       ` Matt

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=20011212173517.G17064@blu \
    --to=antirez@invece.org \
    --cc=joewong@tkodog.no-ip.com \
    --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;
as well as URLs for NNTP newsgroup(s).