X7ROOT File Manager
Current Path:
/usr/include/linux/netfilter
usr
/
include
/
linux
/
netfilter
/
📁
..
📁
ipset
📄
nf_conntrack_common.h
(4.09 KB)
📄
nf_conntrack_ftp.h
(375 B)
📄
nf_conntrack_sctp.h
(595 B)
📄
nf_conntrack_tcp.h
(1.24 KB)
📄
nf_conntrack_tuple_common.h
(708 B)
📄
nf_nat.h
(1.12 KB)
📄
nf_tables.h
(31.31 KB)
📄
nf_tables_compat.h
(668 B)
📄
nfnetlink.h
(2.01 KB)
📄
nfnetlink_acct.h
(522 B)
📄
nfnetlink_compat.h
(2.33 KB)
📄
nfnetlink_conntrack.h
(5.42 KB)
📄
nfnetlink_cthelper.h
(1.11 KB)
📄
nfnetlink_cttimeout.h
(2.8 KB)
📄
nfnetlink_log.h
(2.51 KB)
📄
nfnetlink_queue.h
(2.88 KB)
📄
x_tables.h
(4.3 KB)
📄
xt_AUDIT.h
(655 B)
📄
xt_CHECKSUM.h
(500 B)
📄
xt_CLASSIFY.h
(154 B)
📄
xt_CONNMARK.h
(136 B)
📄
xt_CONNSECMARK.h
(238 B)
📄
xt_CT.h
(790 B)
📄
xt_DSCP.h
(634 B)
📄
xt_HMARK.h
(841 B)
📄
xt_IDLETIMER.h
(1.3 KB)
📄
xt_LED.h
(407 B)
📄
xt_LOG.h
(579 B)
📄
xt_MARK.h
(121 B)
📄
xt_NFLOG.h
(326 B)
📄
xt_NFQUEUE.h
(716 B)
📄
xt_RATEEST.h
(305 B)
📄
xt_SECMARK.h
(486 B)
📄
xt_TCPMSS.h
(172 B)
📄
xt_TCPOPTSTRIP.h
(344 B)
📄
xt_TEE.h
(240 B)
📄
xt_TPROXY.h
(483 B)
📄
xt_addrtype.h
(1021 B)
📄
xt_bpf.h
(340 B)
📄
xt_cgroup.h
(149 B)
📄
xt_cluster.h
(311 B)
📄
xt_comment.h
(167 B)
📄
xt_connbytes.h
(514 B)
📄
xt_connlabel.h
(217 B)
📄
xt_connlimit.h
(512 B)
📄
xt_connmark.h
(691 B)
📄
xt_conntrack.h
(2.43 KB)
📄
xt_cpu.h
(136 B)
📄
xt_dccp.h
(420 B)
📄
xt_devgroup.h
(366 B)
📄
xt_dscp.h
(638 B)
📄
xt_ecn.h
(673 B)
📄
xt_esp.h
(355 B)
📄
xt_hashlimit.h
(1.83 KB)
📄
xt_helper.h
(125 B)
📄
xt_iprange.h
(518 B)
📄
xt_ipvs.h
(588 B)
📄
xt_length.h
(158 B)
📄
xt_limit.h
(610 B)
📄
xt_mac.h
(135 B)
📄
xt_mark.h
(197 B)
📄
xt_multiport.h
(658 B)
📄
xt_nfacct.h
(238 B)
📄
xt_osf.h
(3.27 KB)
📄
xt_owner.h
(306 B)
📄
xt_physdev.h
(469 B)
📄
xt_pkttype.h
(125 B)
📄
xt_policy.h
(914 B)
📄
xt_quota.h
(337 B)
📄
xt_rateest.h
(774 B)
📄
xt_realm.h
(157 B)
📄
xt_recent.h
(966 B)
📄
xt_rpfilter.h
(257 B)
📄
xt_sctp.h
(2.22 KB)
📄
xt_set.h
(1.72 KB)
📄
xt_socket.h
(382 B)
📄
xt_state.h
(268 B)
📄
xt_statistic.h
(653 B)
📄
xt_string.h
(601 B)
📄
xt_tcpmss.h
(190 B)
📄
xt_tcpudp.h
(1.16 KB)
📄
xt_time.h
(667 B)
📄
xt_u32.h
(689 B)
Editing: xt_sctp.h
#ifndef _XT_SCTP_H_ #define _XT_SCTP_H_ #include <linux/types.h> #define XT_SCTP_SRC_PORTS 0x01 #define XT_SCTP_DEST_PORTS 0x02 #define XT_SCTP_CHUNK_TYPES 0x04 #define XT_SCTP_VALID_FLAGS 0x07 struct xt_sctp_flag_info { __u8 chunktype; __u8 flag; __u8 flag_mask; }; #define XT_NUM_SCTP_FLAGS 4 struct xt_sctp_info { __u16 dpts[2]; /* Min, Max */ __u16 spts[2]; /* Min, Max */ __u32 chunkmap[256 / sizeof (__u32)]; /* Bit mask of chunks to be matched according to RFC 2960 */ #define SCTP_CHUNK_MATCH_ANY 0x01 /* Match if any of the chunk types are present */ #define SCTP_CHUNK_MATCH_ALL 0x02 /* Match if all of the chunk types are present */ #define SCTP_CHUNK_MATCH_ONLY 0x04 /* Match if these are the only chunk types present */ __u32 chunk_match_type; struct xt_sctp_flag_info flag_info[XT_NUM_SCTP_FLAGS]; int flag_count; __u32 flags; __u32 invflags; }; #define bytes(type) (sizeof(type) * 8) #define SCTP_CHUNKMAP_SET(chunkmap, type) \ do { \ (chunkmap)[type / bytes(__u32)] |= \ 1 << (type % bytes(__u32)); \ } while (0) #define SCTP_CHUNKMAP_CLEAR(chunkmap, type) \ do { \ (chunkmap)[type / bytes(__u32)] &= \ ~(1 << (type % bytes(__u32))); \ } while (0) #define SCTP_CHUNKMAP_IS_SET(chunkmap, type) \ ({ \ ((chunkmap)[type / bytes (__u32)] & \ (1 << (type % bytes (__u32)))) ? 1: 0; \ }) #define SCTP_CHUNKMAP_RESET(chunkmap) \ memset((chunkmap), 0, sizeof(chunkmap)) #define SCTP_CHUNKMAP_SET_ALL(chunkmap) \ memset((chunkmap), ~0U, sizeof(chunkmap)) #define SCTP_CHUNKMAP_COPY(destmap, srcmap) \ memcpy((destmap), (srcmap), sizeof(srcmap)) #define SCTP_CHUNKMAP_IS_CLEAR(chunkmap) \ __sctp_chunkmap_is_clear((chunkmap), ARRAY_SIZE(chunkmap)) static __inline__ bool __sctp_chunkmap_is_clear(const __u32 *chunkmap, unsigned int n) { unsigned int i; for (i = 0; i < n; ++i) if (chunkmap[i]) return false; return true; } #define SCTP_CHUNKMAP_IS_ALL_SET(chunkmap) \ __sctp_chunkmap_is_all_set((chunkmap), ARRAY_SIZE(chunkmap)) static __inline__ bool __sctp_chunkmap_is_all_set(const __u32 *chunkmap, unsigned int n) { unsigned int i; for (i = 0; i < n; ++i) if (chunkmap[i] != ~0U) return false; return true; } #endif /* _XT_SCTP_H_ */
Upload File
Create Folder