@@ -5,7 +5,7 @@ use netlink_packet_utils::{
5
5
DecodeError ,
6
6
} ;
7
7
8
- pub ( crate ) const ICMP6_STATS_LEN : usize = 48 ;
8
+ pub ( crate ) const ICMP6_STATS_LEN : usize = 56 ;
9
9
10
10
#[ derive( Clone , Copy , Eq , PartialEq , Debug , Default ) ]
11
11
#[ non_exhaustive]
@@ -16,6 +16,7 @@ pub struct Icmp6Stats {
16
16
pub out_msgs : i64 ,
17
17
pub out_errors : i64 ,
18
18
pub csum_errors : i64 ,
19
+ pub out_ratelimit_host : i64 ,
19
20
}
20
21
21
22
buffer ! ( Icmp6StatsBuffer ( ICMP6_STATS_LEN ) {
@@ -25,6 +26,7 @@ buffer!(Icmp6StatsBuffer(ICMP6_STATS_LEN) {
25
26
out_msgs: ( i64 , 24 ..32 ) ,
26
27
out_errors: ( i64 , 32 ..40 ) ,
27
28
csum_errors: ( i64 , 40 ..48 ) ,
29
+ out_ratelimit_host: ( i64 , 48 ..56 ) ,
28
30
} ) ;
29
31
30
32
impl < T : AsRef < [ u8 ] > > Parseable < Icmp6StatsBuffer < T > > for Icmp6Stats {
@@ -36,6 +38,7 @@ impl<T: AsRef<[u8]>> Parseable<Icmp6StatsBuffer<T>> for Icmp6Stats {
36
38
out_msgs : buf. out_msgs ( ) ,
37
39
out_errors : buf. out_errors ( ) ,
38
40
csum_errors : buf. csum_errors ( ) ,
41
+ out_ratelimit_host : buf. out_ratelimit_host ( ) ,
39
42
} )
40
43
}
41
44
}
@@ -53,5 +56,6 @@ impl Emitable for Icmp6Stats {
53
56
buffer. set_out_msgs ( self . out_msgs ) ;
54
57
buffer. set_out_errors ( self . out_errors ) ;
55
58
buffer. set_csum_errors ( self . csum_errors ) ;
59
+ buffer. set_out_ratelimit_host ( self . out_ratelimit_host ) ;
56
60
}
57
61
}
0 commit comments