packet lib: don't crash with truncated dhcp packet

Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
rest_router: fix security problem

Signed-off-by: Takeshi <a86487817@gmail.com>
Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
bgp: supporting best_path_change_handler for Vpnv4/6 prefix in BGPSpeaker

BGPSpeaker is aware of "best_path_change_handler" in MPLS-VPN topology.
This feature is available in calculating Best Path Selection of VPNv4/6 prefixes.

Signed-off-by: Toshiki Tsuboi <t.tsubo2000@gmail.com>
Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
simple_switch_13: Added a logging when running in --verbose for truncated packets

Added a logging when running in --verbose as truncated packets in packet_in
have caused some confusion and this would hopefully help others

Signed-off-by: Benjamin Eggerstedt <benjamin.eggerstedt@gmail.com>
Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
simple_switch_13.py: Added ability to use buffer_id in FlowMod

This avoids to send two packets (FlowMod & PacketOut).

OF v1.3.1 (the specification most switch vendors implemented) mentions
in A.3.4.1 on page 65 that this is a valid way to avoid two packets.

Signed-off-by: Benny Eggerstedt <benjamin.eggerstedt@gmail.com>
Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
simple_switch: handle non-buffering switch

Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
simple_switch_12: handle non-buffering switch

Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
Ryu 3.15

Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
ofctl_v1_2/3: support setting the oxm_value to OFPVID_NONE and OFPVID_PRESENT

ofctl_v1_2/3 is now enabled to setting the oxm_value
to OFPVID_NONE(0x0000) and OFPVID_PRESENT(0x1000/0x1000) as follows:

  curl -X POST -d '{"dpid": 3,
                    "actions":[{"port":2, "type":"OUTPUT"}],
                    "match":{"dl_vlan":"OFPVID_NONE"}}' http://localhost:8080/stats/flowentry/add

  curl -X POST -d '{"dpid": 3,
                    "actions":[{"port":2, "type":"OUTPUT"}],
                    "match":{"dl_vlan":"OFPVID_PRESENT"}}' http://localhost:8080/stats/flowentry/add

Signed-off-by: Minoru TAKAHASHI <takahashi.minoru7@gmail.com>
[pre]Add test for setting the oxm_value to OFPVID_NONE and OFPVID_PRESENT

Signed-off-by: Minoru TAKAHASHI <takahashi.minoru7@gmail.com>
hoge

Signed-off-by: Minoru TAKAHASHI <takahashi.minoru7@gmail.com>