Skip to content

Commit 881f742

Browse files
committed
rust/sys: regenerate bindings for flow
1 parent 2f83259 commit 881f742

1 file changed

Lines changed: 21 additions & 0 deletions

File tree

rust/sys/src/sys.rs

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1788,12 +1788,33 @@ extern "C" {
17881788
extern "C" {
17891789
pub fn SCFlowGetFlags(flow: *const Flow) -> u64;
17901790
}
1791+
extern "C" {
1792+
pub fn SCFlowIsIPv4(flow: *const Flow) -> bool;
1793+
}
1794+
extern "C" {
1795+
pub fn SCFlowIsIPv6(flow: *const Flow) -> bool;
1796+
}
1797+
extern "C" {
1798+
pub fn SCFlowGetSourceAddress(flow: *const Flow) -> *const ::std::os::raw::c_void;
1799+
}
1800+
extern "C" {
1801+
pub fn SCFlowGetDestinationAddress(flow: *const Flow) -> *const ::std::os::raw::c_void;
1802+
}
1803+
extern "C" {
1804+
pub fn SCFlowGetIPProtocol(flow: *const Flow) -> u8;
1805+
}
17911806
extern "C" {
17921807
pub fn SCFlowGetSourcePort(flow: *const Flow) -> u16;
17931808
}
17941809
extern "C" {
17951810
pub fn SCFlowGetDestinationPort(flow: *const Flow) -> u16;
17961811
}
1812+
extern "C" {
1813+
pub fn SCFlowGetToServerPacketCount(flow: *const Flow) -> u32;
1814+
}
1815+
extern "C" {
1816+
pub fn SCFlowGetToClientPacketCount(flow: *const Flow) -> u32;
1817+
}
17971818
extern "C" {
17981819
pub fn SCFlowGetAppProtocol(f: *const Flow) -> AppProto;
17991820
}

0 commit comments

Comments
 (0)