fix some bugs in the headers and fix checksumming.
authorNathan Binkert <binkertn@umich.edu>
Fri, 1 Oct 2004 23:48:33 +0000 (19:48 -0400)
committerNathan Binkert <binkertn@umich.edu>
Fri, 1 Oct 2004 23:48:33 +0000 (19:48 -0400)
commiteaf66f46588cdfd8a91b93821406e1d797c6d1fb
treeb2e418935f2730c5977600e414cecaf03a832faa
parent72276af49f1113649e97074b5b492ad7b5e25837
fix some bugs in the headers and fix checksumming.

base/inet.cc:
    we can't use a uint16_t for the intermediate checksum values
    since there may be some bits that carry.
    the length that is added in the pseudo header is the length of
    the tcp portion only.
base/inet.hh:
    silly me, the ip_hlen field is in terms of 4-byte words.
    when caclulating checksum, we're dealing with network byte order,
    so don't bother doing any byteswapping.

--HG--
extra : convert_revision : 993e3413e9febea0ba2fb6ba8bf04c053cca15ed
base/inet.cc
base/inet.hh