On Thu, 5 Sep 2013 19:25:55 +0900 Satoshi Kobayashi <[email protected]> wrote:
> For example: > > (Current) > e = ethernet.ethernet(…) > i = ipv4.ipv4(…) > u = udp.udp(…) > pkt = packet.Packet() > pkt.add_protocols(e) > pkt.add_protocols(i) > pkt.add_protocols(u) > > (New) > e = ethernet.ethernet(…) > i = ipv4.ipv4(…) > u = udp.udp(…) > pkt = e/i/u > > Signed-off-by: Satoshi Kobayashi <[email protected]> > --- > ryu/lib/packet/packet.py | 14 ++++++++++++++ > ryu/tests/unit/packet/test_packet.py | 12 ++++++++++++ > 2 files changed, 26 insertions(+), 0 deletions(-) Applied, thanks. I didn't fancy scappy API much so I invented the curret one. But support such API is fine by me if developers prefer. I don't like the hack to avoid circular import but it's a different issue. ------------------------------------------------------------------------------ LIMITED TIME SALE - Full Year of Microsoft Training For Just $49.99! 1,500+ hours of tutorials including VisualStudio 2012, Windows 8, SharePoint 2013, SQL 2012, MVC 4, more. BEST VALUE: New Multi-Library Power Pack includes Mobile, Cloud, Java, and UX Design. Lowest price ever! Ends 9/22/13. http://pubads.g.doubleclick.net/gampad/clk?id=64545871&iu=/4140/ostg.clktrk _______________________________________________ Ryu-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/ryu-devel
