Permalink
Browse files

add sample pcap

  • Loading branch information...
1 parent 91d2e14 commit 5410d4336d1f82328b6510c00d7aacbf09f1dd4f @avsm committed Dec 13, 2012
Showing with 1 addition and 1 deletion.
  1. BIN lib_test/http.cap
  2. +1 −1 lib_test/pcap.ml
View
Binary file not shown.
View
@@ -158,7 +158,7 @@ let print_pcap_header buf =
let parse () =
let fd = Unix.(openfile "http.cap" [O_RDONLY] 0) in
- let t = Cstruct.of_fd fd in
+ let t = Unix_cstruct.of_fd fd in
printf "total pcap file length %d\n" (Cstruct.len t);
let header, body = Cstruct.split t sizeof_pcap_header in

0 comments on commit 5410d43

Please sign in to comment.