Closed GoogleCodeExporter closed 8 years ago
No need to DL the file below.
Go to line 143, within class Open(dpkt.Packet)
Change ('as', 'H', 0), to ('asn', 'H', 0),
Go to line 404, within class Aggregator(dpkt.Packet)
change ('as', 'H', 0), to ('asn', 'H', 0),
Go to line 431, within class Community(dpkt.Packet)
change ('as', 'H', 0), to ('asn', 'H', 0),
Go to line 678, with the testUnpack(self) function within the BGPTestCase class
change self.failUnless(c.as == 65215) to self.failUnless(c.asn == 65215)
Go to line 715, within the same code segment as listed above
change self.failUnless(b4.open.as == 237) to self.failUnless(b4.open.asn ==
237)
Takes maybe 15 seconds. you can search/replace subsets of the string "as"
with "asn", but don't do a blanket replace-all as there are some as_<name>
items in
this function as well.
Original comment by thedepar...@gmail.com
on 8 Feb 2010 at 10:41
c.__setattr__('as', 65215)
Original comment by and...@gmail.com
on 28 Feb 2010 at 7:23
I am confused. I was hoping to use dpkt for some real work...does it work? It
seems
like a really big problem that the project was using a reserved word as an
identifier. How has it ever worked??
Thanks,
-kb
Original comment by kentb...@borg.org
on 24 Mar 2010 at 2:08
Use SVN.
http://code.google.com/p/dpkt/source/detail?r=51
Original comment by jon.ober...@gmail.com
on 24 Mar 2010 at 2:25
Original issue reported on code.google.com by
allisonv...@gmail.com
on 4 Feb 2010 at 12:30Attachments: