mirror of
https://github.com/faucetsdn/ryu.git
synced 2026-05-08 13:56:09 +02:00
packet lib: mpls default args
Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
This commit is contained in:
parent
bd8d3a2fa0
commit
f79bcbc3f7
@ -44,7 +44,7 @@ class mpls(packet_base.PacketBase):
|
||||
_PACK_STR = '!I'
|
||||
_MIN_LEN = struct.calcsize(_PACK_STR)
|
||||
|
||||
def __init__(self, label, exp, bsb, ttl):
|
||||
def __init__(self, label=0, exp=0, bsb=1, ttl=255):
|
||||
super(mpls, self).__init__()
|
||||
self.label = label
|
||||
self.exp = exp
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user