Debian Codegraph @

debian/patches/0008-fix-build-with-gcc11.patch

raw symbols SCIP
1 Descriptionscip-debian debian ns2 2.35+dfsg-9 ns2/patches/`0008-fix-build-with-gcc11.patch`#Description.: Fix build with gcc-11
2 Authorscip-debian debian ns2 2.35+dfsg-9 ns2/patches/`0008-fix-build-with-gcc11.patch`#Author.: Marcos Talau <[email protected]scip-debian . . . identity/`[email protected]`.>
3 Bug-Debianscip-debian debian ns2 2.35+dfsg-9 ns2/patches/`0008-fix-build-with-gcc11.patch`#Bug-Debian.: https://bugs.debian.org/984253scip-debian-bts debian-bts . . 984253:
4 Last-Updatescip-debian debian ns2 2.35+dfsg-9 ns2/patches/`0008-fix-build-with-gcc11.patch`#Last-Update.: 2022-11-20
5
6 Index: ns2-2.35+dfsg/tcp/tcp-fack.ccscip-debian debian ns2 2.35+dfsg-9 ns2/upstream/`ns2-2.35+dfsg/tcp/tcp-fack.cc`:
7 ===================================================================
8 --- ns2-2.35+dfsg.orig/tcp/tcp-fack.ccscip-debian debian ns2 2.35+dfsg-9 ns2/upstream/`ns2-2.35+dfsg.orig/tcp/tcp-fack.cc`:
9 +++ ns2-2.35+dfsg/tcp/tcp-fack.cc
10 @@ -84,7 +84,7 @@ void FackTcpAgent::oldack(Packet* pkt)
11 * retract maxseq_. The following line of code helps in those cases. For
12 * versions of TCP, it is a NOP.
13 */
14 - maxseq_ = max(maxseq_, highest_ack_);
15 + maxseq_ = max(int(maxseq_), int(highest_ack_));
16 if (t_seqno_ < last_ack_ + 1)
17 t_seqno_ = last_ack_ + 1;
18 newtimer(pkt);
19 Index: ns2-2.35+dfsg/tcp/tcp-fs.ccscip-debian debian ns2 2.35+dfsg-9 ns2/upstream/`ns2-2.35+dfsg/tcp/tcp-fs.cc`:
20 ===================================================================
21 --- ns2-2.35+dfsg.orig/tcp/tcp-fs.ccscip-debian debian ns2 2.35+dfsg-9 ns2/upstream/`ns2-2.35+dfsg.orig/tcp/tcp-fs.cc`:
22 +++ ns2-2.35+dfsg/tcp/tcp-fs.cc
23 @@ -65,7 +65,7 @@ TcpFsAgent::output_helper(Packet *pkt)
24 double now = Scheduler::instance().clock();
25 double idle_time = now - last_recv_time_;
26 double timeout = ((t_srtt_ >> 3) + t_rttvar_) * tcp_tick_ ;
27 - maxseq_ = max(maxseq_, highest_ack_);
28 + maxseq_ = max(int(maxseq_), int(highest_ack_));
29
30 /*
31 * if the connection has been idle (with no outstanding data) for long
32 @@ -172,7 +172,7 @@ TcpFsAgent::recv_newack_helper(Packet *p
33 else
34 ackcount = 1;
35 newack(pkt);
36 - maxseq_ = max(maxseq_, highest_ack_);
37 + maxseq_ = max(int(maxseq_), int(highest_ack_));
38 if (t_exact_srtt_ != 0) {
39 delta = tao - t_exact_srtt_;
40 if (delta < 0)
41 @@ -208,7 +208,7 @@ NewRenoTcpFsAgent::partialnewack_helper(
42 {
43 partialnewack(pkt);
44 /* Do this because we may have retracted maxseq_ */
45 - maxseq_ = max(maxseq_, highest_ack_);
46 + maxseq_ = max(int(maxseq_), int(highest_ack_));
47 if (fs_mode_ && fast_loss_recov_) {
48 /*
49 * A partial new ack implies that more than one packet has been lost
50 Index: ns2-2.35+dfsg/tcp/tcp-linux.ccscip-debian debian ns2 2.35+dfsg-9 ns2/upstream/`ns2-2.35+dfsg/tcp/tcp-linux.cc`:
51 ===================================================================
52 --- ns2-2.35+dfsg.orig/tcp/tcp-linux.ccscip-debian debian ns2 2.35+dfsg-9 ns2/upstream/`ns2-2.35+dfsg.orig/tcp/tcp-linux.cc`:
53 +++ ns2-2.35+dfsg/tcp/tcp-linux.cc
54 @@ -151,7 +151,7 @@ unsigned char LinuxTcpAgent::ack_process
55 if (flag&FLAG_DATA_ACKED) {
56 highest_ack_ = tcph->seqno();
57 linux_.snd_una = (highest_ack_+1)*linux_.mss_cache;
58 - maxseq_ = max(maxseq_, highest_ack_);
59 + maxseq_ = max(int(maxseq_), int(highest_ack_));
60 if (t_seqno_ < highest_ack_ + 1) {
61 t_seqno_ = highest_ack_ + 1;
62 linux_.snd_nxt = t_seqno_*linux_.mss_cache;