blob: 1d44e61a0834e6c7676bb066526be623d1f96531 [file] [log] [blame]
Elliott Hughes180edef2023-11-02 00:08:05 +00001/*
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 */
Christopher Ferris48af7cb2017-02-21 12:35:09 -08007#ifndef _UAPI_LINUX_SEG6_HMAC_H
8#define _UAPI_LINUX_SEG6_HMAC_H
Christopher Ferris525ce912017-07-26 13:12:53 -07009#include <linux/types.h>
Christopher Ferris48af7cb2017-02-21 12:35:09 -080010#include <linux/seg6.h>
11#define SEG6_HMAC_SECRET_LEN 64
Christopher Ferris48af7cb2017-02-21 12:35:09 -080012#define SEG6_HMAC_FIELD_LEN 32
13struct sr6_tlv_hmac {
14 struct sr6_tlv tlvhdr;
15 __u16 reserved;
Christopher Ferris48af7cb2017-02-21 12:35:09 -080016 __be32 hmackeyid;
17 __u8 hmac[SEG6_HMAC_FIELD_LEN];
18};
19enum {
Christopher Ferris48af7cb2017-02-21 12:35:09 -080020 SEG6_HMAC_ALGO_SHA1 = 1,
21 SEG6_HMAC_ALGO_SHA256 = 2,
22};
23#endif