generate_packets.py: Allow importing and calling main() with custom parameters
Follow-up to #43931. Part of #43927.
Currently, it is not possible to get access to the methods inside the script via import, without also executing the script. Being able to do so, and to then execute the main script at a later point with arbitrary parameters, could be useful.
Follow-up to #43931. Part of #43927.
Currently, it is not possible to get access to the methods inside the script via import, without also executing the script. Being able to do so, and to then execute the main script at a later point with arbitrary parameters, could be useful.