aboutsummaryrefslogtreecommitdiffstats
path: root/tools/netscreen2dump.py
AgeCommit message (Collapse)AuthorFilesLines
2023-10-30netscreen2dump: drop support for netscreen2dump.pyUli Heilmeier1-137/+0
Drop netscreen2dump.py as we have a tap to read Netscreen snoop files and netscreen2dump.py is not running with curren Python3.
2020-09-26Fix issues discovered by common python lintersJeff Widman1-2/+7
Fix some issues discovered by common python linters including: * switch `None` comparisons to use `is` rather than `==`. Identity != equality, and I've spent 40+ hours before tracking down a subtle bug caused by exactly this issue. Note that this may introduce a problem if one of the scripts is depending on this behavior, in which case the comparison should be changed to `True`/`False` rather than `None`. * Use `except Exception:` as bare `except:` statements have been discouraged for years. Ideally for some of these we'd examine if there were specific exceptions that should be caught, but for now I simply caught all. Again, this could introduce very subtle behavioral changes under Python 2, but IIUC, that was all fixed in Python 3, so safe to move to `except Exception:`. * Use more idiomatic `if not x in y`--> `if x not in y` * Use more idiomatic 2 blank lines. I only did this at the beginning, until I realized how overwhelming this was going to be to apply, then I stopped. * Add a TODO where an undefined function name is called, so will fail whenever that code is run. * Add more idiomatic spacing around `:`. This is also only partially cleaned up, as I gave up when I saw how `asn2wrs.py` was clearly infatuated with the construct. * Various other small cleanups, removed some trailing whitespace and improper indentation that wasn't a multiple of 4, etc. There is still _much_ to do, but I haven't been heavily involved with this project before, so thought this was a sufficient amount to put up and see what the feedback is. Linters that I have enabled which highlighted some of these issues include: * `pylint` * `flake8` * `pycodestyle`
2018-03-09spdx: more licenses converted.Dario Lombardo1-13/+1
Change-Id: I8f6693108c43959e54911d35b4fbf730c59add60 Reviewed-on: https://code.wireshark.org/review/26361 Reviewed-by: Anders Broman <a.broman58@gmail.com>
2014-02-14Remove $Id$ and other Subversion leftovers from the tools.Jeff Morriss1-2/+0
There are a few things in here which could still use attention. Don't regenerate anything now. Change-Id: I283c224d3523212144707fca3d6265916cb11792 Reviewed-on: https://code.wireshark.org/review/205 Reviewed-by: Jeff Morriss <jeff.morriss.ws@gmail.com>
2012-06-28Update Free Software Foundation address.Jakub Zawadzki1-1/+1
(COPYING will be updated in next commit) svn path=/trunk/; revision=43536
2008-02-19From pizza_4u at qmx.net: Extend netscreen2dump.py to work with SSG520Bill Meier1-1/+3
Also: Add $ID$ svn path=/trunk/; revision=24391
2006-09-22Handle netscreen 5.3r4 snoop output, too.Gilbert Ramirez1-1/+13
This format adds "len=\d+" before the ":" svn path=/trunk/; revision=19290
2004-10-29Add netscreen2dump.py, to convert netscreen packet-trace hex dumpsGilbert Ramirez1-0/+132
to hex dumps that can be read by text2pcap. svn path=/trunk/; revision=12435