Hi,
I am trying to to send an ICMP Request from POX and I am sing the packet
classes in POX to form the packet.
It looks something like this.
# echo
r = pkt.echo(id=3036, seq=41)
r.payload=""
# Make the ping reply
icmp = pkt.icmp()
icmp.type = 8
icmp.code = 0
icmp.payload = r
# Make the IP packet around it
ipp = pkt.ipv4()
ipp.protocol = ipp.ICMP_PROTOCOL
ipp.srcip = IPAddr(ipsource)
ipp.dstip = IPAddr(ipdestination)
# Ethernet around that...
e = pkt.ethernet()
e.src = EthAddr(macsource)
e.dst = EthAddr(macdestination)
e.type = e.IP_TYPE
# Hook them up...
ipp.payload = icmp
e.payload = ipp
# Send it back to the input port
msg = of.ofp_packet_out()
msg.actions.append(of.ofp_action_output(port = 2))
msg.data = e.pack()
msg.in_port = of.OFPP_NONE
I can see the request being sent, but I can't see any reply. Any
recommendations ?
Thanks in advance,
Adel.