netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* A pure virtual nic
@ 2011-12-29  3:12 Zhen-Hua Li
  2011-12-29  9:19 ` Michał Mirosław
  0 siblings, 1 reply; 6+ messages in thread
From: Zhen-Hua Li @ 2011-12-29  3:12 UTC (permalink / raw)
  To: Linux NetDev

I have opened a project in SourceForge, it provides a pure virtual
ethernet adapter.  If you are interested to join it, please mail me.

Project Name: pvnet

http://sourceforge.net/projects/pvnet/

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: A pure virtual nic
  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
  0 siblings, 1 reply; 6+ messages in thread
From: Michał Mirosław @ 2011-12-29  9:19 UTC (permalink / raw)
  To: Zhen-Hua Li; +Cc: Linux NetDev

2011/12/29 Zhen-Hua Li <lizhenhua.dev@gmail.com>:
> I have opened a project in SourceForge, it provides a pure virtual
> ethernet adapter.  If you are interested to join it, please mail me.

Is veth or tap (both in vanilla kernel) not enough for you? What are
the differences?

Best Regards,
Michał Mirosław

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: A pure virtual nic
  2011-12-29  9:19 ` Michał Mirosław
@ 2011-12-30  1:51   ` Li, Zhen-Hua
  2011-12-30 15:44     ` Ben Greear
  0 siblings, 1 reply; 6+ messages in thread
From: Li, Zhen-Hua @ 2011-12-30  1:51 UTC (permalink / raw)
  To: Michał Mirosław; +Cc: Linux NetDev

I plan to add some protocols to it. For example, HTTP Proxy packet
analysis. So user-space programs can use an NIC in common way in a
proxy needed environment.



2011/12/29 Michał Mirosław <mirqus@gmail.com>:
> 2011/12/29 Zhen-Hua Li <lizhenhua.dev@gmail.com>:
>> I have opened a project in SourceForge, it provides a pure virtual
>> ethernet adapter.  If you are interested to join it, please mail me.
>
> Is veth or tap (both in vanilla kernel) not enough for you? What are
> the differences?
>
> Best Regards,
> Michał Mirosław

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: A pure virtual nic
  2011-12-30  1:51   ` Li, Zhen-Hua
@ 2011-12-30 15:44     ` Ben Greear
  2012-01-04  2:07       ` Li, Zhen-Hua
  0 siblings, 1 reply; 6+ messages in thread
From: Ben Greear @ 2011-12-30 15:44 UTC (permalink / raw)
  To: Li, Zhen-Hua; +Cc: Michał Mirosław, Linux NetDev

On 12/29/2011 05:51 PM, Li, Zhen-Hua wrote:
> I plan to add some protocols to it. For example, HTTP Proxy packet
> analysis. So user-space programs can use an NIC in common way in a
> proxy needed environment.

When a program transmits a packet on your virtual NIC, where does the
packet go?  When it receives a packet, where did the packet come from?

Thanks,
Ben

>
>
>
> 2011/12/29 Michał Mirosław<mirqus@gmail.com>:
>> 2011/12/29 Zhen-Hua Li<lizhenhua.dev@gmail.com>:
>>> I have opened a project in SourceForge, it provides a pure virtual
>>> ethernet adapter.  If you are interested to join it, please mail me.
>>
>> Is veth or tap (both in vanilla kernel) not enough for you? What are
>> the differences?
>>
>> Best Regards,
>> Michał Mirosław
> --
> To unsubscribe from this list: send the line "unsubscribe netdev" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html


-- 
Ben Greear <greearb@candelatech.com>
Candela Technologies Inc  http://www.candelatech.com

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: A pure virtual nic
  2011-12-30 15:44     ` Ben Greear
@ 2012-01-04  2:07       ` Li, Zhen-Hua
  2012-01-04  2:48         ` David Miller
  0 siblings, 1 reply; 6+ messages in thread
From: Li, Zhen-Hua @ 2012-01-04  2:07 UTC (permalink / raw)
  To: Ben Greear; +Cc: Michał Mirosław, Linux NetDev

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.


2011/12/30 Ben Greear <greearb@candelatech.com>:
> On 12/29/2011 05:51 PM, Li, Zhen-Hua wrote:
>>
>> I plan to add some protocols to it. For example, HTTP Proxy packet
>> analysis. So user-space programs can use an NIC in common way in a
>> proxy needed environment.
>
>
> When a program transmits a packet on your virtual NIC, where does the
> packet go?  When it receives a packet, where did the packet come from?
>
> Thanks,
> Ben
>
>>
>>
>>
>> 2011/12/29 Michał Mirosław<mirqus@gmail.com>:
>>>
>>> 2011/12/29 Zhen-Hua Li<lizhenhua.dev@gmail.com>:
>>>>
>>>> I have opened a project in SourceForge, it provides a pure virtual
>>>> ethernet adapter.  If you are interested to join it, please mail me.
>>>
>>>
>>> Is veth or tap (both in vanilla kernel) not enough for you? What are
>>> the differences?
>>>
>>> Best Regards,
>>> Michał Mirosław
>>
>> --
>> To unsubscribe from this list: send the line "unsubscribe netdev" in
>> the body of a message to majordomo@vger.kernel.org
>> More majordomo info at  http://vger.kernel.org/majordomo-info.html
>
>
>
> --
> Ben Greear <greearb@candelatech.com>
> Candela Technologies Inc  http://www.candelatech.com

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: A pure virtual nic
  2012-01-04  2:07       ` Li, Zhen-Hua
@ 2012-01-04  2:48         ` David Miller
  0 siblings, 0 replies; 6+ messages in thread
From: David Miller @ 2012-01-04  2:48 UTC (permalink / raw)
  To: lizhenhua.dev; +Cc: greearb, mirqus, netdev

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.

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2012-01-04  2:48 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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 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).