mirror of
https://github.com/faucetsdn/ryu.git
synced 2026-01-24 01:52:23 +01:00
Add OF1.4 CopyTtlIn action support
Signed-off-by: Simon Horman <horms@verge.net.au> Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
This commit is contained in:
parent
384adb3919
commit
3de81a208f
@ -2343,6 +2343,25 @@ class OFPActionCopyTtlOut(OFPAction):
|
||||
return cls()
|
||||
|
||||
|
||||
@OFPAction.register_action_type(ofproto.OFPAT_COPY_TTL_IN,
|
||||
ofproto.OFP_ACTION_HEADER_SIZE)
|
||||
class OFPActionCopyTtlIn(OFPAction):
|
||||
"""
|
||||
Copy TTL In action
|
||||
|
||||
This action copies the TTL from the outermost header with TTL to the
|
||||
next-to-outermost header with TTL.
|
||||
"""
|
||||
def __init__(self, type_=None, len_=None):
|
||||
super(OFPActionCopyTtlIn, self).__init__()
|
||||
|
||||
@classmethod
|
||||
def parser(cls, buf, offset):
|
||||
(type_, len_) = struct.unpack_from(
|
||||
ofproto.OFP_ACTION_HEADER_PACK_STR, buf, offset)
|
||||
return cls()
|
||||
|
||||
|
||||
@OFPAction.register_action_type(ofproto.OFPAT_SET_FIELD,
|
||||
ofproto.OFP_ACTION_SET_FIELD_SIZE)
|
||||
class OFPActionSetField(OFPAction):
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user