+ if ether.dst == rx_dst_mac:
+ print("Ethernet destination address matched.")
+ else:
+ raise RuntimeError(
+ "Matching ethernet destination address unsuccessful: {0} != {1}".
+ format(ether.dst, rx_dst_mac))
+
+ if ether.src == rx_src_mac:
+ print("Ethernet source address matched.")
+ else:
+ raise RuntimeError(
+ "Matching ethernet source address unsuccessful: {0} != {1}"
+ .format(ether.src, rx_src_mac))
+