Alexis ROYER

Results 17 comments of Alexis ROYER

**Analysis** Let *N* the number of packet fields at a given stage. Let *D* (depth) the number of stages of nested packet fields. The expected complexity for this kind of...

Successfully fixed in a Scapy wrapper. I'll provide a PR soon to propose the integration of it directly in Scapy implementation. Notes: - This fix makes cache being set on...

@gpotter2 Draft-PR #4727 initiated. Could you please send me your remarks on it? so that I can make it clean. Thanks.

The following example intends to make use of `PacketListField`: ```python class B0(Packet): fields_desc = [ ByteField("value", default=0) ] class A0(Packet): fields_desc = [ PacketListField("b", pkt_cls=B0, count_from=lambda pkt: 2, default=[]) ]...

Proposal: provide a `FinalPacket` class that implements this *no-payload* trait. ```python class FinalPacket(Packet): def extract_padding(self, s): return b'', s class B3(FinalPacket): fields_desc = [ ByteField("value", default=0) ] class A3(Packet): fields_desc...

A couple of figures about the impact of the changes: 'perf_packet_fields.uts' times before changes: ``` passed 2E618233 000.02s 000) Define `NUMBER_OF_I_PER_M` and `NUMBER_OF_F_PER_I` constants, and prepare a base `TestPacket` class....

I've also tried to see how things behave when making the two constants `NUMBER_OF_I_PER_M` and `NUMBER_OF_F_PER_I` vary. In red, before the changes, in blue, after the changes: ![Figure_1](https://github.com/user-attachments/assets/5b8250ae-a0dc-4356-925d-f2791cbda2f9) With that...

The code is probably rough for the moment. That's why I opened a draft PR. I'll be glad to read through your remarks to make it better.