From 831b33fdb75074f7fbc19c6a7b966e1633ad5200 Mon Sep 17 00:00:00 2001 From: Hitoshi Irino Date: Sun, 16 Dec 2018 08:54:34 +0900 Subject: fix typo in zapi.go: LABLE -> LABEL --- internal/pkg/zebra/zapi.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/internal/pkg/zebra/zapi.go b/internal/pkg/zebra/zapi.go index 8189ceed..b0f8cc3a 100644 --- a/internal/pkg/zebra/zapi.go +++ b/internal/pkg/zebra/zapi.go @@ -104,7 +104,7 @@ const ( const VRF_DEFAULT = 0 const MAXPATH_NUM = 64 -const MPLS_MAX_LABLE = 16 +const MPLS_MAX_LABEL = 16 func HeaderSize(version uint8) uint16 { switch version { @@ -825,7 +825,7 @@ func (t MESSAGE_FLAG) String(version uint8) string { ss = append(ss, "SRCPFX") } if version >= 5 && t&FRR_ZAPI5_MESSAGE_LABEL > 0 { - ss = append(ss, "LABLE") + ss = append(ss, "LABEL") } return strings.Join(ss, "|") @@ -2205,8 +2205,8 @@ func decodeNexthopsFromBytes(nexthops *[]Nexthop, data []byte, family uint8, ver if version >= 5 { nexthop.LabelNum = data[offset] offset += 1 - if nexthop.LabelNum > MPLS_MAX_LABLE { - nexthop.LabelNum = MPLS_MAX_LABLE + if nexthop.LabelNum > MPLS_MAX_LABEL { + nexthop.LabelNum = MPLS_MAX_LABEL } var n uint8 for ; n < nexthop.LabelNum; n++ { -- cgit v1.2.3