Skip to content

Commit 9b20d01

Browse files
authored
Update mactrack_cisco.php
Add ifType's description
1 parent 4c4b96a commit 9b20d01

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

lib/mactrack_cisco.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -505,6 +505,10 @@ function get_IOS_dot1dTpFdbEntry_ports($site, &$device, $lowPort = 0, $highPort
505505
$portTrunkStatus = (isset($ifInterfaces[$ifIndex]['trunkPortState']) ? $ifInterfaces[$ifIndex]['trunkPortState'] : '');
506506

507507
/* only output legitimate end user ports */
508+
/* ifType: 6 = ethernetCsmacd
509+
53 = propVirtual
510+
161 = ieee8023adLag
511+
*/
508512
if ($ifType == 6 || $ifType == 53 || $ifType == 161) {
509513
if (($portTrunkStatus == '2') ||
510514
(empty($portTrunkStatus)) ||

0 commit comments

Comments
 (0)