diff options
| author | Donald Sharp <sharpd@nvidia.com> | 2023-12-06 08:24:01 -0500 | 
|---|---|---|
| committer | Mergify <37929162+mergify[bot]@users.noreply.github.com> | 2023-12-07 13:25:34 +0000 | 
| commit | e2b180cc902ee92a464c997f0ab6663ac3986266 (patch) | |
| tree | 19a58651ebd54abcb339752496886e5494682bcf /zebra/if_netlink.c | |
| parent | f9d62446c40f17f416f0675eb31a50a15f861da5 (diff) | |
zebra: Add ability to note that a address is NOPREFIXROUTE
The linux kernel can send up a flag that tells us that the
connected address is not a PREFIXROUTE.  Add the ability
to note this and pass it up from the data plane.
Signed-off-by: Donald Sharp <sharpd@nvidia.com>
(cherry picked from commit 466ad88ce12af8d613600717def6a17dc6283ee8)
Diffstat (limited to 'zebra/if_netlink.c')
| -rw-r--r-- | zebra/if_netlink.c | 3 | 
1 files changed, 3 insertions, 0 deletions
diff --git a/zebra/if_netlink.c b/zebra/if_netlink.c index ed2e0a224e..bd684453cd 100644 --- a/zebra/if_netlink.c +++ b/zebra/if_netlink.c @@ -1474,6 +1474,9 @@ int netlink_interface_addr_dplane(struct nlmsghdr *h, ns_id_t ns_id,  	if (kernel_flags & IFA_F_SECONDARY)  		dplane_ctx_intf_set_secondary(ctx); +	if (kernel_flags & IFA_F_NOPREFIXROUTE) +		dplane_ctx_intf_set_noprefixroute(ctx); +  	/* Label */  	if (tb[IFA_LABEL]) {  		label = (char *)RTA_DATA(tb[IFA_LABEL]);  | 
