diff options
Diffstat (limited to 'zebra/zebra_dplane.c')
| -rw-r--r-- | zebra/zebra_dplane.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/zebra/zebra_dplane.c b/zebra/zebra_dplane.c index 05297e143b..4d32e54d1f 100644 --- a/zebra/zebra_dplane.c +++ b/zebra/zebra_dplane.c @@ -1469,7 +1469,11 @@ int dplane_ctx_get_ns_sock(const struct zebra_dplane_ctx *ctx) { DPLANE_CTX_VALID(ctx); +#ifdef HAVE_NETLINK return ctx->zd_ns_info.sock; +#else + return -1; +#endif } /* Accessors for nexthop information */ |
