Skip to content

Support bind() for tcp wrapper#2611

Merged
stevenengler merged 1 commit intoshadow:mainfrom
stevenengler:wrap-tcp-rust
Dec 20, 2022
Merged

Support bind() for tcp wrapper#2611
stevenengler merged 1 commit intoshadow:mainfrom
stevenengler:wrap-tcp-rust

Conversation

@stevenengler
Copy link
Copy Markdown
Contributor

@stevenengler stevenengler commented Dec 14, 2022

This passes the network namespace to the socket during the bind call, which isn't how Linux does it (in Linux, sockets hold a reference-counted reference to the network namespace in it's inode), but in Shadow we don't use reference counting on the network namespace and we don't support multiple network namespaces so we need to pass it here.

@stevenengler stevenengler self-assigned this Dec 14, 2022
@github-actions github-actions bot added the Component: Main Composing the core Shadow executable label Dec 14, 2022
@codecov
Copy link
Copy Markdown

codecov bot commented Dec 14, 2022

Codecov Report

Base: 68.01% // Head: 68.16% // Increases project coverage by +0.15% 🎉

Coverage data is based on head (6bd92fe) compared to base (a4ab9bf).
Patch coverage: 84.21% of modified lines in pull request are covered.

❗ Current head 6bd92fe differs from pull request most recent head ae76ae6. Consider uploading reports for the commit ae76ae6 to get more accurate results

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #2611      +/-   ##
==========================================
+ Coverage   68.01%   68.16%   +0.15%     
==========================================
  Files         200      199       -1     
  Lines       29278    29250      -28     
  Branches     5755     5750       -5     
==========================================
+ Hits        19912    19939      +27     
+ Misses       4770     4728      -42     
+ Partials     4596     4583      -13     
Flag Coverage Δ
tests 68.16% <84.21%> (+0.15%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
src/main/host/descriptor/socket/unix.rs 67.92% <ø> (-0.23%) ⬇️
src/main/host/descriptor/socket/inet/mod.rs 41.46% <70.83%> (+24.63%) ⬆️
src/main/host/descriptor/socket/inet/tcp.rs 69.78% <92.85%> (+9.64%) ⬆️
src/main/host/descriptor/socket/mod.rs 37.23% <100.00%> (+1.06%) ⬆️
src/main/host/syscall/handler/socket.rs 66.80% <100.00%> (-0.08%) ⬇️
src/main/host/syscall/handler/sched.rs 26.47% <0.00%> (-18.31%) ⬇️
src/main/core/scheduler/pools/unbounded.rs 77.90% <0.00%> (-4.07%) ⬇️
src/main/host/syscall/handler/ioctl.rs 53.12% <0.00%> (-3.13%) ⬇️
src/main/utility/enum_passthrough.rs 66.66% <0.00%> (-2.57%) ⬇️
src/main/host/descriptor/pipe.rs 83.75% <0.00%> (-0.63%) ⬇️
... and 46 more

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report at Codecov.
📢 Do you have feedback about the report comment? Let us know in this issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Component: Main Composing the core Shadow executable

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants