[nox-dev] inverted when IP to int

2011-08-10 Thread Masoud Moshref Javadi
when I write: v=convert_to_ipaddr("0.1.0.0") logger.debug("v is "+str(v)) the output is 256 and when I write v=convert_to_ipaddr("0.0.0.1") logger.debug("v is "+str(v)) it is 16777216. It seems that it reverse the IP position of 4 numbers in IP. Why is it like this?

Re: [nox-dev] Matching a part of a range with wildcard

2011-08-10 Thread Masoud Moshref Javadi
No I don't want to wildcard whole range of a field, but just a part of its range. On 8/10/2011 12:00 PM, James McCauley wrote: set_match should wildcard anything that is missing, so just don't specify them. -- Murphy On Aug 10, 2011 10:57 AM, "Masoud Moshref Javadi

Re: [nox-dev] Matching a part of a range with wildcard

2011-08-10 Thread Masoud Moshref Javadi
ort number, and give it a send-to-controller action. When a packet hits this rule, it'll get sent to the controller, and you can install a new rule with a higher priority that exactly matches the port number used by that flow. Hope that helps. -- Murphy On Aug 10, 2011, at 6:03 AM, Masoud

[nox-dev] Matching a part of a range with wildcard

2011-08-10 Thread Masoud Moshref Javadi
How can we set rules with wildcards that do not cover all of the range. For example, I want to set a rule that match destination port numbers from 1 to 1024 or any other arbitrary ranges. Should I replicate what set_match method does? ___ nox-dev mail

[nox-dev] Compare actions?

2011-08-09 Thread Masoud Moshref Javadi
Is there any way to compare two actions to see if they are the same type and have the same parameters? ___ nox-dev mailing list nox-dev@noxrepo.org http://noxrepo.org/mailman/listinfo/nox-dev