Page MenuHomeFreeBSD

Add ESP dummy frames support
ClosedPublic

Authored by aurelien.cazuc.external_stormshield.eu on Nov 26 2019, 9:45 AM.
Tags
None
Referenced Files
Unknown Object (File)
Feb 8 2024, 9:24 PM
Unknown Object (File)
Jan 17 2024, 6:54 PM
Unknown Object (File)
Jan 11 2024, 10:01 PM
Unknown Object (File)
Dec 26 2023, 5:13 AM
Unknown Object (File)
Dec 23 2023, 5:51 PM
Unknown Object (File)
Dec 23 2023, 1:04 AM
Unknown Object (File)
Dec 20 2023, 8:15 PM
Unknown Object (File)
Dec 19 2023, 7:15 AM
Subscribers

Details

Summary

This patch provides support of dummy frames as specified by RFC 4303
Packets with IPPROTO_NONE are silently dropped just before ipsecX_common_input_cb

Test Plan

In manual testing, when generating packets with IPPROTO_NONE as next_header, packets are correctly dropped

Diff Detail

Lint
Lint Skipped
Unit
Tests Skipped

Event Timeline

sys/netipsec/xform_esp.c
629

This indentation does not conform to style(9). I think you can just use

if (lastthree[2] == IPPROTO_NONE)
      goto bad;

the error variable should already be zero.

This revision is now accepted and ready to land.Nov 27 2019, 12:45 AM

Hi @ae ,

Would you prefer commit it yourself or let fabient commit it ?
If you commit it yourself, please mention Stormshield as sponsor.

Thanks