Lines Matching full:stp
41 stp = packet.getlayer(sp.STP)
42 if stp is None:
45 if stp.rootmac != "00:0c:29:01:01:01":
48 # Ensure we don't get confused by valid STP packets generated by if_bridge
49 if (stp.maxage >= 6 and stp.maxage <= 40) and \
50 (stp.hellotime >= 1 and stp.hellotime <= 2) and \
51 (stp.fwddelay >= 4 and stp.fwddelay <= 30):
63 stp = llc / sp.STP(proto=0, rootid=32768, rootmac="00:0c:29:01:01:01", \
66 sp.sendp(stp, iface=send_if, verbose=False)
67 stp = llc / sp.STP(proto=0, rootid=32768, rootmac="00:0c:29:01:01:01", \
70 sp.sendp(stp, iface=send_if, verbose=False)
73 stp = llc / sp.STP(proto=0, rootid=32768, rootmac="00:0c:29:01:01:01", \
76 sp.sendp(stp, iface=send_if, verbose=False)
77 stp = llc / sp.STP(proto=0, rootid=32768, rootmac="00:0c:29:01:01:01", \
80 sp.sendp(stp, iface=send_if, verbose=False)
83 stp = llc / sp.STP(proto=0, rootid=32768, rootmac="00:0c:29:01:01:01", \
86 sp.sendp(stp, iface=send_if, verbose=False)
87 stp = llc / sp.STP(proto=0, rootid=32768, rootmac="00:0c:29:01:01:01", \
90 sp.sendp(stp, iface=send_if, verbose=False)
93 parser = argparse.ArgumentParser("stp.py",
94 description="STP test tool")
109 # The 'correct' packet is a corrupt STP packet, so it shouldn't turn up.