removed debug logs and made it so 'make clean' also cleans 3p/libtuntap

This commit is contained in:
cozis
2023-11-01 23:40:39 +01:00
parent 1ea06dfebb
commit 8a83e82ff7
2 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -81,5 +81,5 @@ $(EXAMPLE_1): lib $(EXAMPLE_CFILES_1) $(EXAMPLE_HFILES_1)
$(CC) -o $@ $(EXAMPLE_CFILES_1) $(CFLAGS) $(EXAMPLE_LFLAGS) -I$(OUTDIR) -L$(OUTDIR) $(CC) -o $@ $(EXAMPLE_CFILES_1) $(CFLAGS) $(EXAMPLE_LFLAGS) -I$(OUTDIR) -L$(OUTDIR)
clean: clean:
rm -fr $(OBJDIR) $(OUTDIR) rm -fr $(OBJDIR) $(OUTDIR) 3p/libtuntap/build
mkdir obj out mkdir obj out
+2 -2
View File
@@ -1197,7 +1197,7 @@ void tcp_process_segment(tcp_state_t *tcp, ip_address_t sender,
// and that SND.WL2 records the acknowledgment number of the last // and that SND.WL2 records the acknowledgment number of the last
// segment used to update SND.WND. The check here prevents using // segment used to update SND.WND. The check here prevents using
// old segments to update the window. // old segments to update the window.
TCP_DEBUG_LOG("ack=%lld, UNA=%lld, NXT=%lld", ack, c->snd_una, c->snd_nxt);
if (ack > c->snd_nxt) { if (ack > c->snd_nxt) {
// Peer acked something not sent yet // Peer acked something not sent yet
transmit(c, TCP_FLAG_ACK, true); transmit(c, TCP_FLAG_ACK, true);
@@ -1261,7 +1261,7 @@ void tcp_process_segment(tcp_state_t *tcp, ip_address_t sender,
// In addition to the processing for the ESTABLISHED state, if the // In addition to the processing for the ESTABLISHED state, if the
// ACK acknowledges our FIN, then enter the TIME-WAIT state; // ACK acknowledges our FIN, then enter the TIME-WAIT state;
// otherwise, ignore the segment. // otherwise, ignore the segment.
TCP_DEBUG_LOG("ACK with seq=%lld, ack=%lld reached here (NXT=%lld)", seq, ack, c->snd_nxt);
if (ack == c->snd_nxt) { if (ack == c->snd_nxt) {
TCP_DEBUG_LOG("And here"); TCP_DEBUG_LOG("And here");
// Everything was ACKed, so if a FIN was sent that was ACKed too. // Everything was ACKed, so if a FIN was sent that was ACKed too.