Re: [Ryu-devel] IP packet handler

2013-10-18 Thread Gabriele Gerbino
Many thanks. If it can be helpful, after some effort, I was able to extract the prefix with the following code icimpv6 = pkt.get_protocol(icmpv6.icmpv6) icmpv6type = icimpv6.type_ if (icmpv6type == 134): icidata = icimpv6.data self.logger.info("[DAT

Re: [Ryu-devel] IP packet handler

2013-10-18 Thread YAMAMOTO Takashi
> I tested your code but, even if I generate a RA using scapy, ryu doesn't go > into the "if isinstance(data, icmpv6.nd_option_pi)" sure, it should have been the following as your log says. if isinstance(data, icmpv6.nd_router_advert): > > It seems like there is no instance for the nd_optio

Re: [Ryu-devel] IP packet handler

2013-10-16 Thread Gabriele Gerbino
I tested your code but, even if I generate a RA using scapy, ryu doesn't go into the "if isinstance(data, icmpv6.nd_option_pi)" It seems like there is no instance for the nd_option_pi subclass...while I need to print the prefix value. Any hints? Thanks again! Scapy code: a = IPv6() a.dst = "ff02

Re: [Ryu-devel] IP packet handler

2013-10-15 Thread YAMAMOTO Takashi
> Many thanks for your reply, now I've tried some tests and they work. > Unfortunately, I'm experiencing another issue: I want my switch to extract > IPv6 ND informations, but the console reply back to me with this error when > I execute the following code (the omitted portion of code is the same o

Re: [Ryu-devel] IP packet handler

2013-10-15 Thread Gabriele Gerbino
Many thanks for your reply, now I've tried some tests and they work. Unfortunately, I'm experiencing another issue: I want my switch to extract IPv6 ND informations, but the console reply back to me with this error when I execute the following code (the omitted portion of code is the same of simple

Re: [Ryu-devel] IP packet handler

2013-10-14 Thread FUJITA Tomonori
Hi, On Sun, 13 Oct 2013 15:58:14 +0200 Gabriele Gerbino wrote: > Hi there, I'm new to this ML and to OF in general. I was trying to gain > confidence with ryu but I found myself stucked so soon. I wanted to modify > the "simple_switch.py" example in order to make it able to learn IP > addresses

[Ryu-devel] IP packet handler

2013-10-13 Thread Gabriele Gerbino
Hi there, I'm new to this ML and to OF in general. I was trying to gain confidence with ryu but I found myself stucked so soon. I wanted to modify the "simple_switch.py" example in order to make it able to learn IP addresses too and handle packets based on them. In particular, my idea is to use ryu