From: David Miller <davem@davemloft.net>
To: lizhenhua.dev@gmail.com
Cc: greearb@candelatech.com, mirqus@gmail.com, netdev@vger.kernel.org
Subject: Re: A pure virtual nic
Date: Tue, 03 Jan 2012 21:48:24 -0500 (EST) [thread overview]
Message-ID: <20120103.214824.1395410287552500660.davem@davemloft.net> (raw)
In-Reply-To: <CAEk7JKa-H=7oHjU-A1z8aNUZxd3TkJpBmwwrp4zWmZ_i2SQ+Tg@mail.gmail.com>
From: "Li, Zhen-Hua" <lizhenhua.dev@gmail.com>
Date: Wed, 4 Jan 2012 10:07:08 +0800
> When a program sends out a packet, at start_xmit function. it will
> unpack it and packet again with HTTP proxy headers, then give it to
> the actual physical ethernet adapter.
> When it receives a packet, unpack it and remove the http proxy
> headers, and then put it back to the queue in kernel.
A netfilter module is a much more appropriate way to implement this.
You can even implement this kind of packet mangling in userspace using
nfqueue.
prev parent reply other threads:[~2012-01-04 2:48 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-12-29 3:12 A pure virtual nic Zhen-Hua Li
2011-12-29 9:19 ` Michał Mirosław
2011-12-30 1:51 ` Li, Zhen-Hua
2011-12-30 15:44 ` Ben Greear
2012-01-04 2:07 ` Li, Zhen-Hua
2012-01-04 2:48 ` David Miller [this message]
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=20120103.214824.1395410287552500660.davem@davemloft.net \
--to=davem@davemloft.net \
--cc=greearb@candelatech.com \
--cc=lizhenhua.dev@gmail.com \
--cc=mirqus@gmail.com \
--cc=netdev@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).