Skip to content

Commit

Permalink
Open different socket for dual tor
Browse files Browse the repository at this point in the history
  • Loading branch information
kellyyeh committed Aug 3, 2022
1 parent 6f94c2e commit 3c0c947
Show file tree
Hide file tree
Showing 5 changed files with 177 additions and 153 deletions.
3 changes: 2 additions & 1 deletion src/configInterface.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,8 @@ void processRelayNotification(std::deque<swss::KeyOpFieldsValuesTuple> &entries,
relay_config intf;
intf.is_option_79 = true;
intf.interface = vlan;
intf.db = nullptr;
intf.mux_key = "";
intf.state_db = nullptr;
for (auto &fieldValue: fieldValues) {
std::string f = fvField(fieldValue);
std::string v = fvValue(fieldValue);
Expand Down
2 changes: 1 addition & 1 deletion src/configInterface.h
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ void handleSwssNotification(std::vector<relay_config> *vlans);
*
* @return none
*/
void handleRelayNotification(swss::SubscriberStateTable &configMuxTable, std::vector<relay_config> *vlans);
void handleRelayNotification(swss::SubscriberStateTable &ipHelpersTable, std::vector<relay_config> *vlans);

/**
* @code void processRelayNotification(std::deque<swss::KeyOpFieldsValuesTuple> &entries, std::vector<relay_config> *vlans)
Expand Down
3 changes: 1 addition & 2 deletions src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,8 @@
int main(int argc, char *argv[]) {
try {
std::vector<relay_config> vlans;
swss::DBConnector state_db("STATE_DB", 0);
initialize_swss(&vlans);
loop_relay(&vlans, &state_db);
loop_relay(&vlans);
}
catch (std::exception &e)
{
Expand Down
Loading

0 comments on commit 3c0c947

Please sign in to comment.