forked from jsimonetti/rtnetlink
-
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.
This commit introduces the LinkNetkit type into LinkAttributes, facilitating Netkit data's encoding to and decoding from the LinkInfo.Data field. This addition prioritizes backward compatibility and introduces necessary condition checks. For decoding, if the LinkInfo kind is netkit, the data within LinkInfo.Data is decoded to the Netkit field. During encoding, Netkit data is encoded into LinkInfo.Data with LinkInfo.Kind set as netkit. Concurrent settings of LinkInfo and Netkit during encoding trigger an error to maintain integrity. Signed-off-by: Birol Bilgin <[email protected]>
- Loading branch information
Showing
3 changed files
with
106 additions
and
0 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