Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FDBSYNCD] Some Junk character are present in the mac and port name while config MAC in the kernel. #1549

Closed
wants to merge 22 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
22 commits
Select commit Hold shift + click to select a range
1730a6c
[FPMSYNCD] EVPN Type5 prefix handling in FPMSYNCD.
kishorekunal01 Jun 18, 2020
8de4b36
Update fpmsyncd.cpp
kishorekunal01 Sep 21, 2020
cf4ed79
Update fpmlink.cpp
kishorekunal01 Sep 21, 2020
8bc8d5d
Update fpmlink.cpp
kishorekunal01 Sep 21, 2020
2189e1a
Update fpmlink.cpp
kishorekunal01 Sep 21, 2020
46e7c96
Update routesync.cpp
kishorekunal01 Sep 21, 2020
d94dcdc
Update routesync.cpp
kishorekunal01 Sep 21, 2020
a51d079
Update routesync.cpp
kishorekunal01 Sep 24, 2020
23b06ab
Update fpmlink.cpp
kishorekunal01 Oct 5, 2020
9ac6f05
Update routesync.cpp
kishorekunal01 Oct 5, 2020
8d383bb
Update routesync.h
kishorekunal01 Oct 5, 2020
3c29e28
Update routesync.cpp
kishorekunal01 Oct 6, 2020
fb50f03
Fix all the review comment from Prince
kishorekunal01 Oct 8, 2020
9992702
Updated by directly calling the raw message process as per review
kishorekunal01 Oct 16, 2020
95a50d3
Fix space
kishorekunal01 Oct 16, 2020
1cacae7
Updated based on new review comments
kishorekunal01 Oct 16, 2020
b9cdeaa
Merge branch 'master' of https://github.com/Azure/sonic-swss
kishorekunal01 Oct 28, 2020
67187a4
VS test run might be failing due to this.
kishorekunal01 Oct 30, 2020
b7c6a32
Removing un-used code
kishorekunal01 Nov 3, 2020
3cd4c75
Merge remote-tracking branch 'upstream/master'
kishorekunal01 Nov 19, 2020
94b91e5
Merge remote-tracking branch 'upstream/master'
kishorekunal01 Dec 15, 2020
ba406a3
Some Junk character are present in the mac and port_name while config
kishorekunal01 Dec 16, 2020
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions fdbsyncd/fdbsync.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ void FdbSync::processStateFdb()
auto mac_address = key.substr(delimiter+1);

info.vid = vlan_name;
memcpy(info.mac, mac_address.c_str(),mac_address.length());
info.mac = mac_address;

if(op == "SET")
{
Expand All @@ -126,7 +126,7 @@ void FdbSync::processStateFdb()

if(fvField(i) == "port")
{
memcpy(info.port_name, fvValue(i).c_str(), fvValue(i).length());
info.port_name = fvValue(i);
}

if(fvField(i) == "type")
Expand Down
4 changes: 2 additions & 2 deletions fdbsyncd/fdbsync.h
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,9 @@ enum FDB_TYPE {

struct m_fdb_info
{
char mac[32];
std::string mac;
std::string vid; /*Store as Vlan<ID> */
char port_name[32];
std::string port_name;
short type; /*dynamic or static*/
short op_type; /*add or del*/
};
Expand Down