1 /* 2 * This file is auto-generated. Modifications will be lost. 3 * 4 * See https://android.googlesource.com/platform/bionic/+/master/libc/kernel/ 5 * for more information. 6 */ 7 #ifndef _UAPI_LINUX_SEG6_HMAC_H 8 #define _UAPI_LINUX_SEG6_HMAC_H 9 #include <linux/types.h> 10 #include <linux/seg6.h> 11 #define SEG6_HMAC_SECRET_LEN 64 12 #define SEG6_HMAC_FIELD_LEN 32 13 struct sr6_tlv_hmac { 14 struct sr6_tlv tlvhdr; 15 __u16 reserved; 16 __be32 hmackeyid; 17 __u8 hmac[SEG6_HMAC_FIELD_LEN]; 18 }; 19 enum { 20 SEG6_HMAC_ALGO_SHA1 = 1, 21 SEG6_HMAC_ALGO_SHA256 = 2, 22 }; 23 #endif 24