summaryrefslogtreecommitdiffstats
path: root/adapter/vpp_api.go
diff options
context:
space:
mode:
Diffstat (limited to 'adapter/vpp_api.go')
-rw-r--r--adapter/vpp_api.go11
1 files changed, 9 insertions, 2 deletions
diff --git a/adapter/vpp_api.go b/adapter/vpp_api.go
index 7d14633..2391420 100644
--- a/adapter/vpp_api.go
+++ b/adapter/vpp_api.go
@@ -18,8 +18,15 @@ import (
"errors"
)
-// ErrNotImplemented is an error returned when missing implementation.
-var ErrNotImplemented = errors.New("not implemented for this OS")
+const (
+ // DefaultBinapiSocket defines a default socket file path for VPP binary API.
+ DefaultBinapiSocket = "/run/vpp-api.sock"
+)
+
+var (
+ // ErrNotImplemented is an error returned when missing implementation.
+ ErrNotImplemented = errors.New("not implemented for this OS")
+)
// MsgCallback defines func signature for message callback.
type MsgCallback func(msgID uint16, data []byte)