aboutsummaryrefslogtreecommitdiffstats
path: root/yardstick/vTC/apexlake/experimental_framework/packet_generators/pcap_files/vlan_tag.sh
blob: cd9740ad2a2a81fe971cb6fef0bb1b345c7ec330 (plain)
1
2
3
4
5
6
#!/bin/bash

INPUT_FILE=$1
VLAN_TAG=$2

tcprewrite --enet-vlan=add --enet-vlan-tag=$VLAN_TAG --enet-vlan-cfi=0 --enet-vlan-pri=0 --infile=$INPUT_FILE --outfile=$INPUT_FILE