Skip to content

Commit fcd94cc

Browse files
committed
nfnetfilter & nfnetfilter_log constants
1 parent 53bdffc commit fcd94cc

File tree

1 file changed

+75
-0
lines changed
  • src/unix/linux_like/linux

1 file changed

+75
-0
lines changed

src/unix/linux_like/linux/mod.rs

Lines changed: 75 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1664,6 +1664,81 @@ pub const NLMSG_DONE: ::c_int = 0x3;
16641664
pub const NLMSG_OVERRUN: ::c_int = 0x4;
16651665
pub const NLMSG_MIN_TYPE: ::c_int = 0x10;
16661666

1667+
// linux/netfilter/nfnetlink.h
1668+
pub const NFNLGRP_NONE: ::c_int = 0;
1669+
pub const NFNLGRP_CONNTRACK_NEW: ::c_int = 1;
1670+
pub const NFNLGRP_CONNTRACK_UPDATE: ::c_int = 2;
1671+
pub const NFNLGRP_CONNTRACK_DESTROY: ::c_int = 3;
1672+
pub const NFNLGRP_CONNTRACK_EXP_NEW: ::c_int = 4;
1673+
pub const NFNLGRP_CONNTRACK_EXP_UPDATE: ::c_int = 5;
1674+
pub const NFNLGRP_CONNTRACK_EXP_DESTROY: ::c_int = 6;
1675+
pub const NFNLGRP_NFTABLES: ::c_int = 7;
1676+
pub const NFNLGRP_ACCT_QUOTA: ::c_int = 8;
1677+
pub const NFNLGRP_NFTRACE: ::c_int = 9;
1678+
1679+
pub const NFNETLINK_V0: ::c_int = 0;
1680+
1681+
pub const NFNL_SUBSYS_NONE: ::c_int = 0;
1682+
pub const NFNL_SUBSYS_CTNETLINK: ::c_int = 1;
1683+
pub const NFNL_SUBSYS_CTNETLINK_EXP: ::c_int = 2;
1684+
pub const NFNL_SUBSYS_QUEUE: ::c_int = 3;
1685+
pub const NFNL_SUBSYS_ULOG: ::c_int = 4;
1686+
pub const NFNL_SUBSYS_OSF: ::c_int = 5;
1687+
pub const NFNL_SUBSYS_IPSET: ::c_int = 6;
1688+
pub const NFNL_SUBSYS_ACCT: ::c_int = 7;
1689+
pub const NFNL_SUBSYS_CTNETLINK_TIMEOUT: ::c_int = 8;
1690+
pub const NFNL_SUBSYS_CTHELPER: ::c_int = 9;
1691+
pub const NFNL_SUBSYS_NFTABLES: ::c_int = 10;
1692+
pub const NFNL_SUBSYS_NFT_COMPAT: ::c_int = 11;
1693+
pub const NFNL_SUBSYS_COUNT: ::c_int = 12;
1694+
1695+
// linux/netfilter/nfnetlink_log.h
1696+
pub const NFULNL_MSG_PACKET: ::c_int = 0;
1697+
pub const NFULNL_MSG_CONFIG: ::c_int = 1;
1698+
1699+
pub const NFULA_UNSPEC: ::c_int = 0;
1700+
pub const NFULA_PACKET_HDR: ::c_int = 1;
1701+
pub const NFULA_MARK: ::c_int = 2;
1702+
pub const NFULA_TIMESTAMP: ::c_int = 3;
1703+
pub const NFULA_IFINDEX_INDEV: ::c_int = 4;
1704+
pub const NFULA_IFINDEX_OUTDEV: ::c_int = 5;
1705+
pub const NFULA_IFINDEX_PHYSINDEV: ::c_int = 6;
1706+
pub const NFULA_IFINDEX_PHYSOUTDEV: ::c_int = 7;
1707+
pub const NFULA_HWADDR: ::c_int = 8;
1708+
pub const NFULA_PAYLOAD: ::c_int = 9;
1709+
pub const NFULA_PREFIX: ::c_int = 10;
1710+
pub const NFULA_UID: ::c_int = 11;
1711+
pub const NFULA_SEQ: ::c_int = 12;
1712+
pub const NFULA_SEQ_GLOBAL: ::c_int = 13;
1713+
pub const NFULA_GID: ::c_int = 14;
1714+
pub const NFULA_HWTYPE: ::c_int = 15;
1715+
pub const NFULA_HWHEADER: ::c_int = 16;
1716+
pub const NFULA_HWLEN: ::c_int = 17;
1717+
pub const NFULA_CT: ::c_int = 18;
1718+
pub const NFULA_CT_INFO: ::c_int = 19;
1719+
1720+
pub const NFULNL_CFG_CMD_NONE: ::c_int = 0;
1721+
pub const NFULNL_CFG_CMD_BIND: ::c_int = 1;
1722+
pub const NFULNL_CFG_CMD_UNBIND: ::c_int = 2;
1723+
pub const NFULNL_CFG_CMD_PF_BIND: ::c_int = 3;
1724+
pub const NFULNL_CFG_CMD_PF_UNBIND: ::c_int = 4;
1725+
1726+
pub const NFULA_CFG_UNSPEC: ::c_int = 0;
1727+
pub const NFULA_CFG_CMD: ::c_int = 1;
1728+
pub const NFULA_CFG_MODE: ::c_int = 2;
1729+
pub const NFULA_CFG_NLBUFSIZ: ::c_int = 3;
1730+
pub const NFULA_CFG_TIMEOUT: ::c_int = 4;
1731+
pub const NFULA_CFG_QTHRESH: ::c_int = 5;
1732+
pub const NFULA_CFG_FLAGS: ::c_int = 6;
1733+
1734+
pub const NFULNL_COPY_NONE: ::c_int = 0x00;
1735+
pub const NFULNL_COPY_META: ::c_int = 0x01;
1736+
pub const NFULNL_COPY_PACKET: ::c_int = 0x02;
1737+
1738+
pub const NFULNL_CFG_F_SEQ: ::c_int = 0x0001;
1739+
pub const NFULNL_CFG_F_SEQ_GLOBAL: ::c_int = 0x0002;
1740+
pub const NFULNL_CFG_F_CONNTRACK: ::c_int = 0x0004;
1741+
16671742
pub const GENL_NAMSIZ: ::c_int = 16;
16681743

16691744
pub const GENL_MIN_ID: ::c_int = NLMSG_MIN_TYPE;

0 commit comments

Comments
 (0)