On Sun, 27 Oct 2013 01:11:43 -0500 Gandhimathi Velusamy <mathiy...@gmail.com> wrote:
> I am working on LINC switch with ryu. The program l2_switch_v1_3.py most of > the time works for me and some times it is giving me the following error. > May I know the reason for that. I got another report about LINC switch ofp match bug. Seems that LINC sents a malformed format. Can you apply the follwing patch and send the stdout to the mailing list? Note that this doesn't fix the problem. This is a patch for debugging. Thanks! diff --git a/ryu/ofproto/ofproto_v1_3_parser.py b/ryu/ofproto/ofproto_v1_3_parser.py index bd71fe1..0567b31 100644 --- a/ryu/ofproto/ofproto_v1_3_parser.py +++ b/ryu/ofproto/ofproto_v1_3_parser.py @@ -1130,7 +1130,10 @@ class OFPMatch(StringifyMixin): fields = [] while length > 0: n, value, mask, field_len = ofproto_v1_3.oxm_parse(buf, offset) - k, uv = ofproto_v1_3.oxm_to_user(n, value, mask) + try: + k, uv = ofproto_v1_3.oxm_to_user(n, value, mask) + except: + print utils.hex_array(str(buf[offset:])) fields.append((k, uv)) offset += field_len length -= field_len ------------------------------------------------------------------------------ October Webinars: Code for Performance Free Intel webinars can help you accelerate application performance. Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from the latest Intel processors and coprocessors. See abstracts and register > http://pubads.g.doubleclick.net/gampad/clk?id=60135991&iu=/4140/ostg.clktrk _______________________________________________ Ryu-devel mailing list Ryu-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/ryu-devel