87f7ab41f4cc712134633d9a54bcd38051d8c8ca
[obnox/wireshark/wip.git] / plugins / mate / examples / web.mate
1 # web.mate
2 # $Id $
3
4 Action=PduDef; Name=dns_pdu; Proto=dns; Transport=ip; addr=ip.addr; dns_resp=dns.flags.response; host=dns.qry.name; client_addr=ip.src; dns_id=dns.id; 
5 Action=PduDef; Name=http_pdu; Proto=http; Transport=tcp/ip; addr=ip.addr; port=tcp.port; http_rq=http.request.method; http_rs=http.response; host=http.host; client_addr=ip.src;
6
7 Action=GopDef; Name=dns_req; On=dns_pdu; addr; addr; dns_id;
8 Action=GopStart; For=dns_req; dns_resp=0;
9 Action=GopStop; For=dns_req; dns_resp=1;
10
11 Action=GopDef; Name=http_req; On=http_pdu; addr; addr; port; port;
12 Action=GopStart; For=http_req; http_rq;
13 Action=GopStop; For=http_req; http_rs;
14
15 Action=Transform; Name=rm_client_from_dns_resp; Mode=Replace; Match=Every; dns_resp=1; client_addr; .dns_resp=1;
16 Action=PduTransform; For=dns_pdu; Name=rm_client_from_dns_resp;
17
18 Action=Transform; Name=rm_client_from_http_resp; Mode=Replace; Match=Every; http_rs; client_addr; .http_rs=;
19 Action=PduTransform; For=http_pdu; Name=rm_client_from_http_resp;
20
21 Action=GopExtra; For=http_req; host; client_addr;
22 Action=GopExtra; For=dns_req; host; client_addr;
23
24 Action=GogDef; Name=http_use; GogExpiration=0.75;
25 Action=GogKey; For=http_use; On=http_req; host; client_addr;
26 Action=GogKey; For=http_use; On=dns_req; host;client_addr; 
27
28 Action=GogExtra; For=http_use; host; client_addr;