[Twisted-Python] Layer 2 and Twitsted

Greetings, Has anyone done any work around using twisted for layer 2 traffic? -James

On 15 Jan 2013 7:41 PM, "outcast" <james.voip+twisted@gmail.com> wrote:
Greetings,
Has anyone done any work around using twisted for layer 2 traffic?
Layer 2 traffic would be the domain of twisted.pair; I'm not aware of anyone using this in a "real" project, though, and I'd wager it needs some extra work before it'll be useful for most purposes.

On Tue, Jan 15, 2013 at 12:47 PM, Tristan Seligmann <mithrandi@mithrandi.net
wrote:
I have been working on a kernel module to allow me to get the packets out of kernel land and into user space ATM. Not sure how twisted.pair does that. I will go and google but the ultimate goal is to have a complete network stack in python. So any information would be greatly appreciated. If I can get some good traction I might bring it to the next hack-a-thon just learning ATM but I have purpose in mind.

On 06:06 pm, james.voip+twisted@gmail.com wrote:
How is that different from what you want? Are you looking to get ethernet frames instead of IP datagrams? You can do that with tun devices too (perhaps they're called "tap" devices when used in that context, though there's basically no difference in how they are set up and used). Jean-Paul

On Tue, Jan 15, 2013 at 2:19 PM, <exarkun@twistedmatrix.com> wrote:
Don't want to use tap type of devices. Want to be able to handle packets natively from the interface with minimal amount of overhead. Basically want my own rx_handler to python call back. Yes I want the raw ethernet frames. Looking at an embedded solution so its a case of less is more.

On 15 Jan 2013 7:41 PM, "outcast" <james.voip+twisted@gmail.com> wrote:
Greetings,
Has anyone done any work around using twisted for layer 2 traffic?
Layer 2 traffic would be the domain of twisted.pair; I'm not aware of anyone using this in a "real" project, though, and I'd wager it needs some extra work before it'll be useful for most purposes.

On Tue, Jan 15, 2013 at 12:47 PM, Tristan Seligmann <mithrandi@mithrandi.net
wrote:
I have been working on a kernel module to allow me to get the packets out of kernel land and into user space ATM. Not sure how twisted.pair does that. I will go and google but the ultimate goal is to have a complete network stack in python. So any information would be greatly appreciated. If I can get some good traction I might bring it to the next hack-a-thon just learning ATM but I have purpose in mind.

On 06:06 pm, james.voip+twisted@gmail.com wrote:
How is that different from what you want? Are you looking to get ethernet frames instead of IP datagrams? You can do that with tun devices too (perhaps they're called "tap" devices when used in that context, though there's basically no difference in how they are set up and used). Jean-Paul

On Tue, Jan 15, 2013 at 2:19 PM, <exarkun@twistedmatrix.com> wrote:
Don't want to use tap type of devices. Want to be able to handle packets natively from the interface with minimal amount of overhead. Basically want my own rx_handler to python call back. Yes I want the raw ethernet frames. Looking at an embedded solution so its a case of less is more.
participants (3)
-
exarkun@twistedmatrix.com
-
outcast
-
Tristan Seligmann