#!/usr/bin/env awk
#
# Returns true if the flow contains IPv6 traffic
#
# Dependencies:
#   - basicFlow
#
# Examples:
#   - tawk 'ipv6()' file.txt
#   - tawk 'ipv6() { print tuple2() }' file.txt

@include "hdr"
@include "_validate_col"

function ipv6(        _c) {
    _c = _validate_col("flowStat")
    if (hdr()) return __PRIHDR__
    return bitisset($_c, 0x8000)
}
