Edit File by line
/home/barbar84/public_h.../wp-conte.../plugins/sujqvwi/ShExBy/shex_roo.../usr/include/linux
File: seg6.h
/* SPDX-License-Identifier: GPL-2.0+ WITH Linux-syscall-note */
[0] Fix | Delete
/*
[1] Fix | Delete
* SR-IPv6 implementation
[2] Fix | Delete
*
[3] Fix | Delete
* Author:
[4] Fix | Delete
* David Lebrun <david.lebrun@uclouvain.be>
[5] Fix | Delete
*
[6] Fix | Delete
*
[7] Fix | Delete
* This program is free software; you can redistribute it and/or
[8] Fix | Delete
* modify it under the terms of the GNU General Public License
[9] Fix | Delete
* as published by the Free Software Foundation; either version
[10] Fix | Delete
* 2 of the License, or (at your option) any later version.
[11] Fix | Delete
*/
[12] Fix | Delete
[13] Fix | Delete
#ifndef _LINUX_SEG6_H
[14] Fix | Delete
#define _LINUX_SEG6_H
[15] Fix | Delete
[16] Fix | Delete
#include <linux/types.h>
[17] Fix | Delete
#include <linux/in6.h> /* For struct in6_addr. */
[18] Fix | Delete
[19] Fix | Delete
/*
[20] Fix | Delete
* SRH
[21] Fix | Delete
*/
[22] Fix | Delete
struct ipv6_sr_hdr {
[23] Fix | Delete
__u8 nexthdr;
[24] Fix | Delete
__u8 hdrlen;
[25] Fix | Delete
__u8 type;
[26] Fix | Delete
__u8 segments_left;
[27] Fix | Delete
__u8 first_segment; /* Represents the last_entry field of SRH */
[28] Fix | Delete
__u8 flags;
[29] Fix | Delete
__u16 tag;
[30] Fix | Delete
[31] Fix | Delete
struct in6_addr segments[0];
[32] Fix | Delete
};
[33] Fix | Delete
[34] Fix | Delete
#define SR6_FLAG1_PROTECTED (1 << 6)
[35] Fix | Delete
#define SR6_FLAG1_OAM (1 << 5)
[36] Fix | Delete
#define SR6_FLAG1_ALERT (1 << 4)
[37] Fix | Delete
#define SR6_FLAG1_HMAC (1 << 3)
[38] Fix | Delete
[39] Fix | Delete
#define SR6_TLV_INGRESS 1
[40] Fix | Delete
#define SR6_TLV_EGRESS 2
[41] Fix | Delete
#define SR6_TLV_OPAQUE 3
[42] Fix | Delete
#define SR6_TLV_PADDING 4
[43] Fix | Delete
#define SR6_TLV_HMAC 5
[44] Fix | Delete
[45] Fix | Delete
#define sr_has_hmac(srh) ((srh)->flags & SR6_FLAG1_HMAC)
[46] Fix | Delete
[47] Fix | Delete
struct sr6_tlv {
[48] Fix | Delete
__u8 type;
[49] Fix | Delete
__u8 len;
[50] Fix | Delete
__u8 data[0];
[51] Fix | Delete
};
[52] Fix | Delete
[53] Fix | Delete
#endif
[54] Fix | Delete
[55] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function