@@ -1782,18 +1782,70 @@ extern "C" {
17821782 f : * const Flow , dir : :: std:: os:: raw:: c_int , id : FrameId , tx_id : u64 ,
17831783 ) ;
17841784}
1785+ #[ repr( C ) ]
1786+ #[ derive( Copy , Clone ) ]
1787+ pub struct SCFlowAddress_ {
1788+ pub address : SCFlowAddress___bindgen_ty_1 ,
1789+ }
1790+ #[ repr( C ) ]
1791+ #[ derive( Copy , Clone ) ]
1792+ pub union SCFlowAddress___bindgen_ty_1 {
1793+ pub address_un_data32 : [ u32 ; 4usize ] ,
1794+ pub address_un_data16 : [ u16 ; 8usize ] ,
1795+ pub address_un_data8 : [ u8 ; 16usize ] ,
1796+ }
1797+ impl Default for SCFlowAddress___bindgen_ty_1 {
1798+ fn default ( ) -> Self {
1799+ let mut s = :: std:: mem:: MaybeUninit :: < Self > :: uninit ( ) ;
1800+ unsafe {
1801+ :: std:: ptr:: write_bytes ( s. as_mut_ptr ( ) , 0 , 1 ) ;
1802+ s. assume_init ( )
1803+ }
1804+ }
1805+ }
1806+ impl Default for SCFlowAddress_ {
1807+ fn default ( ) -> Self {
1808+ let mut s = :: std:: mem:: MaybeUninit :: < Self > :: uninit ( ) ;
1809+ unsafe {
1810+ :: std:: ptr:: write_bytes ( s. as_mut_ptr ( ) , 0 , 1 ) ;
1811+ s. assume_init ( )
1812+ }
1813+ }
1814+ }
1815+ pub type SCFlowAddress = SCFlowAddress_ ;
17851816extern "C" {
17861817 pub fn SCFlowGetLastTimeAsParts ( flow : * const Flow , secs : * mut u64 , usecs : * mut u64 ) ;
17871818}
17881819extern "C" {
17891820 pub fn SCFlowGetFlags ( flow : * const Flow ) -> u64 ;
17901821}
1822+ extern "C" {
1823+ pub fn SCFlowIsIPv4 ( flow : * const Flow ) -> bool ;
1824+ }
1825+ extern "C" {
1826+ pub fn SCFlowIsIPv6 ( flow : * const Flow ) -> bool ;
1827+ }
1828+ extern "C" {
1829+ pub fn SCFlowGetIPProtocol ( flow : * const Flow ) -> u8 ;
1830+ }
17911831extern "C" {
17921832 pub fn SCFlowGetSourcePort ( flow : * const Flow ) -> u16 ;
17931833}
17941834extern "C" {
17951835 pub fn SCFlowGetDestinationPort ( flow : * const Flow ) -> u16 ;
17961836}
1837+ extern "C" {
1838+ pub fn SCFlowGetSourceAddress ( flow : * const Flow ) -> * const SCFlowAddress ;
1839+ }
1840+ extern "C" {
1841+ pub fn SCFlowGetDestinationAddress ( flow : * const Flow ) -> * const SCFlowAddress ;
1842+ }
1843+ extern "C" {
1844+ pub fn SCFlowGetToServerPacketCount ( flow : * const Flow ) -> u32 ;
1845+ }
1846+ extern "C" {
1847+ pub fn SCFlowGetToClientPacketCount ( flow : * const Flow ) -> u32 ;
1848+ }
17971849extern "C" {
17981850 pub fn SCFlowGetAppProtocol ( f : * const Flow ) -> AppProto ;
17991851}
0 commit comments