Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
…#1293) * Fix #1291 Do not assert when --dump-packet-data option is enabled ... ... when sending a length 0 packet. Granted this is an unusual situation, but there are test programs for p4c and p4testgen where p4testgen creates tests where the expected output packet is 0 bytes long, and if you run them while enabling --dump-packet-data N option for behavioral-model, simple_switch crashes with an assert. Signed-off-by: Andy Fingerhut <[email protected]> * Defensive programming Signed-off-by: Andy Fingerhut <[email protected]> * Address review commments. Signed-off-by: Andy Fingerhut <[email protected]> --------- Signed-off-by: Andy Fingerhut <[email protected]>
- Loading branch information