forked from richardcochran/linuxptp
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
sad: introduce sad_append_auth_tlv() and sad_generate_icv()
sad_append_auth_tlv() will append an authentication tlv as specified by the security association corresponding to the passed spp. After attached, msg_pre_send() is called to put message in network byte order and sad_generate_icv() is called to populate the icv field in the tlv. the allow_mutable flag will set the correction field to 0 before generating the icv to allow for configurations where on path auth tlv support is not present. Signed-off-by: Clay Kaiser <Clay.Kaiser@ibm.com> Reviewed-by: Erez Geva <ErezGeva2@gmail.com> Reviewed-by: Miroslav Lichvar <mlichvar@redhat.com>
- Loading branch information
1 parent
e2e3aa0
commit d9e70b0
Showing
3 changed files
with
127 additions
and
3 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