Skip to content

Commit 370836c

Browse files
authored
Merge pull request #6 from qwandor/master
Update dependencies and increment version number
2 parents 9442bf3 + 97a3299 commit 370836c

File tree

5 files changed

+53
-62
lines changed

5 files changed

+53
-62
lines changed

Cargo.toml

+3-3
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@ edition = "2018"
99
exclude = ["test_fixture"]
1010

1111
[dependencies]
12-
libc = "0.2.65"
13-
nix = "0.17.0"
12+
libc = "0.2.79"
13+
nix = "0.19.1"
1414

1515
[dev-dependencies]
16-
rand = "0.7.2"
16+
rand = "0.8.3"
1717
sha2 = ">=0.8.0"

Makefile

+1-1
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ kmod:
4747
# Start a virtio socket enabled vm
4848
vm: initrd.cpio
4949
sudo qemu-system-x86_64 -kernel test_fixture/bzImage -initrd target/$(TOOLCHAIN)/debug/initrd.cpio \
50-
-enable-kvm -m 256 -device vhost-vsock-pci,id=vhost-vsock-pci0,guest-cid=3 -nographic -append "console=ttyS0"
50+
-enable-kvm -m 256 -device vhost-vsock-pci,id=vhost-vsock-pci0,guest-cid=3,disable-legacy=on -nographic -append "console=ttyS0"
5151

5252
# Create a simple operating system image for the vm
5353
initrd.cpio: echo_server

echo_server/Cargo.lock

+42-51
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

echo_server/Cargo.toml

+3-3
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ license = "Apache-2.0"
77
edition = "2018"
88

99
[dependencies]
10-
clap = "2.33.0"
11-
libc = "0.2.65"
12-
nix = "0.17.0"
10+
clap = "2.33.3"
11+
libc = "0.2.79"
12+
nix = "0.19.0"
1313
vsock = { path = "../" }

src/lib.rs

+4-4
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ impl VsockListener {
7272
bind(
7373
socket,
7474
&mut vsock_addr as *mut _ as *mut sockaddr,
75-
size_of::<sockaddr_vm>() as u32,
75+
size_of::<sockaddr_vm>() as socklen_t,
7676
)
7777
};
7878
if res < 0 {
@@ -236,7 +236,7 @@ impl VsockStream {
236236
connect(
237237
sock,
238238
&vsock_addr as *const _ as *const sockaddr,
239-
size_of::<sockaddr_vm>() as u32,
239+
size_of::<sockaddr_vm>() as socklen_t,
240240
)
241241
} < 0
242242
{
@@ -322,7 +322,7 @@ impl VsockStream {
322322
SOL_SOCKET,
323323
SO_SNDTIMEO,
324324
&timeout as *const _ as *const c_void,
325-
size_of::<timeval>() as u32,
325+
size_of::<timeval>() as socklen_t,
326326
)
327327
} < 0
328328
{
@@ -341,7 +341,7 @@ impl VsockStream {
341341
SOL_SOCKET,
342342
SO_RCVTIMEO,
343343
&timeout as *const _ as *const c_void,
344-
size_of::<timeval>() as u32,
344+
size_of::<timeval>() as socklen_t,
345345
)
346346
} < 0
347347
{

0 commit comments

Comments
 (0)