Skip to content

Commit

Permalink
Add missing NFT_CT_* constants
Browse files Browse the repository at this point in the history
  • Loading branch information
nathaniel-bennett committed Aug 16, 2024
1 parent 6eddffb commit 15a077a
Show file tree
Hide file tree
Showing 4 changed files with 32 additions and 0 deletions.
8 changes: 8 additions & 0 deletions libc-test/semver/android.txt
Original file line number Diff line number Diff line change
Expand Up @@ -1500,11 +1500,16 @@ NFT_CMP_LT
NFT_CMP_LTE
NFT_CMP_NEQ
NFT_CONTINUE
NFT_CT_AVGPKT
NFT_CT_BYTES
NFT_CT_DIRECTION
NFT_CT_DST
NFT_CT_DST_IP
NFT_CT_DST_IP6
NFT_CT_EVENTMASK
NFT_CT_EXPIRATION
NFT_CT_HELPER
NFT_CT_ID
NFT_CT_L3PROTOCOL
NFT_CT_LABELS
NFT_CT_MARK
Expand All @@ -1514,8 +1519,11 @@ NFT_CT_PROTO_DST
NFT_CT_PROTO_SRC
NFT_CT_SECMARK
NFT_CT_SRC
NFT_CT_SRC_IP
NFT_CT_SRC_IP6
NFT_CT_STATE
NFT_CT_STATUS
NFT_CT_ZONE
NFT_DATA_RESERVED_MASK
NFT_DATA_VALUE
NFT_DATA_VALUE_MAXLEN
Expand Down
8 changes: 8 additions & 0 deletions libc-test/semver/linux-gnu.txt
Original file line number Diff line number Diff line change
Expand Up @@ -191,11 +191,16 @@ NFT_CMP_LT
NFT_CMP_LTE
NFT_CMP_NEQ
NFT_CONTINUE
NFT_CT_AVGPKT
NFT_CT_BYTES
NFT_CT_DIRECTION
NFT_CT_DST
NFT_CT_DST_IP
NFT_CT_DST_IP6
NFT_CT_EVENTMASK
NFT_CT_EXPIRATION
NFT_CT_HELPER
NFT_CT_ID
NFT_CT_L3PROTOCOL
NFT_CT_LABELS
NFT_CT_MARK
Expand All @@ -205,8 +210,11 @@ NFT_CT_PROTO_DST
NFT_CT_PROTO_SRC
NFT_CT_SECMARK
NFT_CT_SRC
NFT_CT_SRC_IP
NFT_CT_SRC_IP6
NFT_CT_STATE
NFT_CT_STATUS
NFT_CT_ZONE
NFT_DATA_RESERVED_MASK
NFT_DATA_VALUE
NFT_DATA_VALUE_MAXLEN
Expand Down
8 changes: 8 additions & 0 deletions src/unix/linux_like/android/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2558,6 +2558,14 @@ pub const NFT_CT_PROTO_DST: ::c_int = 12;
pub const NFT_CT_LABELS: ::c_int = 13;
pub const NFT_CT_PKTS: ::c_int = 14;
pub const NFT_CT_BYTES: ::c_int = 15;
pub const NFT_CT_AVGPKT: ::c_int = 16;
pub const NFT_CT_ZONE: ::c_int = 17;
pub const NFT_CT_EVENTMASK: ::c_int = 18;
pub const NFT_CT_SRC_IP: ::c_int = 19;
pub const NFT_CT_DST_IP: ::c_int = 20;
pub const NFT_CT_SRC_IP6: ::c_int = 21;
pub const NFT_CT_DST_IP6: ::c_int = 22;
pub const NFT_CT_ID: ::c_int = 23;

pub const NFT_LIMIT_PKTS: ::c_int = 0;
pub const NFT_LIMIT_PKT_BYTES: ::c_int = 1;
Expand Down
8 changes: 8 additions & 0 deletions src/unix/linux_like/linux/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4452,6 +4452,14 @@ pub const NFT_CT_PROTO_DST: ::c_int = 12;
pub const NFT_CT_LABELS: ::c_int = 13;
pub const NFT_CT_PKTS: ::c_int = 14;
pub const NFT_CT_BYTES: ::c_int = 15;
pub const NFT_CT_AVGPKT: ::c_int = 16;
pub const NFT_CT_ZONE: ::c_int = 17;
pub const NFT_CT_EVENTMASK: ::c_int = 18;
pub const NFT_CT_SRC_IP: ::c_int = 19;
pub const NFT_CT_DST_IP: ::c_int = 20;
pub const NFT_CT_SRC_IP6: ::c_int = 21;
pub const NFT_CT_DST_IP6: ::c_int = 22;
pub const NFT_CT_ID: ::c_int = 23;

pub const NFT_LIMIT_PKTS: ::c_int = 0;
pub const NFT_LIMIT_PKT_BYTES: ::c_int = 1;
Expand Down

0 comments on commit 15a077a

Please sign in to comment.