P4G_TCP_STATE_CURRENT

# get
<module-index>/<port-index> P4G_TCP_STATE_CURRENT [<group_index>] ?

Description

Returns a list of the current TCP state counters. The counters returned corresponds the the following TCP states:
  • CLOSED

  • LISTEN

  • SYN_SENT

  • TCP_SYN_RCVD

  • ESTABLISHED

  • FIN_WAIT_1

  • FIN_WAIT_2

  • CLOSE_WAIT

  • CLOSING

  • LAST_ACK

  • TIME_WAIT

Actions

get

Parameters

current_time: long integer, a list of the current TCP state counters

ref_time: long integer, a list of the current TCP state counters

closed: long integer, a list of the current TCP state counters

listen: long integer, a list of the current TCP state counters

syn_sent: long integer, a list of the current TCP state counters

syn_rcvd: long integer, a list of the current TCP state counters

established: long integer, a list of the current TCP state counters

fin_wait_1: long integer, a list of the current TCP state counters

fin_wait_2: long integer, a list of the current TCP state counters

close_wait: long integer, a list of the current TCP state counters

closing: long integer, a list of the current TCP state counters

last_ack: long integer, a list of the current TCP state counters

time_wait: long integer, a list of the current TCP state counters

Example

# get
input:  0/1 P4G_TCP_STATE_CURRENT [0] ?
output: 0/1 P4G_TCP_STATE_CURRENT [0] 123456789123 123456789123 123456789123 123456789123 123456789123 123456789123 123456789123 123456789123 123456789123 123456789123 123456789123 123456789123 123456789123