Linux web-conference.aiou.edu.pk 5.4.0-204-generic #224-Ubuntu SMP Thu Dec 5 13:38:28 UTC 2024 x86_64
Apache/2.4.41 (Ubuntu)
: 172.16.50.247 | : 3.147.56.11
Cant Read [ /etc/named.conf ]
7.4.3-4ubuntu2.28
appadmin
www.github.com/MadExploits
Terminal
AUTO ROOT
Adminer
Backdoor Destroyer
Linux Exploit
Lock Shell
Lock File
Create User
CREATE RDP
PHP Mailer
BACKCONNECT
UNLOCK SHELL
HASH IDENTIFIER
CPANEL RESET
CREATE WP USER
BLACK DEFEND!
README
+ Create Folder
+ Create File
/
usr /
src /
linux-headers-5.4.0-204 /
include /
net /
[ HOME SHELL ]
Name
Size
Permission
Action
9p
[ DIR ]
drwxr-xr-x
bluetooth
[ DIR ]
drwxr-xr-x
caif
[ DIR ]
drwxr-xr-x
iucv
[ DIR ]
drwxr-xr-x
netfilter
[ DIR ]
drwxr-xr-x
netns
[ DIR ]
drwxr-xr-x
nfc
[ DIR ]
drwxr-xr-x
phonet
[ DIR ]
drwxr-xr-x
sctp
[ DIR ]
drwxr-xr-x
tc_act
[ DIR ]
drwxr-xr-x
6lowpan.h
10.03
KB
-rw-r--r--
Space.h
1.07
KB
-rw-r--r--
act_api.h
6.98
KB
-rw-r--r--
addrconf.h
14.1
KB
-rw-r--r--
af_ieee802154.h
1.19
KB
-rw-r--r--
af_rxrpc.h
2.65
KB
-rw-r--r--
af_unix.h
2.59
KB
-rw-r--r--
af_vsock.h
6.8
KB
-rw-r--r--
ah.h
382
B
-rw-r--r--
arp.h
2.09
KB
-rw-r--r--
atmclip.h
1.48
KB
-rw-r--r--
ax25.h
15.08
KB
-rw-r--r--
ax88796.h
1.31
KB
-rw-r--r--
bond_3ad.h
9.44
KB
-rw-r--r--
bond_alb.h
5.92
KB
-rw-r--r--
bond_options.h
3.74
KB
-rw-r--r--
bonding.h
19.63
KB
-rw-r--r--
bpf_sk_storage.h
558
B
-rw-r--r--
busy_poll.h
3.23
KB
-rw-r--r--
calipso.h
1.55
KB
-rw-r--r--
cfg80211-wext.h
1.81
KB
-rw-r--r--
cfg80211.h
265.02
KB
-rw-r--r--
cfg802154.h
10.51
KB
-rw-r--r--
checksum.h
4.67
KB
-rw-r--r--
cipso_ipv4.h
7.61
KB
-rw-r--r--
cls_cgroup.h
1.94
KB
-rw-r--r--
codel.h
5.65
KB
-rw-r--r--
codel_impl.h
7.98
KB
-rw-r--r--
codel_qdisc.h
2.9
KB
-rw-r--r--
compat.h
1.44
KB
-rw-r--r--
datalink.h
619
B
-rw-r--r--
dcbevent.h
742
B
-rw-r--r--
dcbnl.h
4.22
KB
-rw-r--r--
devlink.h
33.11
KB
-rw-r--r--
drop_monitor.h
788
B
-rw-r--r--
dsa.h
19.45
KB
-rw-r--r--
dsfield.h
1.11
KB
-rw-r--r--
dst.h
13.23
KB
-rw-r--r--
dst_cache.h
2.54
KB
-rw-r--r--
dst_metadata.h
5.39
KB
-rw-r--r--
dst_ops.h
2.08
KB
-rw-r--r--
erspan.h
8.96
KB
-rw-r--r--
esp.h
877
B
-rw-r--r--
ethoc.h
391
B
-rw-r--r--
failover.h
1.15
KB
-rw-r--r--
fib_notifier.h
1.28
KB
-rw-r--r--
fib_rules.h
5.48
KB
-rw-r--r--
firewire.h
636
B
-rw-r--r--
flow.h
5.92
KB
-rw-r--r--
flow_dissector.h
8.99
KB
-rw-r--r--
flow_offload.h
10.72
KB
-rw-r--r--
fou.h
549
B
-rw-r--r--
fq.h
2.7
KB
-rw-r--r--
fq_impl.h
7
KB
-rw-r--r--
garp.h
2.62
KB
-rw-r--r--
gen_stats.h
2.7
KB
-rw-r--r--
genetlink.h
12.24
KB
-rw-r--r--
geneve.h
1.85
KB
-rw-r--r--
gre.h
3.3
KB
-rw-r--r--
gro_cells.h
443
B
-rw-r--r--
gtp.h
633
B
-rw-r--r--
gue.h
3.23
KB
-rw-r--r--
hwbm.h
969
B
-rw-r--r--
icmp.h
1.81
KB
-rw-r--r--
ieee80211_radiotap.h
13.04
KB
-rw-r--r--
ieee802154_netdev.h
9.86
KB
-rw-r--r--
if_inet6.h
6.19
KB
-rw-r--r--
ife.h
1.03
KB
-rw-r--r--
ila.h
291
B
-rw-r--r--
inet6_connection_sock.h
765
B
-rw-r--r--
inet6_hashtables.h
3.45
KB
-rw-r--r--
inet_common.h
2.27
KB
-rw-r--r--
inet_connection_sock.h
11.4
KB
-rw-r--r--
inet_ecn.h
7.5
KB
-rw-r--r--
inet_frag.h
4.9
KB
-rw-r--r--
inet_hashtables.h
13.77
KB
-rw-r--r--
inet_sock.h
9.48
KB
-rw-r--r--
inet_timewait_sock.h
3.65
KB
-rw-r--r--
inetpeer.h
3.29
KB
-rw-r--r--
ip.h
21.92
KB
-rw-r--r--
ip6_checksum.h
2.69
KB
-rw-r--r--
ip6_fib.h
13.23
KB
-rw-r--r--
ip6_route.h
9.89
KB
-rw-r--r--
ip6_tunnel.h
4.98
KB
-rw-r--r--
ip_fib.h
13.57
KB
-rw-r--r--
ip_tunnels.h
14.69
KB
-rw-r--r--
ip_vs.h
48.06
KB
-rw-r--r--
ipcomp.h
659
B
-rw-r--r--
ipconfig.h
811
B
-rw-r--r--
ipv6.h
32.75
KB
-rw-r--r--
ipv6_frag.h
2.65
KB
-rw-r--r--
ipv6_stubs.h
2.74
KB
-rw-r--r--
ipx.h
4.28
KB
-rw-r--r--
iw_handler.h
20.91
KB
-rw-r--r--
kcm.h
4.84
KB
-rw-r--r--
l3mdev.h
6.14
KB
-rw-r--r--
lag.h
409
B
-rw-r--r--
lapb.h
4.75
KB
-rw-r--r--
lib80211.h
3.92
KB
-rw-r--r--
llc.h
4.41
KB
-rw-r--r--
llc_c_ac.h
9.31
KB
-rw-r--r--
llc_c_ev.h
10.68
KB
-rw-r--r--
llc_c_st.h
1.72
KB
-rw-r--r--
llc_conn.h
4.06
KB
-rw-r--r--
llc_if.h
2.16
KB
-rw-r--r--
llc_pdu.h
14.35
KB
-rw-r--r--
llc_s_ac.h
1.55
KB
-rw-r--r--
llc_s_ev.h
2.2
KB
-rw-r--r--
llc_s_st.h
947
B
-rw-r--r--
llc_sap.h
1.08
KB
-rw-r--r--
lwtunnel.h
6.54
KB
-rw-r--r--
mac80211.h
250.97
KB
-rw-r--r--
mac802154.h
14.88
KB
-rw-r--r--
mip6.h
1017
B
-rw-r--r--
mld.h
2.8
KB
-rw-r--r--
mpls.h
535
B
-rw-r--r--
mpls_iptunnel.h
430
B
-rw-r--r--
mrp.h
3.05
KB
-rw-r--r--
ncsi.h
1.92
KB
-rw-r--r--
ndisc.h
14.77
KB
-rw-r--r--
neighbour.h
15.75
KB
-rw-r--r--
net_failover.h
1023
B
-rw-r--r--
net_namespace.h
11.96
KB
-rw-r--r--
net_ratelimit.h
220
B
-rw-r--r--
netevent.h
1.02
KB
-rw-r--r--
netlabel.h
20.14
KB
-rw-r--r--
netlink.h
56.77
KB
-rw-r--r--
netprio_cgroup.h
1.03
KB
-rw-r--r--
netrom.h
7.71
KB
-rw-r--r--
nexthop.h
7.58
KB
-rw-r--r--
nl802154.h
12.09
KB
-rw-r--r--
nsh.h
12.31
KB
-rw-r--r--
p8022.h
447
B
-rw-r--r--
page_pool.h
6.46
KB
-rw-r--r--
ping.h
2.9
KB
-rw-r--r--
pkt_cls.h
19.61
KB
-rw-r--r--
pkt_sched.h
4.61
KB
-rw-r--r--
pptp.h
557
B
-rw-r--r--
protocol.h
3.82
KB
-rw-r--r--
psample.h
888
B
-rw-r--r--
psnap.h
351
B
-rw-r--r--
raw.h
2.09
KB
-rw-r--r--
rawv6.h
854
B
-rw-r--r--
red.h
10.45
KB
-rw-r--r--
regulatory.h
10.89
KB
-rw-r--r--
request_sock.h
6.37
KB
-rw-r--r--
rose.h
7.62
KB
-rw-r--r--
route.h
10.87
KB
-rw-r--r--
rsi_91x.h
1.67
KB
-rw-r--r--
rtnetlink.h
6.28
KB
-rw-r--r--
rtnh.h
859
B
-rw-r--r--
sch_generic.h
33.09
KB
-rw-r--r--
scm.h
3.75
KB
-rw-r--r--
secure_seq.h
855
B
-rw-r--r--
seg6.h
1.57
KB
-rw-r--r--
seg6_hmac.h
1.44
KB
-rw-r--r--
seg6_local.h
644
B
-rw-r--r--
slhc_vj.h
6.67
KB
-rw-r--r--
smc.h
2.18
KB
-rw-r--r--
snmp.h
5.02
KB
-rw-r--r--
sock.h
75.38
KB
-rw-r--r--
sock_reuseport.h
1.58
KB
-rw-r--r--
stp.h
383
B
-rw-r--r--
strparser.h
4.03
KB
-rw-r--r--
switchdev.h
8
KB
-rw-r--r--
tcp.h
70.49
KB
-rw-r--r--
tcp_states.h
1.2
KB
-rw-r--r--
timewait_sock.h
925
B
-rw-r--r--
tipc.h
2.35
KB
-rw-r--r--
tls.h
19.86
KB
-rw-r--r--
transp_v6.h
2.05
KB
-rw-r--r--
tso.h
515
B
-rw-r--r--
tun_proto.h
988
B
-rw-r--r--
udp.h
14.71
KB
-rw-r--r--
udp_tunnel.h
5.37
KB
-rw-r--r--
udplite.h
3.67
KB
-rw-r--r--
vsock_addr.h
657
B
-rw-r--r--
vxlan.h
13.45
KB
-rw-r--r--
wext.h
1.47
KB
-rw-r--r--
wimax.h
19.36
KB
-rw-r--r--
x25.h
9.43
KB
-rw-r--r--
x25device.h
387
B
-rw-r--r--
xdp.h
5.32
KB
-rw-r--r--
xdp_priv.h
446
B
-rw-r--r--
xdp_sock.h
8.26
KB
-rw-r--r--
xfrm.h
53.07
KB
-rw-r--r--
Delete
Unzip
Zip
${this.title}
Close
Code Editor : erspan.h
#ifndef __LINUX_ERSPAN_H #define __LINUX_ERSPAN_H /* * GRE header for ERSPAN type I encapsulation (4 octets [34:37]) * 0 1 2 3 * 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 * +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ * |0|0|0|0|0|00000|000000000|00000| Protocol Type for ERSPAN | * +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ * * The Type I ERSPAN frame format is based on the barebones IP + GRE * encapsulation (as described above) on top of the raw mirrored frame. * There is no extra ERSPAN header. * * * GRE header for ERSPAN type II and II encapsulation (8 octets [34:41]) * 0 1 2 3 * 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 * +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ * |0|0|0|1|0|00000|000000000|00000| Protocol Type for ERSPAN | * +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ * | Sequence Number (increments per packet per session) | * +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ * * Note that in the above GRE header [RFC1701] out of the C, R, K, S, * s, Recur, Flags, Version fields only S (bit 03) is set to 1. The * other fields are set to zero, so only a sequence number follows. * * ERSPAN Version 1 (Type II) header (8 octets [42:49]) * 0 1 2 3 * 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 * +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ * | Ver | VLAN | COS | En|T| Session ID | * +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ * | Reserved | Index | * +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ * * * ERSPAN Version 2 (Type III) header (12 octets [42:49]) * 0 1 2 3 * 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 * +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ * | Ver | VLAN | COS |BSO|T| Session ID | * +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ * | Timestamp | * +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ * | SGT |P| FT | Hw ID |D|Gra|O| * +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ * * Platform Specific SubHeader (8 octets, optional) * +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ * | Platf ID | Platform Specific Info | * +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ * | Platform Specific Info | * +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ * * GRE proto ERSPAN type I/II = 0x88BE, type III = 0x22EB */ #include <uapi/linux/erspan.h> #define ERSPAN_VERSION 0x1 /* ERSPAN type II */ #define VER_MASK 0xf000 #define VLAN_MASK 0x0fff #define COS_MASK 0xe000 #define EN_MASK 0x1800 #define T_MASK 0x0400 #define ID_MASK 0x03ff #define INDEX_MASK 0xfffff #define ERSPAN_VERSION2 0x2 /* ERSPAN type III*/ #define BSO_MASK EN_MASK #define SGT_MASK 0xffff0000 #define P_MASK 0x8000 #define FT_MASK 0x7c00 #define HWID_MASK 0x03f0 #define DIR_MASK 0x0008 #define GRA_MASK 0x0006 #define O_MASK 0x0001 #define HWID_OFFSET 4 #define DIR_OFFSET 3 enum erspan_encap_type { ERSPAN_ENCAP_NOVLAN = 0x0, /* originally without VLAN tag */ ERSPAN_ENCAP_ISL = 0x1, /* originally ISL encapsulated */ ERSPAN_ENCAP_8021Q = 0x2, /* originally 802.1Q encapsulated */ ERSPAN_ENCAP_INFRAME = 0x3, /* VLAN tag perserved in frame */ }; #define ERSPAN_V1_MDSIZE 4 #define ERSPAN_V2_MDSIZE 8 struct erspan_base_hdr { #if defined(__LITTLE_ENDIAN_BITFIELD) __u8 vlan_upper:4, ver:4; __u8 vlan:8; __u8 session_id_upper:2, t:1, en:2, cos:3; __u8 session_id:8; #elif defined(__BIG_ENDIAN_BITFIELD) __u8 ver: 4, vlan_upper:4; __u8 vlan:8; __u8 cos:3, en:2, t:1, session_id_upper:2; __u8 session_id:8; #else #error "Please fix <asm/byteorder.h>" #endif }; static inline void set_session_id(struct erspan_base_hdr *ershdr, u16 id) { ershdr->session_id = id & 0xff; ershdr->session_id_upper = (id >> 8) & 0x3; } static inline u16 get_session_id(const struct erspan_base_hdr *ershdr) { return (ershdr->session_id_upper << 8) + ershdr->session_id; } static inline void set_vlan(struct erspan_base_hdr *ershdr, u16 vlan) { ershdr->vlan = vlan & 0xff; ershdr->vlan_upper = (vlan >> 8) & 0xf; } static inline u16 get_vlan(const struct erspan_base_hdr *ershdr) { return (ershdr->vlan_upper << 8) + ershdr->vlan; } static inline void set_hwid(struct erspan_md2 *md2, u8 hwid) { md2->hwid = hwid & 0xf; md2->hwid_upper = (hwid >> 4) & 0x3; } static inline u8 get_hwid(const struct erspan_md2 *md2) { return (md2->hwid_upper << 4) + md2->hwid; } static inline int erspan_hdr_len(int version) { if (version == 0) return 0; return sizeof(struct erspan_base_hdr) + (version == 1 ? ERSPAN_V1_MDSIZE : ERSPAN_V2_MDSIZE); } static inline u8 tos_to_cos(u8 tos) { u8 dscp, cos; dscp = tos >> 2; cos = dscp >> 3; return cos; } static inline void erspan_build_header(struct sk_buff *skb, u32 id, u32 index, bool truncate, bool is_ipv4) { struct ethhdr *eth = (struct ethhdr *)skb->data; enum erspan_encap_type enc_type; struct erspan_base_hdr *ershdr; struct qtag_prefix { __be16 eth_type; __be16 tci; } *qp; u16 vlan_tci = 0; u8 tos; __be32 *idx; tos = is_ipv4 ? ip_hdr(skb)->tos : (ipv6_hdr(skb)->priority << 4) + (ipv6_hdr(skb)->flow_lbl[0] >> 4); enc_type = ERSPAN_ENCAP_NOVLAN; /* If mirrored packet has vlan tag, extract tci and * perserve vlan header in the mirrored frame. */ if (eth->h_proto == htons(ETH_P_8021Q)) { qp = (struct qtag_prefix *)(skb->data + 2 * ETH_ALEN); vlan_tci = ntohs(qp->tci); enc_type = ERSPAN_ENCAP_INFRAME; } skb_push(skb, sizeof(*ershdr) + ERSPAN_V1_MDSIZE); ershdr = (struct erspan_base_hdr *)skb->data; memset(ershdr, 0, sizeof(*ershdr) + ERSPAN_V1_MDSIZE); /* Build base header */ ershdr->ver = ERSPAN_VERSION; ershdr->cos = tos_to_cos(tos); ershdr->en = enc_type; ershdr->t = truncate; set_vlan(ershdr, vlan_tci); set_session_id(ershdr, id); /* Build metadata */ idx = (__be32 *)(ershdr + 1); *idx = htonl(index & INDEX_MASK); } /* ERSPAN GRA: timestamp granularity * 00b --> granularity = 100 microseconds * 01b --> granularity = 100 nanoseconds * 10b --> granularity = IEEE 1588 * Here we only support 100 microseconds. */ static inline __be32 erspan_get_timestamp(void) { u64 h_usecs; ktime_t kt; kt = ktime_get_real(); h_usecs = ktime_divns(kt, 100 * NSEC_PER_USEC); /* ERSPAN base header only has 32-bit, * so it wraps around 4 days. */ return htonl((u32)h_usecs); } /* ERSPAN BSO (Bad/Short/Oversized), see RFC1757 * 00b --> Good frame with no error, or unknown integrity * 01b --> Payload is a Short Frame * 10b --> Payload is an Oversized Frame * 11b --> Payload is a Bad Frame with CRC or Alignment Error */ enum erspan_bso { BSO_NOERROR = 0x0, BSO_SHORT = 0x1, BSO_OVERSIZED = 0x2, BSO_BAD = 0x3, }; static inline u8 erspan_detect_bso(struct sk_buff *skb) { /* BSO_BAD is not handled because the frame CRC * or alignment error information is in FCS. */ if (skb->len < ETH_ZLEN) return BSO_SHORT; if (skb->len > ETH_FRAME_LEN) return BSO_OVERSIZED; return BSO_NOERROR; } static inline void erspan_build_header_v2(struct sk_buff *skb, u32 id, u8 direction, u16 hwid, bool truncate, bool is_ipv4) { struct ethhdr *eth = (struct ethhdr *)skb->data; struct erspan_base_hdr *ershdr; struct erspan_md2 *md2; struct qtag_prefix { __be16 eth_type; __be16 tci; } *qp; u16 vlan_tci = 0; u8 gra = 0; /* 100 usec */ u8 bso = 0; /* Bad/Short/Oversized */ u8 sgt = 0; u8 tos; tos = is_ipv4 ? ip_hdr(skb)->tos : (ipv6_hdr(skb)->priority << 4) + (ipv6_hdr(skb)->flow_lbl[0] >> 4); /* Unlike v1, v2 does not have En field, * so only extract vlan tci field. */ if (eth->h_proto == htons(ETH_P_8021Q)) { qp = (struct qtag_prefix *)(skb->data + 2 * ETH_ALEN); vlan_tci = ntohs(qp->tci); } bso = erspan_detect_bso(skb); skb_push(skb, sizeof(*ershdr) + ERSPAN_V2_MDSIZE); ershdr = (struct erspan_base_hdr *)skb->data; memset(ershdr, 0, sizeof(*ershdr) + ERSPAN_V2_MDSIZE); /* Build base header */ ershdr->ver = ERSPAN_VERSION2; ershdr->cos = tos_to_cos(tos); ershdr->en = bso; ershdr->t = truncate; set_vlan(ershdr, vlan_tci); set_session_id(ershdr, id); /* Build metadata */ md2 = (struct erspan_md2 *)(ershdr + 1); md2->timestamp = erspan_get_timestamp(); md2->sgt = htons(sgt); md2->p = 1; md2->ft = 0; md2->dir = direction; md2->gra = gra; md2->o = 0; set_hwid(md2, hwid); } #endif
Close