Fix ruby 2.* incompatibility in netstat functions

Change-Id: I1b920596597218a0fff24a7ad1be5f8f9b285384
Merge "Fix ruby 2.* incompatibility in netstat functions"