summaryrefslogtreecommitdiffhomepage
path: root/ryu/lib
AgeCommit message (Collapse)Author
2012-08-28packet lib: add data serialize support to Packet classFUJITA Tomonori
This enables you to send data with Packet class. Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
2012-08-28packet lib: calculate the udp lengthFUJITA Tomonori
If the length is not given, calculate it. Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
2012-08-28packet lib: calculate the ip total lengthFUJITA Tomonori
If the total length is not given, calculate it. Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
2012-08-28packet lib: serialize in reverse orderFUJITA Tomonori
- we need to serialize in reverse order since some need to know payload. - TCP and UDP need the previous protocol info (IP) to calculate the checksum. Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
2012-08-22fix pep8 1.3.3 warningsFUJITA Tomonori
Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
2012-08-21add packet libraryFUJITA Tomonori
As discussed on the mailing list, there is no good packet library (parses and builds various protocol packets). dpkt isn't flexible enough (can't nicely handle stacked protocols such as vlan, mpls, gre). NOX's one is nice but released under GPL3. So we need our own packet library. Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
2012-06-16ofproto/nx_match: simplify set_dl_{src, dst}_mask()Isaku Yamahata
Introduce helper function for mac address, and simplify set_dl_{src, dst}_mask() Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp> Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
2012-05-20lib/dpid: dpid formatter/parserIsaku Yamahata
Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp> Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
2012-05-07lib/mac: improve helper functionsIsaku Yamahata
- docstring - add sanity check as haddr_to_bin() is used to parse user-giving string Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp> Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
2012-04-06Switch to Apache 2.0 licenseFUJITA Tomonori
To make the further integration into IaaS OSS (OpenStack and CloudStack) easier, we switch to Apache 2.0 license. ryu/app/wsapi.py is still under GPL3 or later. We replace it later. Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
2012-03-13NXM: Add MFEthDst classSimon Horman
This is to handle ETH_DST NXM fields. This will used when sending NXT_FLOW_MOD messages. Signed-off-by: Simon Horman <horms@verge.net.au> Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
2012-03-01lib: mixin class to track all instances of a given classIsaku Yamahata
Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp> Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
2012-01-29lib/mac: add helper function/valuesIsaku Yamahata
Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp> Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
2011-12-09initial commitFUJITA Tomonori
Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>