Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merge ipsec into next (2018.10) #1382

Merged
merged 33 commits into from
Oct 25, 2019
Merged

Merge ipsec into next (2018.10) #1382

merged 33 commits into from
Oct 25, 2019

Conversation

eugeneia
Copy link
Member

Includes #1381 and #1314

Cc @lukego

eugeneia added 20 commits March 29, 2018 13:30
This adds a simple ESP 6in6 tunnel app (Tunnel6) to apps.ipsec.esp, and also
renames the transport mode app (AES18GCM -> Transport6) to match the naming.

The apps.ipsec Linux interoperability test is extended to exercise tunnel mode
as well.
...for transport mode when run without an explicit mode.
 * add a note that explains performance differences between esp transport and
   tunnel modes

 * explicitly return a single value from `decap' in tunnel mode (because of
   that thing where LuaJIT can trip over this)

...these changes are mostly notes to prevent future selfs from wondering about
this again.
This avoids the potentially significant overhead of the lib.protocol.header
abstractions during ESP encapsulation by using raw FFI casts instead.
Support the one mandatory ICV length, RFC4106 says:

  Implementations MUST support a full-length 16-octet ICV, and MAY support
  8 or 12 octet ICVs, and MUST NOT support other ICV lengths.

Also use the chance to use standard AEAD indentifers to denote the supported
AEAD, as per ietf-ipsec@2018-01-08.yang schema.
Saves some cycles during encapsulation by specializing the padding function for
power of two alignments.
@lukego
Copy link
Member

lukego commented Jan 3, 2019

This ready to merge?

@eugeneia
Copy link
Member Author

eugeneia commented Jan 4, 2019

Yes this is good to go.

eugeneia added a commit that referenced this pull request Jul 17, 2019
@lukego lukego merged commit fa7a61f into next Oct 25, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants