summaryrefslogtreecommitdiff
path: root/src/base/inet.hh
diff options
context:
space:
mode:
authorAndreas Hansson <andreas.hansson@arm.com>2012-09-10 11:57:39 -0400
committerAndreas Hansson <andreas.hansson@arm.com>2012-09-10 11:57:39 -0400
commit1f9c3bcb462f84b97b75f264553180523eaf6419 (patch)
tree223f56e9d5719d8ca0656a2b3af26048ccda696e /src/base/inet.hh
parentd6283445744d5be2a9ac33f0adbc729d48e22c40 (diff)
downloadgem5-1f9c3bcb462f84b97b75f264553180523eaf6419.tar.xz
Inet: Remove the SackRange and its use
This patch aims to simplify the use of the Range class before introducing a more elaborate AddrRegion to replace the AddrRange. The SackRange is the only use of the range class besides address ranges, and the removal of this use makes for an easier modification of the range class. The functionlity that is removed with this patch is not used anywhere throughout the code base.
Diffstat (limited to 'src/base/inet.hh')
-rw-r--r--src/base/inet.hh3
1 files changed, 0 insertions, 3 deletions
diff --git a/src/base/inet.hh b/src/base/inet.hh
index a957b8a71..4b7335591 100644
--- a/src/base/inet.hh
+++ b/src/base/inet.hh
@@ -380,8 +380,6 @@ class TcpPtr
uint16_t cksum(const TcpPtr &ptr);
-typedef Range<uint16_t> SackRange;
-
struct TcpOpt : public tcp_opt
{
uint8_t type() const { return opt_type; }
@@ -393,7 +391,6 @@ struct TcpOpt : public tcp_opt
uint16_t mss() const { return ntohs(opt_data.mss); }
uint8_t wscale() const { return opt_data.wscale; }
- bool sack(std::vector<SackRange> &vec) const;
uint32_t echo() const { return ntohl(opt_data.echo); }
uint32_t tsval() const { return ntohl(opt_data.timestamp[0]); }
uint32_t tsecr() const { return ntohl(opt_data.timestamp[1]); }