mirror of
https://github.com/intrepidcs/libicsneo.git
synced 2026-09-25 18:29:45 +02:00
Device: Write MACsec configs by network ID
This commit is contained in:
committed by
Kyle Schwarz
parent
b54bf80c40
commit
f0b1341cdf
@@ -77,7 +77,7 @@ int main(int, char**) {
|
||||
cfg.setTxEnable(true);
|
||||
|
||||
// Write config to the device
|
||||
if(!device->writeMACsecConfig(cfg)) {
|
||||
if(!device->writeMACsecConfig(cfg, icsneo::Network::NetID::AE_01)) {
|
||||
std::cout << "Failed to write MACsec config" << std::endl;
|
||||
std::cout << icsneo::GetLastError() << std::endl;
|
||||
return -1;
|
||||
|
||||
Reference in New Issue
Block a user