]> git.baikalelectronics.ru Git - kernel.git/commit
tcp: Add SNMP counters for backlog and min_ttl drops
authorEric Dumazet <eric.dumazet@gmail.com>
Sun, 7 Mar 2010 23:21:57 +0000 (23:21 +0000)
committerDavid S. Miller <davem@davemloft.net>
Mon, 8 Mar 2010 18:45:27 +0000 (10:45 -0800)
commit6ce2aecc52f7d3593f58862d7d31562629333e55
treea1d7638f9571a29db9bc5c5d8e0baee19597d59e
parent60bb3a1f308cb70618075a0f7146fb56bfa5703c
tcp: Add SNMP counters for backlog and min_ttl drops

Commit 5571da62 (tcp: use limited socket backlog) added the possibility
of dropping frames when backlog queue is full.

Commit 36dc5778 (tcp: Generalized TTL Security Mechanism) added the
possibility of dropping frames when TTL is under a given limit.

This patch adds new SNMP MIB entries, named TCPBacklogDrop and
TCPMinTTLDrop, published in /proc/net/netstat in TcpExt: line

netstat -s | egrep "TCPBacklogDrop|TCPMinTTLDrop"
    TCPBacklogDrop: 0
    TCPMinTTLDrop: 0

Signed-off-by: Eric Dumazet <eric.dumazet@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/linux/snmp.h
net/ipv4/proc.c
net/ipv4/tcp_ipv4.c
net/ipv6/tcp_ipv6.c