瀏覽代碼

Add comment for payload len

thegreathir 1 年之前
父節點
當前提交
8bdfed6220
共有 1 個文件被更改,包括 1 次插入0 次删除
  1. 1 0
      src/wire/ipsec_ah.rs

+ 1 - 0
src/wire/ipsec_ah.rs

@@ -34,6 +34,7 @@ mod field {
     pub const SEQUENCE_NUMBER: Field = 8..12;
 
     pub const fn ICV(payload_len: u8) -> Field {
+        // The `payload_len` is the length of this Authentication Header in 4-octet units, minus 2.
         let header_len = (payload_len as usize + 2) * 4;
 
         SEQUENCE_NUMBER.end..header_len