diff options
| author | Mark Stapp <mjs@voltanet.io> | 2019-01-16 13:40:31 -0500 |
|---|---|---|
| committer | Mark Stapp <mjs@voltanet.io> | 2019-04-22 13:49:27 -0400 |
| commit | 6416880328557628f11dbc7a4ba96087a50fc0f4 (patch) | |
| tree | b234222a11a1a2307594dd4eca63966c17445e6b /zebra/ioctl.c | |
| parent | a4a4802a9bdf3fb4160e8c4900b9a4e9a3bba2f3 (diff) | |
zebra: Use dplane for interface addresses (netlink)
Start using the dataplane for interface-address programming,
on netlink platforms. Other platforms just stubbed at this
point.
Signed-off-by: Mark Stapp <mjs@voltanet.io>
Diffstat (limited to 'zebra/ioctl.c')
| -rw-r--r-- | zebra/ioctl.c | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/zebra/ioctl.c b/zebra/ioctl.c index 9499c731ef..45fad623e9 100644 --- a/zebra/ioctl.c +++ b/zebra/ioctl.c @@ -180,6 +180,20 @@ void if_get_mtu(struct interface *ifp) #endif } +/* + * TODO -- stub handler for interface address programming via the zebra dplane, + * for non-netlink platforms. + */ +#ifndef HAVE_NETLINK + +enum zebra_dplane_result kernel_address_update_ctx( + struct zebra_dplane_ctx *ctx) +{ + return -1; +} + +#endif /* !HAVE_NETLINK */ + #ifdef HAVE_NETLINK /* Interface address setting via netlink interface. */ int if_set_prefix(struct interface *ifp, struct connected *ifc) |
