Revize 2047
Přidáno uživatelem Michal Kliment před více než 11 roky(ů)
freenetis/branches/1.1/application/controllers/connection_requests.php | ||
---|---|---|
try
|
||
{
|
||
$snmp = Snmp_Factory::factoryForDevice($dhcp_device->ip_address);
|
||
$mac_address = $snmp->getMacAddressOf($ip_address);
|
||
|
||
// try find MAC address in DHCP
|
||
$mac_address = $snmp->getDHCPMacAddressOf($ip_address);
|
||
$this->session->set('connection_request_mac', $mac_address);
|
||
}
|
||
catch (DHCPMacAddressException $e)
|
||
{
|
||
try
|
||
{
|
||
// try find MAC address in ARP table
|
||
$mac_address = $snmp->getARPMacAddressOf($ip_address);
|
||
$this->session->set('connection_request_mac', $mac_address);
|
||
}
|
||
catch(Exception $e)
|
||
{
|
||
Log::add_exception($e);
|
||
status::mwarning($e->getMessage());
|
||
}
|
||
}
|
||
catch (Exception $e)
|
||
{
|
||
Log::add_exception($e);
|
Také k dispozici: Unified diff
Opravy:
- fixes #673: Volani stare metody SNMP u pozadavku o pripojeni