Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Adding balraj fix on tcp

  • Loading branch information...
commit 35a370c0fcd1db53406c4975d42f26379cda6a17 1 parent fe400db
@crotsos authored
Showing with 2 additions and 0 deletions.
  1. +2 −0  lib/net/direct/tcp/pcb.ml
View
2  lib/net/direct/tcp/pcb.ml
@@ -65,9 +65,11 @@ module Tx = struct
let ack = match rx_ack with Some _ -> true |None -> false in
let ack_number = match rx_ack with Some n -> Sequence.to_int32 n |None -> 0l in
let sequence = Sequence.to_int32 seq in
+(*
printf "TCP xmit: dest_ip=%s %s%s%s%sseq=%lu ack=%lu\n%!" (ipv4_addr_to_string dest_ip)
(if rst then "RST " else "") (if syn then "SYN " else "")
(if fin then "FIN " else "") (if ack then "ACK " else "") sequence ack_number;
+*)
let options = Options.marshal options in
let data_offset = (Bitstring.bitstring_length options + 160) / 32 in
let header = BITSTRING {

4 comments on commit 35a370c

@avsm

how is this the TCP fix? its just removing a printf...

@crotsos
Owner
@avsm
@crotsos
Owner
Please sign in to comment.
Something went wrong with that request. Please try again.