You are on page 1of 1

-----------------------------prvi i drugi---------------------

udp1 :: FastUDPSource(100000, 500000, 60, 0:0:0:0:0:1, 1.0.0.1, 1234, 1:1:1:1:1:1,


2.0.0.2, 1234);
insw :: InputSwitch;
udp1 -> pt1 :: PullTee(2);
pt1[0] -> Counter -> ToDump(zadatak1b.pcap);
pt1[1] -> Counter -> insw;
insw -> CheckUDPHeader -> CheckLength(100) -> ToDump(zadatak1a.pcap)

----------------------------treci i cetvrti-----------------------
mojElement :: {
input -> CheckIPHeader -> CheckTCPHeader -> output;
};

FromDump(SkypeIRC.cap, STOP true)


-> r :: RadixIPLookup(212.204.0.0/16 0, 192.168.1.0/24 1, 0/0 2);
r[0] -> mojElement -> ToIPSummaryDump(zadatak3a.txt);
r[1] -> ToDump(zadatak3b.pcap, ENCAP IP);
r[2] -> Discard;

You might also like