in

Scapy to sniff openflow packet (try packet spoof on mininet)


I’m trying to sniff the OPENFLOW packets between OpenDaylight and mininet

Here is my settings

Virtual Machine 1 (10.0.2.15):
Running the opendaylight which is the openflow controller

Virtual Machine 2 (10.0.2.5):
Running mininet

Virtual Machine 3:
Running Scapy script

Now here is my scapy script

from scapy.all import *

def print_pkt(pkt):
    pkt.show()

pkt = sniff(filter="host 10.0.2.5", prn=print_pkt)

Then I see a lot of ICP/UDP packets

I tried

pkt = sniff(filter="icmp and host 10.0.2.5", prn=print_pkt)

and call h1 ping h2 in mininet

I want to sniff the icmp packets and set ttl to be 0

but i sniff nothing.

I’m beginner to Openflow and scapy, the question maybe weird.

Thanks for advance!



Source: https://stackoverflow.com/questions/70634469/scapy-to-sniff-openflow-packet-try-packet-spoof-on-mininet

An excellent tool for converting json files to structs or classes in any programming language

How to use the new Reminders app features in macOS Monterey thumbnail

How to use the new Reminders app features in macOS Monterey