Commit 17243ac committed Jul 25, 2024 · 1 / 1
1 parent 9ac6520 commit 17243ac Copy full SHA for 17243ac
File tree 1 file changed +4
-2
lines changed
1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -91,7 +91,7 @@ impl AccessPoint {
91
91
let layer_4_task = task:: spawn ( Self :: run_layer_4 ( nat, range) ) ;
92
92
93
93
match tokio:: join!( layer_4_task) {
94
- ( Ok ( _ ) , ) => Ok ( ( ) ) ,
94
+ ( Ok ( Ok ( _ ) ) , ) => Ok ( ( ) ) ,
95
95
_ => todo ! ( ) ,
96
96
}
97
97
}
@@ -110,7 +110,7 @@ impl AccessPoint {
110
110
mut nat : NatTable ,
111
111
range : Ipv4Cidr ,
112
112
) -> AccessPointResult < ( ) > {
113
- // Create an IPv4 protocol
113
+ // Create a network layer protocol with TCP packets
114
114
let protocol = Layer3 ( IpNextHeaderProtocols :: Tcp ) ;
115
115
116
116
// Create a new transport protocol
@@ -137,6 +137,8 @@ impl AccessPoint {
137
137
packet,
138
138
addr,
139
139
) ?;
140
+
141
+ println ! ( " Translated packet: {:#?}" , translated_packet) ;
140
142
141
143
// Send the translated packet
142
144
if tx. send_to ( translated_packet, translated_addr) . is_err ( ) {
You can’t perform that action at this time.
0 commit comments