Skip to content

Commit 28f1c6b

Browse files
author
Marcello Seri
committed
test_tuntap: update to use the new interface
Signed-off-by: Marcello Seri <[email protected]>
1 parent fb5c66c commit 28f1c6b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test_tuntap/test_tuntap.ml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ let t_receivefd fd =
1010

1111
let t_sendfd fd =
1212
let fd_to_send, iface_name = Tuntap.opentap () in
13-
let nb_sent = send_fd fd (Bytes.unsafe_of_string iface_name) 0 (String.length iface_name) [] fd_to_send in
13+
let nb_sent = send_fd_substring fd iface_name 0 (String.length iface_name) [] fd_to_send in
1414
Printf.printf "[sender] sent %d bytes [%s], sent fd = %d\n%!" nb_sent
1515
(String.sub iface_name 0 nb_sent) (int_of_fd fd_to_send)
1616

0 commit comments

Comments
 (0)