A pure virtual nic

6 messages, 4 authors, 2012-01-04 · open the first message on its own page

A pure virtual nic

From: Zhen-Hua Li <hidden>
Date: 2011-12-29 03:12:04

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/

Re: A pure virtual nic

From: Michał Mirosław <hidden>
Date: 2011-12-29 09:19:32

2011/12/29 Zhen-Hua Li [off-list ref]:
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

Re: A pure virtual nic

From: Li, Zhen-Hua <hidden>
Date: 2011-12-30 01:51:12

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 [off-list ref]:
2011/12/29 Zhen-Hua Li [off-list ref]:
quoted
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

Re: A pure virtual nic

From: Ben Greear <hidden>
Date: 2011-12-30 15:44:24

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[off-list ref]:
quoted
2011/12/29 Zhen-Hua Li[off-list ref]:
quoted
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 [off-list ref]
Candela Technologies Inc  http://www.candelatech.com

Re: A pure virtual nic

From: Li, Zhen-Hua <hidden>
Date: 2012-01-04 02:07:15

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 [off-list ref]:
On 12/29/2011 05:51 PM, Li, Zhen-Hua wrote:
quoted
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
quoted


2011/12/29 Michał Mirosław[off-list ref]:
quoted
2011/12/29 Zhen-Hua Li[off-list ref]:
quoted
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 [off-list ref]
Candela Technologies Inc  http://www.candelatech.com

Re: A pure virtual nic

From: David Miller <davem@davemloft.net>
Date: 2012-01-04 02:48:30

From: "Li, Zhen-Hua" <redacted>
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.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help