OSDN Git Service

tcp: metrics: Allow selective get/del of tcp-metrics based on src IP
authorChristoph Paasch <christoph.paasch@uclouvain.be>
Wed, 8 Jan 2014 15:05:59 +0000 (16:05 +0100)
committerDavid S. Miller <davem@davemloft.net>
Fri, 10 Jan 2014 22:38:18 +0000 (17:38 -0500)
commit3e7013ddf55af7bc191792b8aea0c2b94fb0fef5
tree073ff3aa496669057f42e54112f0ecceaf760202
parentbbf852b96ebdc6d1be7a67143824523280bbcf44
tcp: metrics: Allow selective get/del of tcp-metrics based on src IP

We want to be able to get/del tcp-metrics based on the src IP. This
patch adds the necessary parsing of the netlink attribute and if the
source address is set, it will match on this one too.

Signed-off-by: Christoph Paasch <christoph.paasch@uclouvain.be>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/tcp_metrics.c