我对 RFC7296 第 3.10 节中关于通知有效负载的两段感到困惑。在那里您可以找到以下内容:
o Protocol ID (1 octet) - If this notification concerns an existing
SA whose SPI is given in the SPI field, this field indicates the
type of that SA. For notifications concerning Child SAs, this
field MUST contain either (2) to indicate AH or (3) to indicate
ESP. Of the notifications defined in this document, the SPI is
included only with INVALID_SELECTORS, REKEY_SA, and
CHILD_SA_NOT_FOUND. If the SPI field is empty, this field MUST be
sent as zero and MUST be ignored on receipt.
o SPI Size (1 octet) - Length in octets of the SPI as defined by the
IPsec protocol ID or zero if no SPI is applicable. For a
notification concerning the IKE SA, the SPI Size MUST be zero and
the field must be empty.
我的问题是:关于 IKE SA 的通知有效负载的正确形式是什么?
第二段说对于 IKE SA,SPI 大小必须为零并且 SPI 字段为空,而第一段说当 SPI 字段为空时协议 ID 必须为零。
在 SA 有效负载中,IKE 的协议 ID 为 1,但据我了解以上段落,在通知有效负载中,我必须将其设置为 0。