core-extra/gui
Gabriel Somlo e8ad324d3a gui: exec.tcl: cache local IP address across calls to getMyIP
Modify getMyIP to cache the local machine's IP address, and
return it without further accessing of the underlying resolver
libraries during subsequent invocations.

getMyIP is called roughly once a second from within monitor_loop
when refreshing CPU utilization in the bottom-right corner of
the GUI window. Other, dedicated CPU usage windows might also
call getMyIP at regular intervals.

With systemd commit cda458a54 (between v232 and v233), the
implementation of gethostbyname4_r() was updated to a more
intransigently standard-compliant error reporting convention,
which in turn causes glibc to retry in a more labor intensive
way (see https://github.com/systemd/systemd/pull/5359).

Under certain circumstances depending on the local hostname
and IP configuration, the glibc/systemd back-end resolver
routines triggered by getMyIP's call to [socket ...] and
[fconfigure ...] end up taking long enough to noticeably slow
down refreshing the main core-gui window, to the point where
interaction with the GUI becomes difficult.

Signed-off-by: Gabriel Somlo <glsomlo@cert.org>
2018-02-12 18:16:07 -05:00
..
addons initial import (Boeing r1752, NRL r878) 2013-08-29 14:21:13 +00:00
configs merged latest code from rodolfos merge from the latest github pull 2017-07-06 15:10:50 -07:00
icons added new OVS service file 2017-06-07 12:41:52 -07:00
.gitignore Add some gitignore files. 2015-01-28 02:15:45 +00:00
annotations.tcl initial import (Boeing r1752, NRL r878) 2013-08-29 14:21:13 +00:00
api.tcl Add OVS and Ryu Services to CORE for SDN support 2017-06-08 08:31:50 -07:00
canvas.tcl Adjust file mode bits. 2014-12-15 18:23:25 +00:00
cfgparse.tcl gui: Avoid added an extra newline to hook scripts when saving. 2016-09-29 17:28:31 -04:00
core-bsd-cleanup.sh initial import (Boeing r1752, NRL r878) 2013-08-29 14:21:13 +00:00
core-gui.in added --(a)ddress and --(p)ort arguments to core-gui command-line 2013-12-18 18:10:19 +00:00
core.tcl printed CEL messages to stdout when running in batch mode. Aborted current session when in batch mode and a FATAL event is received from the daemon 2015-05-22 00:54:09 +00:00
debug.tcl initial import (Boeing r1752, NRL r878) 2013-08-29 14:21:13 +00:00
editor.tcl merged latest code from rodolfos merge from the latest github pull 2017-07-06 15:10:50 -07:00
exceptions.tcl printed CEL messages to stdout when running in batch mode. Aborted current session when in batch mode and a FATAL event is received from the daemon 2015-05-22 00:54:09 +00:00
exec.tcl gui: exec.tcl: cache local IP address across calls to getMyIP 2018-02-12 18:16:07 -05:00
filemgmt.tcl gui: Always disconnect/connect when loading a file; this creates a new 2015-03-09 15:21:08 +00:00
gpgui.tcl initial import (Boeing r1752, NRL r878) 2013-08-29 14:21:13 +00:00
graph_partitioning.tcl initial import (Boeing r1752, NRL r878) 2013-08-29 14:21:13 +00:00
help.tcl Adjust file mode bits. 2014-12-15 18:23:25 +00:00
initgui.tcl globally replace mailing list URLs and dev email 2017-06-30 09:07:16 -07:00
ipv4.tcl Add OVS and Ryu Services to CORE for SDN support 2017-06-08 08:31:50 -07:00
ipv6.tcl Adjust file mode bits. 2014-12-15 18:23:25 +00:00
linkcfg.tcl Add OVS and Ryu Services to CORE for SDN support 2017-06-08 08:31:50 -07:00
Makefile.am gui: Try to remove empty directories when uninstalling. 2015-05-26 17:34:09 +00:00
mobility.tcl Adjust file mode bits. 2014-12-15 18:23:25 +00:00
nodecfg.tcl Adjust file mode bits. 2014-12-15 18:23:25 +00:00
nodes.tcl merged latest code from rodolfos merge from the latest github pull 2017-07-06 15:10:50 -07:00
ns2imunes.tcl Adjust file mode bits. 2014-12-15 18:23:25 +00:00
plugins.tcl re-read channel var when switching sessions via dialog (fixes bug #259) 2014-10-31 18:29:16 +00:00
services.tcl initial import (Boeing r1752, NRL r878) 2013-08-29 14:21:13 +00:00
tooltips.tcl Adjust file mode bits. 2014-12-15 18:23:25 +00:00
topogen.tcl initial import (Boeing r1752, NRL r878) 2013-08-29 14:21:13 +00:00
traffic.tcl initial import (Boeing r1752, NRL r878) 2013-08-29 14:21:13 +00:00
util.tcl gui: Fix using xfce4-terminal as the terminal program. 2017-05-18 21:38:30 +00:00
version.tcl.in initial import (Boeing r1752, NRL r878) 2013-08-29 14:21:13 +00:00
widget.tcl fix broken Throughput Widget and Wireshark for node numbers above 10 2017-03-31 09:55:26 -07:00
wlan.tcl gui: Only consider nodes on the same canvas when doing 'Select WLAN 2015-01-30 02:46:18 +00:00
wlanscript.tcl Adjust file mode bits. 2014-12-15 18:23:25 +00:00