#!/bin/bash

the_csv_file="timing.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"
