#!/usr/bin/env awk
#
# Returns true if the protocol number is equal to 46 (RSVP)
#
# Parameters:
#   - [p] : the protocol to test [default: $L4Proto]
#
# Dependencies:
#   - basicFlow
#
# See Also:
#   - proto
#
# Examples:
#   - tawk 'rsvp()' file.txt
#   - tawk 'rsvp() { print $SrcIP4 }' file.txt
#   - tawk 'rsvp($L4Proto)' file.txt
#   - tawk 'rsvp($L4Proto) { print $SrcIP4 }' file.txt

@include "proto"

function rsvp(p) {
    if (p) return p == 46
    else return proto(46)
}
