diff options
-rw-r--r-- | zebra/zapi.go | 7 | ||||
-rw-r--r-- | zebra/zapi_test.go | 2 |
2 files changed, 5 insertions, 4 deletions
diff --git a/zebra/zapi.go b/zebra/zapi.go index 42243b21..fb5450b7 100644 --- a/zebra/zapi.go +++ b/zebra/zapi.go @@ -31,12 +31,13 @@ const ( INTERFACE_NAMSIZ = 20 ) +// Internal Interface Status. type INTERFACE_STATUS uint8 const ( - INTERFACE_ACTIVE = 0x01 - INTERFACE_SUB = 0x02 - INTERFACE_LINKDETECTION = 0x04 + INTERFACE_ACTIVE INTERFACE_STATUS = 0x01 + INTERFACE_SUB INTERFACE_STATUS = 0x02 + INTERFACE_LINKDETECTION INTERFACE_STATUS = 0x04 ) type LINK_TYPE uint32 diff --git a/zebra/zapi_test.go b/zebra/zapi_test.go index 59d15ac3..7763043f 100644 --- a/zebra/zapi_test.go +++ b/zebra/zapi_test.go @@ -63,7 +63,7 @@ func Test_InterfaceUpdateBody(t *testing.T) { pos := INTERFACE_NAMSIZ binary.BigEndian.PutUint32(buf[pos:], 1) pos += 4 - buf[pos] = INTERFACE_ACTIVE + buf[pos] = byte(INTERFACE_ACTIVE) pos += 1 binary.BigEndian.PutUint64(buf[pos:], 1) pos += 8 // flags |