Hello everybody

I am using Mininet 2.0 and POX controller. I am writing a script and I need
to get data from Protocol field i.e. which protocol number is being used so
that on the basis of that protocol number I can take some decision.
I tried of.ofp_match() class but didn't get what I want. It may be possible
that I am using it wrong way. I used this class as

    myproto=of.ofp_match()
    log.debug("%s",myproto.nw_proto==1)

Protocol number 1 shows ICMP protocol and as PING is ICMP message so, when
I ping host h2 from h1 I get False which means that protocol number didn't
match.
Can anybody tell me how to get IP protocol field data?
Any suggestion regarding this will be appreciable

Thanks in advance :)

Reply via email to