ospf: fix wrong OSPF LSA type

Signed-off-by: ISHIDA Wataru <ishida.wataru@lab.ntt.co.jp>
Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
This commit is contained in:
ISHIDA Wataru 2015-01-09 14:40:54 +09:00 committed by FUJITA Tomonori
parent 36d734f4e4
commit c1e01c54ca

View File

@ -352,7 +352,7 @@ class SummaryLSA(LSA):
_PACK_STR = '!4sBBH'
_PACK_LEN = struct.calcsize(_PACK_STR)
def __init__(self, ls_age=0, options=0, type_=OSPF_NETWORK_LSA,
def __init__(self, ls_age=0, options=0, type_=OSPF_SUMMARY_LSA,
id_='0.0.0.0', adv_router='0.0.0.0', ls_seqnum=0,
checksum=None, length=None, mask='0.0.0.0', tos=0, metric=0):
self.mask = mask