diff options
author | Pablo Neira Ayuso <pablo@netfilter.org> | 2012-01-22 21:21:02 +0100 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2012-01-22 21:24:22 +0100 |
commit | b5ca4272d185171971872a9a2ee677cd66c8386b (patch) | |
tree | 3cdc7f495391fb9b3d60a3871753be733cfd21f0 /src/main.c | |
parent | 4cd4e306286b4b255b7a5fb310a5250bb9d099e0 (diff) | |
download | conntrack-tools-b5ca4272d185171971872a9a2ee677cd66c8386b.tar.gz conntrack-tools-b5ca4272d185171971872a9a2ee677cd66c8386b.zip |
conntrack: add expectation support for `-o' option
Now you can dump expectations in XML format and display the timestamp.
conntrack -L exp -o xml,timestamp
<?xml version="1.0" encoding="utf-8"?>
<expect>
<flow><layer3 protonum="2" protoname="ipv4"><expected><src>192.168.1.135</src><dst>130.89.148.12</dst></expected><mask><src>255.255.255.255</src><dst>255.255.255.255</dst></mask><master><src>192.168.1.135</src><dst>130.89.148.12</dst></master></layer3><layer4 protonum="6" protoname="tcp"><expected><sport>0</sport><dport>32877</dport></expected><mask><sport>0</sport><dport>65535</dport></mask><master><sport>49881</sport><dport>21</dport></master></layer4><meta><helper-name>ftp</helper-name><timeout>294</timeout><when><hour>21</hour><min>22</min><sec>09</sec><wday>1</wday><day>22</day><month>1</month><year>2012</year></when></meta></flow>
</expect>
You have to upgrade libnetfilter_conntrack to access this feature.
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'src/main.c')
0 files changed, 0 insertions, 0 deletions