#!/usr/bin/env awk
#
# nfdump extended output format
#
# Dependencies:
#   - basicFlow
#   - basicStats
#   - tcpFlags
#
# Example:
#   - tawk '{ print oextended() }' file

@include "bpp"
@include "bps"
@include "byt"
@include "dap"
@include "flg"
@include "pkt"
@include "pps"
@include "pr"
@include "sap"
@include "td"
@include "ts"

function oextended() {
    return ts() "\t" td() "\t" pr() "\t" sap() "\t->\t" dap() "\t" flg() "\t" \
           pkt() "\t" byt() "\t" pps() "\t" bps() "\t" bpp()
           #tos() "\t" pkt() "\t" byt() "\t" pps() "\t" bps() "\t" bpp() #"\t" fl()
}
