Hackfut Security File Manager
Current Path:
/usr/include/linux/netfilter
usr
/
include
/
linux
/
netfilter
/
📁
..
📁
ipset
📄
nf_conntrack_common.h
(2.26 KB)
📄
nf_conntrack_ftp.h
(375 B)
📄
nf_conntrack_sctp.h
(623 B)
📄
nf_conntrack_tcp.h
(1.17 KB)
📄
nf_conntrack_tuple_common.h
(295 B)
📄
nfnetlink.h
(1.52 KB)
📄
nfnetlink_compat.h
(2.33 KB)
📄
nfnetlink_conntrack.h
(3.44 KB)
📄
nfnetlink_log.h
(2.46 KB)
📄
nfnetlink_queue.h
(2.2 KB)
📄
x_tables.h
(3.58 KB)
📄
xt_AUDIT.h
(655 B)
📄
xt_CHECKSUM.h
(500 B)
📄
xt_CLASSIFY.h
(154 B)
📄
xt_CONNMARK.h
(737 B)
📄
xt_CONNSECMARK.h
(238 B)
📄
xt_DSCP.h
(634 B)
📄
xt_LED.h
(407 B)
📄
xt_MARK.h
(366 B)
📄
xt_NFLOG.h
(326 B)
📄
xt_NFQUEUE.h
(478 B)
📄
xt_RATEEST.h
(305 B)
📄
xt_SECMARK.h
(591 B)
📄
xt_TCPMSS.h
(172 B)
📄
xt_TCPOPTSTRIP.h
(322 B)
📄
xt_TPROXY.h
(473 B)
📄
xt_cluster.h
(305 B)
📄
xt_comment.h
(176 B)
📄
xt_connbytes.h
(511 B)
📄
xt_connlimit.h
(361 B)
📄
xt_connmark.h
(613 B)
📄
xt_conntrack.h
(2.43 KB)
📄
xt_dccp.h
(420 B)
📄
xt_dscp.h
(638 B)
📄
xt_esp.h
(355 B)
📄
xt_hashlimit.h
(1.7 KB)
📄
xt_helper.h
(125 B)
📄
xt_iprange.h
(489 B)
📄
xt_length.h
(158 B)
📄
xt_limit.h
(610 B)
📄
xt_mac.h
(135 B)
📄
xt_mark.h
(222 B)
📄
xt_multiport.h
(658 B)
📄
xt_osf.h
(3.27 KB)
📄
xt_owner.h
(306 B)
📄
xt_physdev.h
(467 B)
📄
xt_pkttype.h
(125 B)
📄
xt_policy.h
(914 B)
📄
xt_quota.h
(320 B)
📄
xt_rateest.h
(774 B)
📄
xt_realm.h
(157 B)
📄
xt_recent.h
(524 B)
📄
xt_sctp.h
(2.22 KB)
📄
xt_set.h
(1.07 KB)
📄
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
(503 B)
📄
xt_u32.h
(695 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