Add support NXT_RESUME (#9)
This commit is contained in:
parent
4bd8ba994f
commit
a3ec836e42
15 changed files with 730 additions and 71 deletions
|
|
@ -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)}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue