⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢀⣀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀ ⠀⠀⠀⠀⠀⠀⠀⠀⢠⣴⣿⣿⣿⣷⣼⣿⠀⣴⠾⠷⠶⠦⡄⠀⠀⠀⠀⠀⠀ ⠀⠀⠀⠀⢠⡤⢶⣦⣾⣿⣿⣿⣿⣿⣿⣿⠀⣿⣶⣶⣦⣄⠳⣤⣤⠄⠀⠀⠀ ⠀⠀⠀⢀⣼⣳⡿⢻⣿⣿⣿⣿⣿⣿⣿⣿⣶⣿⣿⣗⠈⠙⠻⣶⣄⡀⠀⠀⠀ ⠀⠀⠀⣰⠿⠁⢀⣼⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣷⡄⠀⠀⠈⠳⣤⠀⠀ ⠀⠀⢀⡟⠀⢰⣿⠟⠻⢿⣿⣿⣿⣿⣿⣿⣿⣿⠉⠁⠈⠻⣶⣄⠀⠀⠈⠛⢦ ⠀⣀⡼⠃⠀⣼⡟⠀⠀⢸⣿⡿⠉⣿⡿⠿⠛⣿⡄⠀⠀⠀⠙⠿⣆⠀⠀⠀⠈ ⠈⠁⠀⠀⢸⡟⠀⠀⠀⢸⣿⠀⠀⣿⠁⠀⠀⠈⠃⠀⠀⠀⠀⠀⠘⢷⡄⠀⠀ ⠀⠀⠀⠀⣼⠃⠀⠀⠀⢸⡟⠀⠀⡿⠁⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠈⢿⡆⠀ ⠀⠀⠀⣠⡏⠀⠀⠀⠀⣼⡇⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀ ⠀⠀⠀⠻⠃⠀⠀⠀⠀⣻⡇⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀ ⠀⠀⠀⠀⠀⠀⠀⠀⠀⠻⠇⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀ Current Dir: /usr/include/linux/netfilter/ [DIR] ipset [ delete | rename ] [FILE] nf_conntrack_common.h [ edit | delete | rename | download ] [FILE] nf_conntrack_ftp.h [ edit | delete | rename | download ] [FILE] nf_conntrack_sctp.h [ edit | delete | rename | download ] [FILE] nf_conntrack_tcp.h [ edit | delete | rename | download ] [FILE] nf_conntrack_tuple_common.h [ edit | delete | rename | download ] [FILE] nf_nat.h [ edit | delete | rename | download ] [FILE] nf_tables.h [ edit | delete | rename | download ] [FILE] nf_tables_compat.h [ edit | delete | rename | download ] [FILE] nfnetlink.h [ edit | delete | rename | download ] [FILE] nfnetlink_acct.h [ edit | delete | rename | download ] [FILE] nfnetlink_compat.h [ edit | delete | rename | download ] [FILE] nfnetlink_conntrack.h [ edit | delete | rename | download ] [FILE] nfnetlink_cthelper.h [ edit | delete | rename | download ] [FILE] nfnetlink_cttimeout.h [ edit | delete | rename | download ] [FILE] nfnetlink_log.h [ edit | delete | rename | download ] [FILE] nfnetlink_queue.h [ edit | delete | rename | download ] [FILE] x_tables.h [ edit | delete | rename | download ] [FILE] xt_AUDIT.h [ edit | delete | rename | download ] [FILE] xt_CHECKSUM.h [ edit | delete | rename | download ] [FILE] xt_CLASSIFY.h [ edit | delete | rename | download ] [FILE] xt_CONNMARK.h [ edit | delete | rename | download ] [FILE] xt_CONNSECMARK.h [ edit | delete | rename | download ] [FILE] xt_CT.h [ edit | delete | rename | download ] [FILE] xt_DSCP.h [ edit | delete | rename | download ] [FILE] xt_HMARK.h [ edit | delete | rename | download ] [FILE] xt_IDLETIMER.h [ edit | delete | rename | download ] [FILE] xt_LED.h [ edit | delete | rename | download ] [FILE] xt_LOG.h [ edit | delete | rename | download ] [FILE] xt_MARK.h [ edit | delete | rename | download ] [FILE] xt_NFLOG.h [ edit | delete | rename | download ] [FILE] xt_NFQUEUE.h [ edit | delete | rename | download ] [FILE] xt_RATEEST.h [ edit | delete | rename | download ] [FILE] xt_SECMARK.h [ edit | delete | rename | download ] [FILE] xt_TCPMSS.h [ edit | delete | rename | download ] [FILE] xt_TCPOPTSTRIP.h [ edit | delete | rename | download ] [FILE] xt_TEE.h [ edit | delete | rename | download ] [FILE] xt_TPROXY.h [ edit | delete | rename | download ] [FILE] xt_addrtype.h [ edit | delete | rename | download ] [FILE] xt_bpf.h [ edit | delete | rename | download ] [FILE] xt_cgroup.h [ edit | delete | rename | download ] [FILE] xt_cluster.h [ edit | delete | rename | download ] [FILE] xt_comment.h [ edit | delete | rename | download ] [FILE] xt_connbytes.h [ edit | delete | rename | download ] [FILE] xt_connlabel.h [ edit | delete | rename | download ] [FILE] xt_connlimit.h [ edit | delete | rename | download ] [FILE] xt_connmark.h [ edit | delete | rename | download ] [FILE] xt_conntrack.h [ edit | delete | rename | download ] [FILE] xt_cpu.h [ edit | delete | rename | download ] [FILE] xt_dccp.h [ edit | delete | rename | download ] [FILE] xt_devgroup.h [ edit | delete | rename | download ] [FILE] xt_dscp.h [ edit | delete | rename | download ] [FILE] xt_ecn.h [ edit | delete | rename | download ] [FILE] xt_esp.h [ edit | delete | rename | download ] [FILE] xt_hashlimit.h [ edit | delete | rename | download ] [FILE] xt_helper.h [ edit | delete | rename | download ] [FILE] xt_iprange.h [ edit | delete | rename | download ] [FILE] xt_ipvs.h [ edit | delete | rename | download ] [FILE] xt_length.h [ edit | delete | rename | download ] [FILE] xt_limit.h [ edit | delete | rename | download ] [FILE] xt_mac.h [ edit | delete | rename | download ] [FILE] xt_mark.h [ edit | delete | rename | download ] [FILE] xt_multiport.h [ edit | delete | rename | download ] [FILE] xt_nfacct.h [ edit | delete | rename | download ] [FILE] xt_osf.h [ edit | delete | rename | download ] [FILE] xt_owner.h [ edit | delete | rename | download ] [FILE] xt_physdev.h [ edit | delete | rename | download ] [FILE] xt_pkttype.h [ edit | delete | rename | download ] [FILE] xt_policy.h [ edit | delete | rename | download ] [FILE] xt_quota.h [ edit | delete | rename | download ] [FILE] xt_rateest.h [ edit | delete | rename | download ] [FILE] xt_realm.h [ edit | delete | rename | download ] [FILE] xt_recent.h [ edit | delete | rename | download ] [FILE] xt_rpfilter.h [ edit | delete | rename | download ] [FILE] xt_sctp.h [ edit | delete | rename | download ] [FILE] xt_set.h [ edit | delete | rename | download ] [FILE] xt_socket.h [ edit | delete | rename | download ] [FILE] xt_state.h [ edit | delete | rename | download ] [FILE] xt_statistic.h [ edit | delete | rename | download ] [FILE] xt_string.h [ edit | delete | rename | download ] [FILE] xt_tcpmss.h [ edit | delete | rename | download ] [FILE] xt_tcpudp.h [ edit | delete | rename | download ] [FILE] xt_time.h [ edit | delete | rename | download ] [FILE] xt_u32.h [ edit | delete | rename | download ] Viewing: /usr/include/linux/netfilter/nfnetlink_queue.h #ifndef _NFNETLINK_QUEUE_H #define _NFNETLINK_QUEUE_H #include <linux/types.h> #include <linux/netfilter/nfnetlink.h> enum nfqnl_msg_types { NFQNL_MSG_PACKET, /* packet from kernel to userspace */ NFQNL_MSG_VERDICT, /* verdict from userspace to kernel */ NFQNL_MSG_CONFIG, /* connect to a particular queue */ NFQNL_MSG_VERDICT_BATCH, /* batchv from userspace to kernel */ NFQNL_MSG_MAX }; struct nfqnl_msg_packet_hdr { __be32 packet_id; /* unique ID of packet in queue */ __be16 hw_protocol; /* hw protocol (network order) */ __u8 hook; /* netfilter hook */ } __attribute__ ((packed)); struct nfqnl_msg_packet_hw { __be16 hw_addrlen; __u16 _pad; __u8 hw_addr[8]; }; struct nfqnl_msg_packet_timestamp { __aligned_be64 sec; __aligned_be64 usec; }; enum nfqnl_attr_type { NFQA_UNSPEC, NFQA_PACKET_HDR, NFQA_VERDICT_HDR, /* nfqnl_msg_verdict_hrd */ NFQA_MARK, /* __u32 nfmark */ NFQA_TIMESTAMP, /* nfqnl_msg_packet_timestamp */ NFQA_IFINDEX_INDEV, /* __u32 ifindex */ NFQA_IFINDEX_OUTDEV, /* __u32 ifindex */ NFQA_IFINDEX_PHYSINDEV, /* __u32 ifindex */ NFQA_IFINDEX_PHYSOUTDEV, /* __u32 ifindex */ NFQA_HWADDR, /* nfqnl_msg_packet_hw */ NFQA_PAYLOAD, /* opaque data payload */ NFQA_CT, /* nf_conntrack_netlink.h */ NFQA_CT_INFO, /* enum ip_conntrack_info */ NFQA_CAP_LEN, /* __u32 length of captured packet */ NFQA_SKB_INFO, /* __u32 skb meta information */ NFQA_EXP, /* nf_conntrack_netlink.h */ __NFQA_MAX }; #define NFQA_MAX (__NFQA_MAX - 1) struct nfqnl_msg_verdict_hdr { __be32 verdict; __be32 id; }; enum nfqnl_msg_config_cmds { NFQNL_CFG_CMD_NONE, NFQNL_CFG_CMD_BIND, NFQNL_CFG_CMD_UNBIND, NFQNL_CFG_CMD_PF_BIND, NFQNL_CFG_CMD_PF_UNBIND, }; struct nfqnl_msg_config_cmd { __u8 command; /* nfqnl_msg_config_cmds */ __u8 _pad; __be16 pf; /* AF_xxx for PF_[UN]BIND */ }; enum nfqnl_config_mode { NFQNL_COPY_NONE, NFQNL_COPY_META, NFQNL_COPY_PACKET, }; struct nfqnl_msg_config_params { __be32 copy_range; __u8 copy_mode; /* enum nfqnl_config_mode */ } __attribute__ ((packed)); enum nfqnl_attr_config { NFQA_CFG_UNSPEC, NFQA_CFG_CMD, /* nfqnl_msg_config_cmd */ NFQA_CFG_PARAMS, /* nfqnl_msg_config_params */ NFQA_CFG_QUEUE_MAXLEN, /* __u32 */ NFQA_CFG_MASK, /* identify which flags to change */ NFQA_CFG_FLAGS, /* value of these flags (__u32) */ __NFQA_CFG_MAX }; #define NFQA_CFG_MAX (__NFQA_CFG_MAX-1) /* Flags for NFQA_CFG_FLAGS */ #define NFQA_CFG_F_FAIL_OPEN (1 << 0) #define NFQA_CFG_F_CONNTRACK (1 << 1) #define NFQA_CFG_F_GSO (1 << 2) #define NFQA_CFG_F_MAX (1 << 3) /* flags for NFQA_SKB_INFO */ /* packet appears to have wrong checksums, but they are ok */ #define NFQA_SKB_CSUMNOTREADY (1 << 0) /* packet is GSO (i.e., exceeds device mtu) */ #define NFQA_SKB_GSO (1 << 1) /* csum not validated (incoming device doesn't support hw checksum, etc.) */ #define NFQA_SKB_CSUM_NOTVERIFIED (1 << 2) #endif /* _NFNETLINK_QUEUE_H */