#!/bin/bash

# -e frame.number
# -e frame.time_relative
# -e dns.resp.ttl
# -e dns.qry.name
# -e dns.a
# -e ip.ttl \
# -e ip.id \
# -e ip.flags.df \

the_csv_file="timing_inside_out.csv"

echo "ts;qname;is_response;ipid;df" > "$the_csv_file"

echo "Parsing: $1"
tshark \
    -r "$1" \
    -T fields \
    -E separator=\; \
    -e frame.time_epoch \
    -e dns.qry.name \
    -e dns.flags.response \
    -e ip.id \
    -e ip.flags.df >> "$the_csv_file"





# -e frame.number -e frame.time_relative -e dns.resp.ttl -e ip.ttl -e ip.id -e ip.flags.df -e dns.qry.name -e dns.a | tee -a "$2"
# -e ip.ttl \
# -e ip.id \
# -e ip.flags.df \
