Skip to content

Conversation

@antonyantony
Copy link
Collaborator

This change helps distinguish EESP from ESP on a receiver when using UDP encapsulation. It allows having both EESP and ESP SAs on the same receiver.

For ESP, SPI should start with 0. On Linux, when allocating SPI, i.e. calling XFRM_MSG_ALLOCSPI:

  • struct xfrm_userspi_info->min = 0
  • struct xfrm_userspi_info->max = 2^31

max value = (INT32_MAX - 1) = (2^31 - 1) = 2147483647

@antonyantony antonyantony force-pushed the antony/edit-7-version-4-bits branch from 08e76f8 to 078fae0 Compare January 14, 2025 09:55
This change helps distinguish EESP from ESP on a receiver when using
UDP encapsulation. It allows having both EESP and ESP SAs on the same
receiver.

For ESP, SPI should start with 0. On Linux, when allocating SPI,
i.e. calling XFRM_MSG_ALLOCSPI:
  - struct xfrm_userspi_info->min = 0
  - struct xfrm_userspi_info->max = 2^31

max value = (INT32_MAX - 1) = (2^31 - 1) = 2147483647
@antonyantony antonyantony force-pushed the antony/edit-7-version-4-bits branch from 078fae0 to caedfba Compare January 20, 2025 16:19
@klassert klassert merged commit 6f317c5 into main Jan 21, 2025
1 check passed
@antonyantony antonyantony deleted the antony/edit-7-version-4-bits branch February 24, 2025 14:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants