#!/usr/bin/env awk
#
# MPLS labels 1-10
#
# Dependencies:
#   - basicStats
#
# Example:
#   - tawk '{ print mpls() }' file

@include "_mplsi"
@include "_validate_col"

function mpls(        _s) {
    _validate_col(MPLSLabel_ToS_S_TTL, "MPLSLabel_ToS_S_TTL")
    if ($MPLSLabel_ToS_S_TTL == "MPLSLabel_ToS_S_TTL") return "MPLS labels 1-10"
    _s = _mplsi(1)
    for (i = 2; i <= 10; i++) {
        _s = _s "\t" _mplsi(i)
    }
    return _s
}
