diff options
| author | Donald Sharp <sharpd@nvidia.com> | 2021-06-04 12:18:45 -0400 | 
|---|---|---|
| committer | Donald Sharp <sharpd@nvidia.com> | 2021-07-08 11:12:47 -0400 | 
| commit | 8ccbc778cffa1ecac10d261ca0f034ffa999136c (patch) | |
| tree | a9de891d6c3a2ad734c68af1560b9cc5a5c39f5f /zebra/rule_netlink.c | |
| parent | 8096bd72aa8b775d8ce8d7d085b79d8a56bbd686 (diff) | |
zebra: Add ability for dataplane code to understand rule ip protocols
The zebra dplane needs to be taught about the rule ip_proto that can
be installed.
Signed-off-by: Donald Sharp <sharpd@nvidia.com>
Diffstat (limited to 'zebra/rule_netlink.c')
| -rw-r--r-- | zebra/rule_netlink.c | 6 | 
1 files changed, 4 insertions, 2 deletions
diff --git a/zebra/rule_netlink.c b/zebra/rule_netlink.c index 5cc127de94..b651edd8f9 100644 --- a/zebra/rule_netlink.c +++ b/zebra/rule_netlink.c @@ -171,7 +171,8 @@ static ssize_t netlink_rule_msg_encoder(struct zebra_dplane_ctx *ctx, void *buf,  		dplane_ctx_rule_get_table(ctx), dplane_ctx_rule_get_src_ip(ctx),  		dplane_ctx_rule_get_dst_ip(ctx),  		dplane_ctx_rule_get_fwmark(ctx), -		dplane_ctx_rule_get_dsfield(ctx), 0, buf, buflen); +		dplane_ctx_rule_get_dsfield(ctx), +		dplane_ctx_rule_get_ipproto(ctx), buf, buflen);  }  static ssize_t netlink_oldrule_msg_encoder(struct zebra_dplane_ctx *ctx, @@ -184,7 +185,8 @@ static ssize_t netlink_oldrule_msg_encoder(struct zebra_dplane_ctx *ctx,  		dplane_ctx_rule_get_old_src_ip(ctx),  		dplane_ctx_rule_get_old_dst_ip(ctx),  		dplane_ctx_rule_get_old_fwmark(ctx), -		dplane_ctx_rule_get_old_dsfield(ctx), 0, buf, buflen); +		dplane_ctx_rule_get_old_dsfield(ctx), +		dplane_ctx_rule_get_old_ipproto(ctx), buf, buflen);  }  /* Public functions */  | 
