Add support NXT_RESUME

This commit is contained in:
Eishun Kondoh 2018-08-21 13:41:08 +09:00
parent 2c4d247a2f
commit f8ecab26ee
15 changed files with 730 additions and 71 deletions

View file

@ -24,8 +24,8 @@ defmodule Openflow.Hello do
def supported_version?(%Hello{elements: elements}) do
elements
|> Enum.reduce([], fn({:versionbitmap, versions}, acc) -> acc ++ versions end)
|> Enum.any?(fn(version) -> version == 4 end)
|> Enum.reduce([], fn {:versionbitmap, versions}, acc -> acc ++ versions end)
|> Enum.any?(fn version -> version == 4 end)
end
def read(binary), do: %Hello{elements: decode([], binary)}