Skip to content

Commit b658ca2

Browse files
committed
rust/sys: regenerate bindings for flow
1 parent d771547 commit b658ca2

1 file changed

Lines changed: 25 additions & 0 deletions

File tree

rust/sys/src/sys.rs

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1788,12 +1788,37 @@ 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(
1799+
flow: *const Flow, family: ::std::os::raw::c_int,
1800+
) -> *const ::std::os::raw::c_void;
1801+
}
1802+
extern "C" {
1803+
pub fn SCFlowGetDestinationAddress(
1804+
flow: *const Flow, family: ::std::os::raw::c_int,
1805+
) -> *const ::std::os::raw::c_void;
1806+
}
1807+
extern "C" {
1808+
pub fn SCFlowGetIPProtocol(flow: *const Flow) -> u8;
1809+
}
17911810
extern "C" {
17921811
pub fn SCFlowGetSourcePort(flow: *const Flow) -> u16;
17931812
}
17941813
extern "C" {
17951814
pub fn SCFlowGetDestinationPort(flow: *const Flow) -> u16;
17961815
}
1816+
extern "C" {
1817+
pub fn SCFlowGetToServerPacketCount(flow: *const Flow) -> u32;
1818+
}
1819+
extern "C" {
1820+
pub fn SCFlowGetToClientPacketCount(flow: *const Flow) -> u32;
1821+
}
17971822
extern "C" {
17981823
pub fn SCFlowGetAppProtocol(f: *const Flow) -> AppProto;
17991824
}

0 commit comments

Comments
 (0)