generate_packets.py: simplify arguments to Variant initializer
Part of #43927. Variant.__init__() currently takes some redundant arguments ~> make it compute some of them out of the others instead:
Part of #43927. Variant.__init__() currently takes some redundant arguments ~> make it compute some of them out of the others instead: