|
@@ -46,12 +46,16 @@ std::string getMacFromPacket(Pkt4Ptr pkt)
|
|
rtr = pkt->getOption(DHO_DHCP_AGENT_OPTIONS)->toHexString(false).substr(6,12);
|
|
rtr = pkt->getOption(DHO_DHCP_AGENT_OPTIONS)->toHexString(false).substr(6,12);
|
|
std::vector<uint8_t> binary;
|
|
std::vector<uint8_t> binary;
|
|
isc::util::str::decodeFormattedHexString(rtr, binary);
|
|
isc::util::str::decodeFormattedHexString(rtr, binary);
|
|
|
|
+
|
|
|
|
+ LOG_INFO(runscript_logger, FLOWDAT_DEBUG_STRING).arg("getMacFromPacket... from option 82 " + rtr);
|
|
} else if (pkt->getOption(DHO_VENDOR_CLASS_IDENTIFIER)) {
|
|
} else if (pkt->getOption(DHO_VENDOR_CLASS_IDENTIFIER)) {
|
|
std::string docsis_vendor_class = pkt->getOption(DHO_VENDOR_CLASS_IDENTIFIER)->toString().substr(2,6);
|
|
std::string docsis_vendor_class = pkt->getOption(DHO_VENDOR_CLASS_IDENTIFIER)->toString().substr(2,6);
|
|
if (docsis_vendor_class.compare("docsis") == 0) {
|
|
if (docsis_vendor_class.compare("docsis") == 0) {
|
|
rtr = pkt->getMAC(HWAddr::HWADDR_SOURCE_RAW)->toText(false);
|
|
rtr = pkt->getMAC(HWAddr::HWADDR_SOURCE_RAW)->toText(false);
|
|
isc::util::str::uppercase(rtr);
|
|
isc::util::str::uppercase(rtr);
|
|
rtr.erase(std::remove(rtr.begin(), rtr.end(), ':'), rtr.end());
|
|
rtr.erase(std::remove(rtr.begin(), rtr.end(), ':'), rtr.end());
|
|
|
|
+
|
|
|
|
+ LOG_INFO(runscript_logger, FLOWDAT_DEBUG_STRING).arg("getMacFromPacket is vendor class 'docsis' chwaddr..." + rtr);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|