diff options
| author | Sharath Ramamurthy <sramamurthy@nvidia.com> | 2021-07-27 13:14:15 +0530 | 
|---|---|---|
| committer | Stephen Worley <sworley@nvidia.com> | 2023-02-13 18:12:04 -0500 | 
| commit | 8d30ff3b5ef815ad5cab092f2ce6dc28ab5e3421 (patch) | |
| tree | dba0c94cddbbb5cf0303e16e5a8fa208ba20feea /zebra/if_netlink.c | |
| parent | 7809df20643ab9f731930dcef9661a70ef261e5b (diff) | |
zebra: data structure changes for single vxlan device
This changeset introduces the data structure changes needed for
single vxlan device functionality. A new struct zebra_vxlan_vni_info
encodes the iftype and vni information for vxlan device.
The change addresses related access changes of the new data structure
fields from different files
zebra_vty is modified to take care of the vni dump information according
to the new vni data structure for vxlan devices.
Signed-off-by: Sharath Ramamurthy <sramamurthy@nvidia.com>
Diffstat (limited to 'zebra/if_netlink.c')
| -rw-r--r-- | zebra/if_netlink.c | 4 | 
1 files changed, 2 insertions, 2 deletions
diff --git a/zebra/if_netlink.c b/zebra/if_netlink.c index 835659332b..6df8a4067c 100644 --- a/zebra/if_netlink.c +++ b/zebra/if_netlink.c @@ -627,7 +627,7 @@ static int netlink_extract_vxlan_info(struct rtattr *link_data,  	}  	vni_in_msg = *(vni_t *)RTA_DATA(attr[IFLA_VXLAN_ID]); -	vxl_info->vni = vni_in_msg; +	vxl_info->vni_info.vni.vni = vni_in_msg;  	if (!attr[IFLA_VXLAN_LOCAL]) {  		if (IS_ZEBRA_DEBUG_KERNEL)  			zlog_debug( @@ -639,7 +639,7 @@ static int netlink_extract_vxlan_info(struct rtattr *link_data,  	}  	if (attr[IFLA_VXLAN_GROUP]) { -		vxl_info->mcast_grp = +		vxl_info->vni_info.vni.mcast_grp =  			*(struct in_addr *)RTA_DATA(attr[IFLA_VXLAN_GROUP]);  	}  | 
