-
Notifications
You must be signed in to change notification settings - Fork 162
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add adapters for converting slayers data to app data (#3809)
Add decoders and serializers going from SCION v2 header raw data to spkt.ScnPkt and spath.Path.The APIs are identical to the SCION v1 header raw data decoders and serializers, making switching to them trivial. Also adds the header_v2 feature flag, which should be used by application that want to switch in code between SCION header V1 and V2. Performance is not optimized, and the new adapters are expected to put a fair bit of pressure on the GC. Also: - Make decoding benchmarks in slayers stop on errors; this fixes an issue where decoding was silently stopping very early (after the SCION header) due to a missing CanDecode property; the performance impact of the additional parsing is negligible - slayers SCION/UDP layer now parses the SCION/UDP gopacket layer instead of UDP - slayers documentation includes payload extraction Co-authored-by: Sergiu Costea <sergiu.costea@gmail.com>
- Loading branch information
Showing
12 changed files
with
330 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.