Hello! I'm a beginner. Now I have encountered some problems. To put it simply, why did sta2 also receive the data packets that were originally intended to be forwarded to other places?
My network topology is as follows:
Start the receiving data packet code of sta2, the code is as follows:
from scapy.all import sniff, ICMP,IP,Raw
def packet_callback(packet):
if ICMP in packet:
icmp_packet = packet[ICMP]
print("Received ICMP packet from h1.")
if Raw in packet:
raw_payload = packet[Raw].load.decode("utf-8")
print(f"Payload: {raw_payload}")
sniff(iface="sta2-wlan0", prn=packet_callback, store=0)
Then let sta1 send a data packet, the code is as follows:
Why did sta2 still receive this data packet? As shown below
According to the flow table rules, shouldn't this packet be forwarded through port 10?
I want to know which part of my code has the problem, or whether there is something in the forwarding mechanism of mininet-wifi that I have overlooked.
Hello! I'm a beginner. Now I have encountered some problems. To put it simply, why did sta2 also receive the data packets that were originally intended to be forwarded to other places? My network topology is as follows:
The network connection is as follows:
Now add the flow table as follows
Start the receiving data packet code of sta2, the code is as follows:
Then let sta1 send a data packet, the code is as follows:
Why did sta2 still receive this data packet? As shown below
According to the flow table rules, shouldn't this packet be forwarded through port 10? I want to know which part of my code has the problem, or whether there is something in the forwarding mechanism of mininet-wifi that I have overlooked.