Cable Forum

Cable Forum (https://www.cableforum.uk/board/index.php)
-   Virgin Media Internet Service (https://www.cableforum.uk/board/forumdisplay.php?f=12)
-   -   General : Oddity in router interface (https://www.cableforum.uk/board/showthread.php?t=33695443)

Milambar 16-10-2013 16:31

Oddity in router interface
 
I was examining the page source of VmRouterStatus_status.asp, in order to modify my script that monitors and logs my router status. I spotted a huge chunk of the page has been commented out.

Code:

<!--
<tr>
        <td class="title">Ethernet 1 Link Status</td>                                       
        <td>Up</td>
        <td>1000 Mbps/Full duplex</td>
</tr>
<tr>
        <td class="title">Ethernet 2 Link Status</td>
        <td>Up</td>
        <td>1000 Mbps/Full duplex</td>
</tr>
<tr>
        <td class="title">Ethernet 3 Link Status</td>
        <td>Up</td>
        <td>1000 Mbps/Full duplex</td>
</tr>
<tr>
        <td class="title">Ethernet 4 Link Status</td>
        <td>Up</td>
        <td>1000 Mbps/Full duplex</td>
</tr>
-->

I'm wondering if anyone had any ideas as to why VM decided to comment out this block, rather than allowing it to be displayed normally?

Kushan 16-10-2013 16:36

Re: Oddity in router interface
 
Probably done as part of their "Let's take the netgear firmware and dumb it down for the thickos" plan.

Sephiroth 16-10-2013 16:42

Re: Oddity in router interface
 
There was a long thread in one of the forums a few months ago that went into a lot of things that were commented out. But if you want it you gotta find it!

kwikbreaks 16-10-2013 16:52

Re: Oddity in router interface
 
I'd guess that the code that should have populated those fields either never got written or was so inefficient/bug ridden that they just commented that out too.

I'm 100% convinced that the old flood detection / pingtest "bug" was fixed simply by ignoring the setting and leaving the code inactive regardless.

There's more than one way to eliminate bugs and commenting out non-essential buggycode is the probably the cheapest. It's certainly the most reliable.

qasdfdsaq 16-10-2013 17:44

Re: Oddity in router interface
 
I wouldn't say it's the most reliable, just randomly commenting out buggy code can break a lot of other things if inter-dependencies are not considered properly.

Sephiroth 17-10-2013 11:17

Re: Oddity in router interface
 
Quote:

Originally Posted by Kushan (Post 35632896)
Probably done as part of their "Let's take the netgear firmware and dumb it down for the thickos" plan.

More likely what Kush says plus what can we take out that won't cause the world to howl but will reduce resource contention in the SH2.

kwikbreaks 17-10-2013 20:57

Re: Oddity in router interface
 
Looking at the commented out code the fact that the fields appear to be populated suggests that there is code running to populate them. That suggests it could be dumbing down or (imo) more likely that the code isn't working correctly so they don't want to present obviously wrong status information to users and have opted for the simplest way to avoid that. It would be interesting to know if it changes if a cable is disconnected or a 100Mbps device substituted. Does the current all ports connected at 1000Mbps reflect reality at that time?

Milambar 18-10-2013 12:00

Re: Oddity in router interface
 
Thats a good thought. I realise that its showing all 4 as connected, yet the reality is that only 2 are connected to actual devices. The other two ports are unused as most of my devices connect via wifi.

I guess that suggests non-functional code behind them.

kwikbreaks 18-10-2013 15:33

Re: Oddity in router interface
 
In that case I suspect there is no code behind it and the html was just a mock up of what could be done. In past life I used to work for a software company - we always reckoned that the best demos were by slide projector rather than showing live code...


All times are GMT +1. The time now is 09:05.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
All Posts and Content are © Cable Forum