proc

Description

Defines a procedure that can be executed in an event by using the call command

Syntax

proc <name> [arguments] <script>

Examples

proc logme msg {
    log local0. $msg
}

when CLIENT_ACCEPTED {
    call logme "Coming to CLIENT_ACCEPTED"
}

when CLIENT_DATA {
    call logme "Coming to CLIENT_DATA"
}