tres/lib/openflow/actions/dec_nw_ttl.ex
2019-05-05 23:39:45 +09:00

22 lines
316 B
Elixir

defmodule Openflow.Action.DecNwTtl do
@moduledoc """
"""
defstruct([])
alias __MODULE__
def ofpat, do: 24
def new do
%DecNwTtl{}
end
def to_binary(%DecNwTtl{}) do
<<24::16, 8::16, 0::size(4)-unit(8)>>
end
def read(<<24::16, 8::16, _::size(4)-unit(8)>>) do
%DecNwTtl{}
end
end