File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -119,6 +119,9 @@ async fn vsock_run() {
119119 } else if op == Op :: Response && type_ == Type :: Stream {
120120 if raw. remote_cid == header_cid && raw. state == VsockState :: Connecting {
121121 raw. state = VsockState :: Connected ;
122+ raw. peer_buf_alloc = header. buf_alloc . to_ne ( ) ;
123+ raw. peer_fwd_cnt = header. fwd_cnt . to_ne ( ) ;
124+ raw. tx_waker . wake ( ) ;
122125 }
123126 } else if raw. remote_cid == header_cid {
124127 hdr = Some ( * header) ;
Original file line number Diff line number Diff line change @@ -157,7 +157,7 @@ impl ObjectInterface for Socket {
157157 const HEADER_SIZE : usize = mem:: size_of :: < Hdr > ( ) ;
158158 let port = VSOCK_MAP . lock ( ) . connect ( ep. port , ep. cid ) ?;
159159 self . port = port;
160- self . port = ep. cid ;
160+ self . cid = ep. cid ;
161161
162162 future:: poll_fn ( |cx| {
163163 if let Some ( mut driver_guard) = hardware:: get_vsock_driver ( ) . unwrap ( ) . try_lock ( )
You can’t perform that action at this time.
0 commit comments