mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-04-22 06:13:59 +00:00
ipv6: sr: add missing Kbuild export for header files
Add missing IPv6-SR header files in include/uapi/linux/Kbuild. Also, prevent seg6_lwt_headroom() from being exported and add missing linux/types.h include. Signed-off-by: David Lebrun <david.lebrun@uclouvain.be> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
2d071c643f
commit
a50a05f497
4 changed files with 11 additions and 0 deletions
|
@ -379,6 +379,10 @@ header-y += sctp.h
|
||||||
header-y += sdla.h
|
header-y += sdla.h
|
||||||
header-y += seccomp.h
|
header-y += seccomp.h
|
||||||
header-y += securebits.h
|
header-y += securebits.h
|
||||||
|
header-y += seg6_genl.h
|
||||||
|
header-y += seg6.h
|
||||||
|
header-y += seg6_hmac.h
|
||||||
|
header-y += seg6_iptunnel.h
|
||||||
header-y += selinux_netlink.h
|
header-y += selinux_netlink.h
|
||||||
header-y += sem.h
|
header-y += sem.h
|
||||||
header-y += serial_core.h
|
header-y += serial_core.h
|
||||||
|
|
|
@ -14,6 +14,8 @@
|
||||||
#ifndef _UAPI_LINUX_SEG6_H
|
#ifndef _UAPI_LINUX_SEG6_H
|
||||||
#define _UAPI_LINUX_SEG6_H
|
#define _UAPI_LINUX_SEG6_H
|
||||||
|
|
||||||
|
#include <linux/types.h>
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* SRH
|
* SRH
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
#ifndef _UAPI_LINUX_SEG6_HMAC_H
|
#ifndef _UAPI_LINUX_SEG6_HMAC_H
|
||||||
#define _UAPI_LINUX_SEG6_HMAC_H
|
#define _UAPI_LINUX_SEG6_HMAC_H
|
||||||
|
|
||||||
|
#include <linux/types.h>
|
||||||
#include <linux/seg6.h>
|
#include <linux/seg6.h>
|
||||||
|
|
||||||
#define SEG6_HMAC_SECRET_LEN 64
|
#define SEG6_HMAC_SECRET_LEN 64
|
||||||
|
|
|
@ -33,6 +33,8 @@ enum {
|
||||||
SEG6_IPTUN_MODE_ENCAP,
|
SEG6_IPTUN_MODE_ENCAP,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
#ifdef __KERNEL__
|
||||||
|
|
||||||
static inline size_t seg6_lwt_headroom(struct seg6_iptunnel_encap *tuninfo)
|
static inline size_t seg6_lwt_headroom(struct seg6_iptunnel_encap *tuninfo)
|
||||||
{
|
{
|
||||||
int encap = (tuninfo->mode == SEG6_IPTUN_MODE_ENCAP);
|
int encap = (tuninfo->mode == SEG6_IPTUN_MODE_ENCAP);
|
||||||
|
@ -42,3 +44,5 @@ static inline size_t seg6_lwt_headroom(struct seg6_iptunnel_encap *tuninfo)
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#endif
|
||||||
|
|
Loading…
Add table
Reference in a new issue