commit d1edce71135cc6d98c0a4b5729774542b676e769 Author: sophgo-forum-service <forum_service@sophgo.com> Date: Fri Mar 15 16:07:33 2024 +0800 [fix] recommend using ssh method to clone repo. [fix] fix sensor driver repo branch name.
24 lines
433 B
C
24 lines
433 B
C
/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
|
|
#ifndef _UAPI_LINUX_SEG6_HMAC_H
|
|
#define _UAPI_LINUX_SEG6_HMAC_H
|
|
|
|
#include <linux/types.h>
|
|
#include <linux/seg6.h>
|
|
|
|
#define SEG6_HMAC_SECRET_LEN 64
|
|
#define SEG6_HMAC_FIELD_LEN 32
|
|
|
|
struct sr6_tlv_hmac {
|
|
struct sr6_tlv tlvhdr;
|
|
__u16 reserved;
|
|
__be32 hmackeyid;
|
|
__u8 hmac[SEG6_HMAC_FIELD_LEN];
|
|
};
|
|
|
|
enum {
|
|
SEG6_HMAC_ALGO_SHA1 = 1,
|
|
SEG6_HMAC_ALGO_SHA256 = 2,
|
|
};
|
|
|
|
#endif
|