diff options
| author | Carmine Scarpitta <cscarpit@cisco.com> | 2024-02-13 11:40:49 +0100 |
|---|---|---|
| committer | Carmine Scarpitta <cscarpit@cisco.com> | 2024-02-18 18:31:13 +0100 |
| commit | b1f1cb9c23fd49f81bfda8876610c3d7dda6d88c (patch) | |
| tree | abb3d6be53bce3ba37e6439d5ca2a0752190bdc0 /zebra/zebra_rib.c | |
| parent | 4ec8ef5098c0d8f9fc1c098269afeb4a740adb24 (diff) | |
fpm: Add functions to encode nexthop in protobuf
Add two helper functions to encode/decode nexthops in protobuf.
Specifically,
* `fpm_nexthop_create`: encode a `struct nexthop` in a protobuf nexthop
structure
* `fpm_nexthop_get`: decode a nexthop protobuf structure into a `struct
nexthop`
This is a preliminary commit to support sending SRv6 Local SIDs and VPN
SIDs via protobuf.
Signed-off-by: Carmine Scarpitta <cscarpit@cisco.com>
Diffstat (limited to 'zebra/zebra_rib.c')
0 files changed, 0 insertions, 0 deletions
