Repository: fujiapple852/trippy (language: rust)

Issue:
Add last icmp packet type column



Discussion / hints:

Fix patch:
diff --git a/README.md b/README.md
index b13788c47..89022c43a 100644
--- a/README.md
+++ b/README.md
@@ -849,7 +849,7 @@ configuration file.
 | `Seq`   | `Q`  | The sequence number for the last probe for the hop                                                                                                                                                                                                                                                                                                    |
 | `Sprt`  | `S`  | The source port for last probe for the hop                                                                                                                                                                                                                                                                                                            |
 | `Dprt`  | `P`  | The destination port for last probe for the hop                                                                                                                                                                                                                                                                                                       |
-| `Type`  | `T`  | The icmp packet type for last probe for the hop:<br/>- TE TimeExceeded<br/>- ER EchoReply<br/>- UR Unreachable<br/>- NA NotApplicable                                                                                                                                                                                                                 |
+| `Type`  | `T`  | The icmp packet type for last probe for the hop:<br/>- TE TimeExceeded<br/>- ER EchoReply<br/>- DU Destination Unreachable<br/>- NA NotApplicable                                                                                                                                                                                                     |
 
 The default columns are `holsravbwdt`.
 
diff --git a/src/frontend/render/table.rs b/src/frontend/render/table.rs
index 4df6c38b0..5e3b53ebe 100644
--- a/src/frontend/render/table.rs
+++ b/src/frontend/render/table.rs
@@ -215,7 +215,7 @@ fn render_icmp_packet_type_cell(icmp_packet_type: Option<IcmpPacketType>) -> Cel
         None => Cell::from("n/a"),
         Some(IcmpPacketType::TimeExceeded) => Cell::from("TE"),
         Some(IcmpPacketType::EchoReply) => Cell::from("ER"),
-        Some(IcmpPacketType::Unreachable) => Cell::from("UR"),
+        Some(IcmpPacketType::Unreachable) => Cell::from("DU"),
         Some(IcmpPacketType::NotApplicable) => Cell::from("NA"),
     }
 }


Test patch: