1 /* SPDX-License-Identifier: GPL-2.0 WITH Linux 1 /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ 2 #ifndef _UAPI_LINUX_SEG6_HMAC_H 2 #ifndef _UAPI_LINUX_SEG6_HMAC_H 3 #define _UAPI_LINUX_SEG6_HMAC_H 3 #define _UAPI_LINUX_SEG6_HMAC_H 4 4 5 #include <linux/types.h> 5 #include <linux/types.h> 6 #include <linux/seg6.h> 6 #include <linux/seg6.h> 7 7 8 #define SEG6_HMAC_SECRET_LEN 64 8 #define SEG6_HMAC_SECRET_LEN 64 9 #define SEG6_HMAC_FIELD_LEN 32 9 #define SEG6_HMAC_FIELD_LEN 32 10 10 11 struct sr6_tlv_hmac { 11 struct sr6_tlv_hmac { 12 struct sr6_tlv tlvhdr; 12 struct sr6_tlv tlvhdr; 13 __u16 reserved; 13 __u16 reserved; 14 __be32 hmackeyid; 14 __be32 hmackeyid; 15 __u8 hmac[SEG6_HMAC_FIELD_LEN]; 15 __u8 hmac[SEG6_HMAC_FIELD_LEN]; 16 }; 16 }; 17 17 18 enum { 18 enum { 19 SEG6_HMAC_ALGO_SHA1 = 1, 19 SEG6_HMAC_ALGO_SHA1 = 1, 20 SEG6_HMAC_ALGO_SHA256 = 2, 20 SEG6_HMAC_ALGO_SHA256 = 2, 21 }; 21 }; 22 22 23 #endif 23 #endif 24 24
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.