2,147,483,647... limit on bytes sent?

Discussion in 'HyperWRT Firmware' started by frad, Sep 7, 2004.

  1. frad

    frad Network Guru Member

    I am using the HyperWRT 1.3 firmware and I noticed this bug... but it may have been carried over from the official Linksys firmware.

    It seems like the maximum value for Sent and Received bytes shown in the Internet Connection Status Window is 2,147,483,647. Which happens to be the largest possible 32-bit signed integer. Can this be fixed...?

  2. koitsu

    koitsu Network Guru Member

    You're using UPnP to communicate with your WRT* unit. The Linux UPnP daemon is known to have some issues, and possibly that could be considered one of them. The UPnP IGD specification (found here) states the following about the octet and byte counter lengths supported in UPnP:

    2^32 == 4294967296 (0 to 4294967295), which is your standard unsigned 32-bit value.

    Possibly this is a "bug" in the Linux IGD daemon __or__ a bug in Windows' handling of octet/byte counters via UPnP IGD.

    I'm "pretty sure" Linux's iptable counter rules can support values greater than a 32-bit counter (I believe they're up to 64-bit, not sure), so, this is looking to be either a UPnP-specific problem or a bug in XP's UPnP IGD handler.
  3. koitsu

    koitsu Network Guru Member

    I'm interested in the HyperWRT firmware at this point (hooray), so I'll check out the UPnP code a bit and see what I can find for you.
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice