packetcap / go-pcap

Packet capture library and tools in native go
Apache License 2.0
14 stars 4 forks source link

Eliminate composite duplication #12

Open deitch opened 4 years ago

deitch commented 4 years ago

In some cases, composites have instructions that are identical duplicates. For example, tcp port 22 or port 53 or port 67 cannot be simplified into a single primitive. However, all three of those primitives will:

those could be simplified into reduced number of steps.