Page MenuHomeFreeBSD

bhyve/snapshot: ..back to SOCK_STREAM
ClosedPublic

Authored by rew on Apr 10 2022, 5:15 AM.
Tags
None
Referenced Files
F108694540: D34863.diff
Mon, Jan 27, 9:02 AM
Unknown Object (File)
Fri, Jan 24, 5:58 PM
Unknown Object (File)
Thu, Jan 23, 6:39 PM
Unknown Object (File)
Mon, Jan 13, 7:31 PM
Unknown Object (File)
Thu, Jan 9, 10:40 AM
Unknown Object (File)
Sun, Dec 29, 12:46 AM
Unknown Object (File)
Dec 20 2024, 1:37 AM
Unknown Object (File)
Dec 9 2024, 7:44 PM

Details

Summary

Now that nvlist_send()/nvlist_recv() are being used, ditch the datagram
socket.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

rew requested review of this revision.Apr 10 2022, 5:15 AM
jhb added inline comments.
usr.sbin/bhyvectl/bhyvectl.c
1702

I think you still want SUN_LEN here? (And do we need to set addr.sun_len as well?)

feedback from jhb..use SUN_LEN()

markj added inline comments.
usr.sbin/bhyve/snapshot.c
1460–1461

Isn't the socket leaked?

usr.sbin/bhyvectl/bhyvectl.c
1702–1703

Wrap this line since you're modifying it anyway?

address feedback from markj:

  • wrap long line
  • close file descriptor being leaked
This revision is now accepted and ready to land.Apr 25 2022, 5:38 PM
This revision was automatically updated to reflect the committed changes.