Ramsey\Uuid\Provider\Node\SystemNodeProvider::getIfconfig PHP Method

getIfconfig() protected method

Returns the network interface configuration for the system
protected getIfconfig ( ) : string
return string
    protected function getIfconfig()
    {
        ob_start();
        switch (strtoupper(substr(php_uname('a'), 0, 3))) {
            case 'WIN':
                passthru('ipconfig /all 2>&1');
                break;
            case 'DAR':
                passthru('ifconfig 2>&1');
                break;
            case 'LIN':
            default:
                passthru('netstat -ie 2>&1');
                break;
        }
        return ob_get_clean();
    }
SystemNodeProvider