[Twisted-Python] Layer 2 and Twitsted

exarkun at twistedmatrix.com exarkun at twistedmatrix.com
Tue Jan 15 12:19:27 MST 2013


On 06:06 pm, james.voip+twisted at gmail.com wrote:
>On Tue, Jan 15, 2013 at 12:58 PM, outcast 
><james.voip+twisted at gmail.com>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.
>>
>>
>>
>>
>>
>>Just looked at the documentation. it looks like it using libpcap and 
>>tun
>interface. No real hooks into ethX type devices.

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




More information about the Twisted-Python mailing list