Pyswitch is a good place to start.
All of the packet processing code is in nox/lib/packet/.
In general you can iterate over the packet headers using .next. So
packet.next should be the IP header. packet.next.next the tcp header
and so on. Note that if VLANs are in play, they'll come in as an
additional header.
Alternatively, if you know what type of packet you have, you can also
use the protocol name (rather than next)
my_iphdr = packet.ip
.martin
Hi,
I am trying to configure nox to do some IP address based filtering on
a ethernet network. I want to add a flow entry that allows
communication between 2 IP addresses, say between 10.0.0.1 and
10.0.0.2 and disallows communication between 10.0.0.3 and the others.
I want to force a flow entry to achieve this.
Since. nox's api documentation isn't well written so far, I don't
where to start. Is pyswtich.py a good place to start? How can I access
L3 and L4 information from 'packet' in pyswitch to define a flow entry?
Regards,
Immad
------------------------------------------------------------------------
_______________________________________________
nox-dev mailing list
[email protected]
http://noxrepo.org/mailman/listinfo/nox-dev_noxrepo.org
_______________________________________________
nox-dev mailing list
[email protected]
http://noxrepo.org/mailman/listinfo/nox-dev_noxrepo.org