/
usr
/
include
/
linux
/
netfilter
/
/usr/include/linux/netfilter
mkdir
upload
Name
Size
Mode
Actions
ipset/
-
0755
rm
nfnetlink.h
1557
0644
edit
dl
rm
nfnetlink_compat.h
2381
0644
edit
dl
rm
nfnetlink_conntrack.h
3526
0644
edit
dl
rm
nfnetlink_log.h
2517
0644
edit
dl
rm
nfnetlink_queue.h
2251
0644
edit
dl
rm
nf_conntrack_common.h
2315
0644
edit
dl
rm
nf_conntrack_ftp.h
375
0644
edit
dl
rm
nf_conntrack_sctp.h
623
0644
edit
dl
rm
nf_conntrack_tcp.h
1199
0644
edit
dl
rm
nf_conntrack_tuple_common.h
295
0644
edit
dl
rm
xt_AUDIT.h
655
0644
edit
dl
rm
xt_CHECKSUM.h
500
0644
edit
dl
rm
xt_CLASSIFY.h
154
0644
edit
dl
rm
xt_cluster.h
305
0644
edit
dl
rm
xt_comment.h
176
0644
edit
dl
rm
xt_connbytes.h
511
0644
edit
dl
rm
xt_connlimit.h
361
0644
edit
dl
rm
xt_CONNMARK.h
737
0644
edit
dl
rm
xt_connmark.h
613
0644
edit
dl
rm
xt_CONNSECMARK.h
238
0644
edit
dl
rm
xt_conntrack.h
2485
0644
edit
dl
rm
xt_dccp.h
420
0644
edit
dl
rm
xt_DSCP.h
634
0644
edit
dl
rm
xt_dscp.h
638
0644
edit
dl
rm
xt_esp.h
355
0644
edit
dl
rm
xt_hashlimit.h
1742
0644
edit
dl
rm
xt_helper.h
125
0644
edit
dl
rm
xt_iprange.h
489
0644
edit
dl
rm
xt_LED.h
407
0644
edit
dl
rm
xt_length.h
158
0644
edit
dl
rm
xt_limit.h
610
0644
edit
dl
rm
xt_mac.h
135
0644
edit
dl
rm
xt_MARK.h
366
0644
edit
dl
rm
xt_mark.h
222
0644
edit
dl
rm
xt_multiport.h
658
0644
edit
dl
rm
xt_NFLOG.h
326
0644
edit
dl
rm
xt_NFQUEUE.h
478
0644
edit
dl
rm
xt_osf.h
3347
0644
edit
dl
rm
xt_owner.h
306
0644
edit
dl
rm
xt_physdev.h
467
0644
edit
dl
rm
xt_pkttype.h
125
0644
edit
dl
rm
xt_policy.h
914
0644
edit
dl
rm
xt_quota.h
320
0644
edit
dl
rm
xt_RATEEST.h
305
0644
edit
dl
rm
xt_rateest.h
774
0644
edit
dl
rm
xt_realm.h
157
0644
edit
dl
rm
xt_recent.h
524
0644
edit
dl
rm
xt_sctp.h
2275
0644
edit
dl
rm
xt_SECMARK.h
591
0644
edit
dl
rm
xt_set.h
1100
0644
edit
dl
rm
xt_state.h
268
0644
edit
dl
rm
xt_statistic.h
653
0644
edit
dl
rm
xt_string.h
601
0644
edit
dl
rm
xt_TCPMSS.h
172
0644
edit
dl
rm
xt_tcpmss.h
190
0644
edit
dl
rm
xt_TCPOPTSTRIP.h
322
0644
edit
dl
rm
xt_tcpudp.h
1187
0644
edit
dl
rm
xt_time.h
503
0644
edit
dl
rm
xt_TPROXY.h
473
0644
edit
dl
rm
xt_u32.h
695
0644
edit
dl
rm
x_tables.h
3668
0644
edit
dl
rm
Edit:
/usr/include/linux/netfilter/xt_sctp.h
(2275B)
#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_ */
Save
cmd:
run