From: Ben Collins <bcollins@debian.org>
To: Sandeep Gopal Nijsure <nijsure@cs.unt.edu>
Cc: linux-kernel@vger.kernel.org
Subject: Re: About net part of the kernel
Date: Wed, 20 Feb 2002 00:05:27 -0500 [thread overview]
Message-ID: <20020220050527.GR3914@blimpo.internal.net> (raw)
In-Reply-To: <Pine.LNX.3.96.1020219225420.6940B-100000@csp05.csci.unt.edu>
In-Reply-To: <Pine.LNX.3.96.1020219225420.6940B-100000@csp05.csci.unt.edu>
On Tue, Feb 19, 2002 at 10:58:53PM -0600, Sandeep Gopal Nijsure wrote:
> Hi,
>
> I want to make, say, a machine 10.0.0.5 accept an IP packet with the
> destination address of 10.0.0.2. I hope I can do this by changing a bit of
> kernel networking code, where it's decided whether to accept an IP packet
> as a local packet.. I could not locate the code.. could anybody tell me
> where exactly the decision process take place?
You could just use device aliasing:
ifconfig eth0 10.0.0.5
ifconfig eth0:1 10.0.0.2
Either that, or if you simply want to sniff network packets, look into
turning on promiscuous mode (as tcpdump does).
--
.----------=======-=-======-=========-----------=====------------=-=-----.
/ Ben Collins -- Debian GNU/Linux -- WatchGuard.com \
` bcollins@debian.org -- Ben.Collins@watchguard.com '
`---=========------=======-------------=-=-----=-===-======-------=--=---'
next prev parent reply other threads:[~2002-02-20 5:08 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-02-20 4:58 Sandeep Gopal Nijsure
2002-02-20 5:05 ` Ben Collins [this message]
2002-02-20 5:10 ` Alex Song
2002-02-20 5:13 ` Alex Song
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=20020220050527.GR3914@blimpo.internal.net \
--to=bcollins@debian.org \
--cc=linux-kernel@vger.kernel.org \
--cc=nijsure@cs.unt.edu \
/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®