Igalia / snabb

Snabb Switch: Fast open source packet processing
Apache License 2.0
48 stars 5 forks source link

Refactor "snabb packetblaster lwaftr" to re-use base apps #1215

Closed wingo closed 5 years ago

wingo commented 5 years ago

This PR updates "snabb packetblaster lwaftr" to use base apps for handling VLAN tags, splitting IPv4 and IPv6 traffic, stamping MAC addresses, and so on. The load generation app itself is split into two (one app for each direction) and simplified. There is some code duplication that can be refactored, but there are some differences as well, and first I would like to get these apps to take a binding table for their softwires instead of manual configuration. WDYT @dpino ?

wingo commented 5 years ago

I should note that I've tested it only with the pcap backend. I've tested with and without vlans and the output looks good to me.