Skip to content

Commit

Permalink
Overloaded method fix in QUIC BBR
Browse files Browse the repository at this point in the history
  • Loading branch information
Federico Chiariotti committed Nov 13, 2020
1 parent 9400ad6 commit bf26903
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 3 deletions.
15 changes: 14 additions & 1 deletion model/quic-bbr.cc
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
/*
* Copyright (c) 2018 NITK Surathkal,
* Copyright (c) 2020 SIGNET Lab, Department of Information Engineering, University of Padova
* 2020 SIGNET Lab, Department of Information Engineering,
* University of Padova
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 as
Expand Down Expand Up @@ -525,6 +526,8 @@ QuicBbr::UpdateBtlBw (Ptr<QuicSocketState> tcb, const struct RateSample * rs)
}
}



void
QuicBbr::UpdateModelAndState (Ptr<QuicSocketState> tcb, const struct RateSample * rs)
{
Expand Down Expand Up @@ -608,6 +611,16 @@ QuicBbr::CongControl (Ptr<QuicSocketState> tcb, const struct RateSample *rs)
UpdateControlParameters (tcb, rs);
}

void
QuicBbr::CongControl (Ptr<TcpSocketState> tcb,
const TcpRateOps::TcpRateConnection &rc,
const TcpRateOps::TcpRateSample &rs)
{
NS_LOG_FUNCTION (this << tcb);
NS_UNUSED (rc);
NS_UNUSED (rs);
}

void
QuicBbr::CongestionStateSet (Ptr<TcpSocketState> tcb,
const TcpSocketState::TcpCongState_t newState)
Expand Down
12 changes: 10 additions & 2 deletions model/quic-bbr.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
/*
* Copyright (c) 2018 NITK Surathkal, 2020 SIGNET Lab, Department of
* Information Engineering, University of Padova
* Copyright (c) 2018 NITK Surathkal,
* Copyright (c) 2020 SIGNET Lab, Department of Information Engineering,
* University of Padova
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 as
Expand Down Expand Up @@ -105,6 +106,13 @@ class QuicBbr : public QuicCongestionOps
virtual void IncreaseWindow (Ptr<TcpSocketState> tcb,
uint32_t segmentsAcked);
virtual Ptr<TcpCongestionOps> Fork ();

/**
* \brief Unused function, added here to avoid overloading the one in TcpCongestionOps
*/
virtual void CongControl (Ptr<TcpSocketState> tcb,
const TcpRateOps::TcpRateConnection &rc,
const TcpRateOps::TcpRateSample &rs);

protected:
void OnPacketAcked (Ptr<TcpSocketState> tcb, Ptr<QuicSocketTxItem> ackedPacket);
Expand Down

0 comments on commit bf26903

Please sign in to comment.