pub fn new(transport_protocol: u8, src: &str, dst: &str, src_port: u16, dst_port: u16) -> Self {
        let src_ip_addr = IpAddr::from_str(src).unwrap();
        let dst_ip_addr = IpAddr::from_str(dst).unwrap();

        Self {
            transport_protocol,
            src: src_ip_addr,
            dst: dst_ip_addr,
            src_port,
            dst_port,
        }
    }
/// Create a Flow Id with IP addresses for src and dest provided as string.
Create a Flow Id with IP addresses for src and dest provided as string.
Create a Flow Id with IP addresses for src and dest provided as string .
pub fn new(transport_protocol: u8, src: &str, dst: &str, src_port: u16, dst_port: u16) -> Self {
        let src_ip_addr = IpAddr::from_str(src).unwrap();
        let dst_ip_addr = IpAddr::from_str(dst).unwrap();
        Self {
            transport_protocol,
            src: src_ip_addr,
            dst: dst_ip_addr,
            src_port,
            dst_port,
        }
    }
pub fn new ( transport_protocol : u8 , src : & str , dst : & str , src_port : u16 , dst_port : u16 ) -> Self { let src_ip_addr = IpAddr :: from_str ( src ) . unwrap ( ) ; let dst_ip_addr = IpAddr :: from_str ( dst ) . unwrap ( ) ; Self { transport_protocol , src : src_ip_addr , dst : dst_ip_addr , src_port , dst_port , } }
Create a Flow Id with IP addresses for src and dest provided as string.
Create a Flow Id with IP addresses for src and dest provided as string .
transport_protocol
u8
src
&str
dst
&str
src_port
u16
dst_port
u16