diff --git a/examples/TLV_parsing/send_one.py b/examples/TLV_parsing/send_one.py index 56d7d7f..c4534c4 100644 --- a/examples/TLV_parsing/send_one.py +++ b/examples/TLV_parsing/send_one.py @@ -3,4 +3,4 @@ from scapy.all import * p = Ether() / IP(options=IPOption('\x44\x0c\x05\x00\x01\x02\x03\x04\x05\x06\x07\x08') / IPOption('\x82\x0b\xa1\xa2\xa3\xa4\xa5\xa6\xa7\xa8\xa9')) / IPOption('\x00') / TCP() / "aaaaaaaaaaa" # p.show() hexdump(p) -sendp(p, iface = "veth0") +sendp(p, iface = "veth1") diff --git a/examples/copy_to_cpu/README.md b/examples/copy_to_cpu/README.md index 862a542..a45ca85 100644 --- a/examples/copy_to_cpu/README.md +++ b/examples/copy_to_cpu/README.md @@ -24,9 +24,9 @@ We provide a small demo to let you test the program. It consists of the following scripts: - [run_switch.sh] (run_switch.sh): compile the P4 program and starts the switch, also configures the data plane by running the CLI [commands] (commands.txt) -- [receive.py] (receive.py): sniff packets on port 3 (veth6) and print a hexdump +- [receive.py] (receive.py): sniff packets on port 3 (veth7) and print a hexdump of them -- [send_one.py] (send_one.py): send one simple IPv4 packet on port 0 (veth0) +- [send_one.py] (send_one.py): send one simple IPv4 packet on port 0 (veth1) If you take a look at [commands.txt] (commands.txt), you'll notice the following command: `mirroring_add 250 3`. This means that all the cloned packets with diff --git a/examples/copy_to_cpu/receive.py b/examples/copy_to_cpu/receive.py index 908eb32..19d37f5 100644 --- a/examples/copy_to_cpu/receive.py +++ b/examples/copy_to_cpu/receive.py @@ -1,3 +1,3 @@ from scapy.all import * -sniff(iface = "veth6", prn = lambda x: hexdump(x)) +sniff(iface = "veth7", prn = lambda x: hexdump(x)) diff --git a/examples/copy_to_cpu/send_one.py b/examples/copy_to_cpu/send_one.py index 03b9af6..c261ea1 100644 --- a/examples/copy_to_cpu/send_one.py +++ b/examples/copy_to_cpu/send_one.py @@ -3,4 +3,4 @@ from scapy.all import * p = Ether(dst="aa:bb:cc:dd:ee:ff") / IP(dst="10.0.1.10") / TCP() / "aaaaaaaaaaaaaaaaaaa" # p.show() hexdump(p) -sendp(p, iface = "veth0") +sendp(p, iface = "veth1") diff --git a/examples/meter/send_and_receive.py b/examples/meter/send_and_receive.py index 4e157db..e4647ac 100644 --- a/examples/meter/send_and_receive.py +++ b/examples/meter/send_and_receive.py @@ -17,7 +17,7 @@ class Receiver(threading.Thread): big_lock.release() def run(self): - sniff(iface="veth2", prn=lambda x: self.received(x)) + sniff(iface="veth3", prn=lambda x: self.received(x)) def main(): @@ -34,7 +34,7 @@ def main(): while True: big_lock.acquire() - sendp(p, iface="veth0", verbose=0) + sendp(p, iface="veth1", verbose=0) print "Sent one" big_lock.release() time.sleep(packet_int)