},
"synack": {
"type": "integer"
+ },
+ "urg": {
+ "description": "Number of TCP packets with the urgent flag set",
+ "type": "integer"
}
},
"additionalProperties": false
if (p->tcph->th_flags & (TH_RST)) {
StatsIncr(tv, dtv->counter_tcp_rst);
}
+ if (p->tcph->th_flags & (TH_URG)) {
+ StatsIncr(tv, dtv->counter_tcp_urg);
+ }
#ifdef DEBUG
SCLogDebug("TCP sp: %" PRIu32 " -> dp: %" PRIu32 " - HLEN: %" PRIu32 " LEN: %" PRIu32 " %s%s%s%s%s%s",
GET_TCP_SRC_PORT(p), GET_TCP_DST_PORT(p), TCP_GET_HLEN(p), len,
dtv->counter_tcp_syn = StatsRegisterCounter("tcp.syn", tv);
dtv->counter_tcp_synack = StatsRegisterCounter("tcp.synack", tv);
dtv->counter_tcp_rst = StatsRegisterCounter("tcp.rst", tv);
+ dtv->counter_tcp_urg = StatsRegisterCounter("tcp.urg", tv);
dtv->counter_udp = StatsRegisterCounter("decoder.udp", tv);
dtv->counter_sctp = StatsRegisterCounter("decoder.sctp", tv);
uint16_t counter_tcp_syn;
uint16_t counter_tcp_synack;
uint16_t counter_tcp_rst;
+ uint16_t counter_tcp_urg;
uint16_t counter_udp;
uint16_t counter_icmpv4;
uint16_t counter_icmpv6;