pg: fix pcap packet type when writing pcap file 68/41268/3
authorDave Wallace <[email protected]>
Tue, 16 Jul 2024 19:32:55 +0000 (15:32 -0400)
committerDamjan Marion <[email protected]>
Thu, 18 Jul 2024 14:46:07 +0000 (14:46 +0000)
commit6ce5d5bcbbcd8c633c8ef0969d8501c73eb5f3b4
treeee1795dbec2aed79b7292f55a8b8dd9d2ddbb317
parent0da0883453e7855a65fea7db85aebe69eb4d69b0
pg: fix pcap packet type when writing pcap file

- fixes incorrect pcap packet type for packet
  generator interfaces configured in ip mode.
- corrects pcap file decode for pg output files
- fixes scapy versions > 2.4.3 which now appear to
  use the packet type in the pcap file header which
  had been ignored in earlier versions

Type: fix

Change-Id: Idb1e3f8fbc7ca938fb5d2aaa72365e333c0ea2e9
Signed-off-by: Dave Wallace <[email protected]>
src/vnet/pg/output.c
src/vnet/pg/pg.h