Hi YAMAMOTO-san,

Thank you for your quick reply.

I see. I was using 2.2.
I am looking forward to the next release. :)

Thanks!
Satoshi

2013/8/29 YAMAMOTO Takashi <[email protected]>

> > Hi all,
> >
> > I have noticed that NULL characters are contained in name of
> Datapath#ports
> > (class OFPPort). Probably other places which are parsing the string are
> the
> > same also.
> >
> > For example:
> > OFPPort:
> >
> OFPPort(port_no=5,hw_addr='\x16\xdb\xeeMPZ',name='p0\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00',config=0,state=0,curr=0,advertised=0,supported=0,peer=0,curr_speed=0,max_speed=0)
> >
> > IMHO, This is caused by the spec of 'struct' module of Python.
> >
> >>>> from struct import *
> >>>> unpack('!s', pack('!s', ''))
> > ('\x00',)
> >
> > However, I think that this is not what a user expects.
> >
> >>>> 'p0\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00' == 'p0'
> > False
> >
> > IMHO, We should remove NULL characters from the string.
> > Any ideas?
>
> the latest version removes trailing NULs.
> 90581d0ae0204442bc467ca4aca3130698940a2a
>
> YAMAMOTO Takashi
>
> >
> > Thanks,
> > Satoshi
>
------------------------------------------------------------------------------
Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012, more!
Discover the easy way to master current and previous Microsoft technologies
and advance your career. Get an incredible 1,500+ hours of step-by-step
tutorial videos with LearnDevNow. Subscribe today and save!
http://pubads.g.doubleclick.net/gampad/clk?id=58040911&iu=/4140/ostg.clktrk
_______________________________________________
Ryu-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ryu-devel

Reply via email to