@@ -70,7 +70,7 @@ impl IpPacket {
7070 let ( transport_block, network_block) = {
7171 let chunks = Layout :: default ( )
7272 . direction ( Direction :: Vertical )
73- . constraints ( [ Constraint :: Length ( 20 ) , Constraint :: Length ( 9 ) ] )
73+ . constraints ( [ Constraint :: Length ( 20 ) , Constraint :: Length ( 10 ) ] )
7474 . flex ( ratatui:: layout:: Flex :: SpaceAround )
7575 . margin ( 2 )
7676 . split ( block) ;
@@ -85,7 +85,7 @@ impl IpPacket {
8585 let ( transport_block, network_block) = {
8686 let chunks = Layout :: default ( )
8787 . direction ( Direction :: Vertical )
88- . constraints ( [ Constraint :: Length ( 8 ) , Constraint :: Length ( 9 ) ] )
88+ . constraints ( [ Constraint :: Length ( 8 ) , Constraint :: Length ( 10 ) ] )
8989 . flex ( ratatui:: layout:: Flex :: SpaceAround )
9090 . margin ( 2 )
9191 . split ( block) ;
@@ -99,7 +99,7 @@ impl IpPacket {
9999 let ( transport_block, network_block) = {
100100 let chunks = Layout :: default ( )
101101 . direction ( Direction :: Vertical )
102- . constraints ( [ Constraint :: Length ( 7 ) , Constraint :: Length ( 9 ) ] )
102+ . constraints ( [ Constraint :: Length ( 7 ) , Constraint :: Length ( 10 ) ] )
103103 . flex ( ratatui:: layout:: Flex :: SpaceAround )
104104 . margin ( 2 )
105105 . split ( block) ;
@@ -252,10 +252,15 @@ impl Ipv6Packet {
252252 Span :: styled( "Traffic Class" , Style :: new( ) . bold( ) ) ,
253253 Span :: from( self . traffic_class. to_string( ) ) ,
254254 ] ) ,
255- // Row::new(vec![
256- // Span::styled("Flow Label", Style::new().bold()),
257- // Span::from(&self.flow_label.to_vec().to_string()),
258- // ]),
255+ Row :: new ( vec ! [
256+ Span :: styled( "Flow Label" , Style :: new( ) . bold( ) ) ,
257+ Span :: from( format!(
258+ "{:#0x}" ,
259+ ( self . flow_label[ 0 ] as u32 ) << 16
260+ | ( self . flow_label[ 1 ] as u32 ) << 8
261+ | ( self . flow_label[ 2 ] as u32 )
262+ ) ) ,
263+ ] ) ,
259264 Row :: new ( vec ! [
260265 Span :: styled( "Payload Length" , Style :: new( ) . bold( ) ) ,
261266 Span :: from( self . traffic_class. to_string( ) ) ,
0 commit comments