Project

General

Profile

Bug #4000

guess_interface_from_ip parses netstat output that may be truncated

Added by Chris Buechler about 5 years ago. Updated about 5 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
Ermal Luçi
Category:
Interfaces
Target version:
Start date:
11/11/2014
Due date:
% Done:

100%

Estimated time:
Affected Version:
All
Affected Architecture:

Description

Long interface names are truncated in netstat output, which can lead to various potential problems (though most things no longer do that) where guess_interface_from_ip is used. For instance here: https://forum.pfsense.org/index.php?topic=81948.msg460358#msg460358

Associated revisions

Revision aa5acb42 (diff)
Added by Ermal Luçi about 5 years ago

Use route command directly rather than trying to make a route search on php thorugh netstat. It Fixes #4000

History

#1 Updated by Ermal Luçi about 5 years ago

  • Status changed from New to Feedback
  • % Done changed from 0 to 100

#2 Updated by Trond Vindenes about 5 years ago

Tested on the latest snapshot (built on Wed Nov 12 11:52:20 CST 2014). Looks good, finally the DHCP failover peer IP on the secondary firewall gets updated with the correct value.

#3 Updated by Ermal Luçi about 5 years ago

  • Status changed from Feedback to Resolved

Also available in: Atom PDF