summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorHitoshi Irino <irino@sfc.wide.ad.jp>2018-12-16 08:54:34 +0900
committerHitoshi Irino <irino@sfc.wide.ad.jp>2018-12-16 08:54:34 +0900
commit831b33fdb75074f7fbc19c6a7b966e1633ad5200 (patch)
treeb65141127256ab6529ec8f4ee8afeaab7fdd9cb1
parent7ebcb44a51ff220a80ad0615cc181ae32561927f (diff)
fix typo in zapi.go: LABLE -> LABEL
-rw-r--r--internal/pkg/zebra/zapi.go8
1 files 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++ {